public abstract static class StringPrototypeBuiltins.JSStringReplaceBaseNode extends StringPrototypeBuiltins.JSStringOperationWithRegExpArgument
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StringPrototypeBuiltins.JSStringReplaceBaseNode.ReplaceStringConsumer |
JSBuiltinNode.Inlineable, JSBuiltinNode.Inlined| Modifier and Type | Field and Description |
|---|---|
protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendStringNode |
appendStringNode |
protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendSubstringByteIndexNode |
appendSubStringNode |
protected com.oracle.truffle.api.strings.TruffleStringBuilder.ToStringNode |
builderToStringNode |
protected com.oracle.truffle.api.profiles.ConditionProfile |
functionalReplaceProfile |
protected JSFunctionCallNode |
functionReplaceCallNode |
protected com.oracle.truffle.api.profiles.ConditionProfile |
replaceNecessaryProfile |
regExpIgnoreLastIndexNode, regExpNodeARGUMENTSINTERMEDIATE_VALUE| Constructor and Description |
|---|
JSStringReplaceBaseNode(JSContext context,
JSBuiltin builtin) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected Object |
functionReplaceCall(Object splitter,
Object separator,
Object[] args) |
protected ReplaceStringParser.Token[] |
parseReplaceValue(com.oracle.truffle.api.strings.TruffleString replaceValue) |
protected void |
requireObjectCoercible(Object target) |
protected int |
toIntegerAsInt(Object target) |
protected com.oracle.truffle.api.strings.TruffleString |
toString(Object target) |
protected static int |
within(int value,
int min,
int max) |
protected static int |
withinNumber(Number value,
int min,
int max) |
call, getMethod, getRegExpIgnoreLastIndexNode, getRegExpNode, invoke, matchIgnoreLastIndexcopyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeprotected JSFunctionCallNode functionReplaceCallNode
protected final com.oracle.truffle.api.profiles.ConditionProfile functionalReplaceProfile
protected final com.oracle.truffle.api.profiles.ConditionProfile replaceNecessaryProfile
protected com.oracle.truffle.api.strings.TruffleStringBuilder.ToStringNode builderToStringNode
protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendStringNode appendStringNode
protected com.oracle.truffle.api.strings.TruffleStringBuilder.AppendSubstringByteIndexNode appendSubStringNode
protected ReplaceStringParser.Token[] parseReplaceValue(com.oracle.truffle.api.strings.TruffleString replaceValue)
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)
protected final Object functionReplaceCall(Object splitter, Object separator, Object[] args)
protected static int within(int value,
int min,
int max)
protected static int withinNumber(Number value, int min, int max)
protected final void requireObjectCoercible(Object target)
protected com.oracle.truffle.api.strings.TruffleString toString(Object target)
protected int toIntegerAsInt(Object target)