Class StringPrototypeBuiltins.JSStringReplaceAllNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
StringPrototypeBuiltins

public abstract static class StringPrototypeBuiltins.JSStringReplaceAllNode extends StringPrototypeBuiltins.JSStringReplaceBaseNode
  • Constructor Details

    • JSStringReplaceAllNode

      public JSStringReplaceAllNode(JSContext context, JSBuiltin builtin)
  • Method Details

    • replaceStringCached

      protected Object replaceStringCached(Object thisObj, com.oracle.truffle.api.strings.TruffleString searchValue, com.oracle.truffle.api.strings.TruffleString replaceValue, com.oracle.truffle.api.strings.TruffleString cachedReplaceValue, ReplaceStringParser.Token[] cachedParsedReplaceValue, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString.EqualNode equalsNode, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode stringIndexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isSearchValueEmpty, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile)
    • replaceString

      protected Object replaceString(Object thisObj, com.oracle.truffle.api.strings.TruffleString searchValue, com.oracle.truffle.api.strings.TruffleString replaceValue, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode stringIndexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isSearchValueEmpty, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile)
    • performReplaceAll

      protected Object performReplaceAll(com.oracle.truffle.api.strings.TruffleString searchValue, com.oracle.truffle.api.strings.TruffleString replaceValue, Object thisObj, ReplaceStringParser.Token[] parsedReplaceParam, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode stringIndexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isSearchValueEmpty, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile)
    • replaceGeneric

      protected Object replaceGeneric(Object thisObj, Object searchValue, Object replaceValue, com.oracle.truffle.api.nodes.Node node, IsObjectNode isObject, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch, JSToStringNode toString2Node, JSToStringNode toString3Node, IsCallableNode isCallableNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isRegExp, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfCodePointNode stringIndexOfNode, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode stringIndexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isSearchValueEmpty, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile, com.oracle.truffle.api.profiles.InlinedConditionProfile isSpecialProfile, com.oracle.truffle.api.profiles.InlinedConditionProfile callSpecialProfile)
    • performReplaceAllGeneric

      protected Object performReplaceAllGeneric(Object searchValue, Object replParam, Object thisObj, com.oracle.truffle.api.nodes.Node node, JSToStringNode toString2Node, JSToStringNode toString3Node, IsCallableNode isCallableNode, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode stringIndexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isSearchValueEmpty, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile)
    • within

      protected static int within(int value, int min, int max)
    • withinNumber

      protected static int withinNumber(Number value, int min, int max)
    • requireObjectCoercible

      protected final void requireObjectCoercible(Object target)
    • toString

      protected com.oracle.truffle.api.strings.TruffleString toString(Object target)
    • toIntegerAsInt

      protected int toIntegerAsInt(Object target)