Class StringPrototypeBuiltins.JSStringToLowerCaseNode

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

public abstract static class StringPrototypeBuiltins.JSStringToLowerCaseNode extends JSBuiltinNode
Implementation of the String.prototype.toLowerCase() method as specified by ECMAScript 5.1 in 15.5.4.16.
See Also:
  • Constructor Details

    • JSStringToLowerCaseNode

      public JSStringToLowerCaseNode(JSContext context, JSBuiltin builtin, boolean locale)
  • Method Details

    • toLowerCaseString

      protected final com.oracle.truffle.api.strings.TruffleString toLowerCaseString(com.oracle.truffle.api.strings.TruffleString thisStr, com.oracle.truffle.api.strings.TruffleString.CodeRangeEqualsNode codeRangeEquals, com.oracle.truffle.api.strings.TruffleString.ByteIndexOfCodePointSetNode indexOfCodePointSet, com.oracle.truffle.api.strings.TruffleString.SwitchEncodingNode switchEncodingNode, com.oracle.truffle.api.strings.TruffleString.CopyToByteArrayNode copyToByteArrayNode, com.oracle.truffle.api.strings.TruffleString.FromByteArrayNode fromByteArrayNode, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaString, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString, com.oracle.truffle.api.profiles.InlinedConditionProfile isAscii, com.oracle.truffle.api.profiles.InlinedConditionProfile isAlreadyLowerCase)
    • toLowerCaseGeneric

      protected final Object toLowerCaseGeneric(Object thisObj, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaString, com.oracle.truffle.api.strings.TruffleString.ToJavaStringNode toJavaString)
    • 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)