Class StringPrototypeBuiltins.JSStringCharAtNode

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

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

  • Method Details

    • stringCharAt

      protected com.oracle.truffle.api.strings.TruffleString stringCharAt(com.oracle.truffle.api.strings.TruffleString thisObj, int pos, com.oracle.truffle.api.profiles.InlinedConditionProfile indexOutOfBounds)
    • charAt

      protected com.oracle.truffle.api.strings.TruffleString charAt(Object thisObj, Object index, com.oracle.truffle.api.profiles.InlinedConditionProfile indexOutOfBounds)
    • createInlined

      Specified by:
      createInlined in interface JSBuiltinNode.Inlineable
    • 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)