Class StringPrototypeBuiltins.JSStringSubstringNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, JSBuiltinNode.Inlineable, Cloneable
Direct Known Subclasses:
StringPrototypeBuiltins.JSStringSubstringNode.Inlined
Enclosing class:
StringPrototypeBuiltins

public abstract static class StringPrototypeBuiltins.JSStringSubstringNode extends JSBuiltinNode implements JSBuiltinNode.Inlineable
Implementation of the String.prototype.substring() method as specified by ECMAScript 5.1 in 15.5.4.15.
  • Constructor Details

    • JSStringSubstringNode

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

    • substring

      protected com.oracle.truffle.api.strings.TruffleString substring(com.oracle.truffle.api.strings.TruffleString thisStr, int start, int end, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile startLowerEnd)
    • substringStart

      protected com.oracle.truffle.api.strings.TruffleString substringStart(com.oracle.truffle.api.strings.TruffleString thisStr, int start, Object end, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile startLowerEnd)
    • substringGeneric

      protected com.oracle.truffle.api.strings.TruffleString substringGeneric(Object thisObj, Object start, Object end, JSToNumberNode toNumberNode, JSToNumberNode toNumber2Node, com.oracle.truffle.api.profiles.InlinedConditionProfile startUndefined, com.oracle.truffle.api.profiles.InlinedConditionProfile endUndefined, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile startLowerEnd)
    • createInlined

    • 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)