Class StringPrototypeBuiltins.JSStringSearchNode

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

public abstract static class StringPrototypeBuiltins.JSStringSearchNode extends StringPrototypeBuiltins.JSStringOperationWithRegExpArgument
Implementation of the String.prototype.search() method as specified by ECMAScript 6 in 21.1.3.15.
  • Constructor Details

  • Method Details

    • search

      protected Object search(Object thisObj, Object regex, IsObjectNode isObject, com.oracle.truffle.api.profiles.InlinedConditionProfile isSpecialProfile, com.oracle.truffle.api.profiles.InlinedConditionProfile callSpecialProfile)
    • 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)