Class StringPrototypeBuiltins.JSStringReplaceBaseNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Direct Known Subclasses:
StringPrototypeBuiltins.JSStringReplaceAllNode, StringPrototypeBuiltins.JSStringReplaceES5Node, StringPrototypeBuiltins.JSStringReplaceNode
Enclosing class:
StringPrototypeBuiltins

public abstract static class StringPrototypeBuiltins.JSStringReplaceBaseNode extends StringPrototypeBuiltins.JSStringOperationWithRegExpArgument
  • Field Details

    • functionReplaceCallNode

      protected JSFunctionCallNode functionReplaceCallNode
    • functionalReplaceProfile

      protected final com.oracle.truffle.api.profiles.ConditionProfile functionalReplaceProfile
    • replaceNecessaryProfile

      protected final com.oracle.truffle.api.profiles.ConditionProfile replaceNecessaryProfile
    • builderToStringNode

      protected com.oracle.truffle.api.strings.TruffleStringBuilder.ToStringNode builderToStringNode
    • appendStringNode

      protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendStringNode appendStringNode
    • appendSubStringNode

      protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendSubstringByteIndexNode appendSubStringNode
  • Constructor Details

    • JSStringReplaceBaseNode

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

    • parseReplaceValue

      protected ReplaceStringParser.Token[] parseReplaceValue(com.oracle.truffle.api.strings.TruffleString replaceValue)
    • appendSubstitution

      protected static void appendSubstitution(com.oracle.truffle.api.strings.TruffleStringBuilderUTF16 sb, com.oracle.truffle.api.strings.TruffleString input, com.oracle.truffle.api.strings.TruffleString replaceStr, com.oracle.truffle.api.strings.TruffleString searchStr, int pos, StringPrototypeBuiltins.JSStringReplaceBaseNode node, com.oracle.truffle.api.nodes.Node profileNode, com.oracle.truffle.api.profiles.InlinedBranchProfile dollarProfile)
    • functionReplaceCall

      protected final Object functionReplaceCall(Object splitter, Object separator, Object[] args)
    • 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)