Class StringPrototypeBuiltins.JSStringIndexOfNode

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

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

  • Method Details

    • indexOfStringUndefined

      protected int indexOfStringUndefined(com.oracle.truffle.api.strings.TruffleString thisStr, com.oracle.truffle.api.strings.TruffleString searchStr, Object position, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode indexOfStringNode)
    • indexOfStringInt

      protected int indexOfStringInt(com.oracle.truffle.api.strings.TruffleString thisStr, com.oracle.truffle.api.strings.TruffleString searchStr, int position, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode indexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile hasPos)
    • indexOfGeneric

      protected int indexOfGeneric(Object thisObj, Object searchObj, Object position, JSToStringNode toString2Node, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfStringNode indexOfStringNode, com.oracle.truffle.api.profiles.InlinedConditionProfile hasPos)
    • 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)