Class StringPrototypeBuiltins.JSStringLastIndexOfNode

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

public abstract static class StringPrototypeBuiltins.JSStringLastIndexOfNode extends JSBuiltinNode
Implementation of the String.prototype.lastIndexOf() method as specified by ECMAScript 5.1 in 15.5.4.8.
  • Constructor Details

    • JSStringLastIndexOfNode

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

    • lastIndexOfString

      protected int lastIndexOfString(com.oracle.truffle.api.strings.TruffleString thisObj, com.oracle.truffle.api.strings.TruffleString searchString, Object position, com.oracle.truffle.api.strings.TruffleString.LastByteIndexOfStringNode lastIndexOfNode)
    • lastIndexOfString

      protected int lastIndexOfString(com.oracle.truffle.api.strings.TruffleString thisObj, com.oracle.truffle.api.strings.TruffleString searchString, int position, com.oracle.truffle.api.strings.TruffleString.LastByteIndexOfStringNode lastIndexOfNode)
    • lastIndexOf

      protected int lastIndexOf(Object thisObj, Object searchString, Object position, JSToStringNode toString2Node, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedConditionProfile posNaN, com.oracle.truffle.api.strings.TruffleString.LastByteIndexOfStringNode lastIndexOfNode)
    • 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)