Class GlobalBuiltins.JSGlobalParseIntNode

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

public abstract static class GlobalBuiltins.JSGlobalParseIntNode extends JSBuiltinNode
Implementation of ECMAScript 5.1 15.1.2.2 parseInt() method.
  • Constructor Details

    • JSGlobalParseIntNode

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

    • parseIntNoRadix

      protected int parseIntNoRadix(int value, Object radix0)
    • parseIntInt

      protected Object parseIntInt(int value, Object radix0, JSToInt32Node toInt32, com.oracle.truffle.api.profiles.InlinedBranchProfile needsRadixConversion, com.oracle.truffle.api.profiles.InlinedBranchProfile needsNaN)
    • parseIntDoubleToInt

      protected int parseIntDoubleToInt(double value, Object radix0)
    • parseIntDoubleNoRadix

      protected double parseIntDoubleNoRadix(double value, Object radix0)
    • hasRegularToString

      protected static boolean hasRegularToString(double value)
    • hasRegularToStringInInt32Range

      protected static boolean hasRegularToStringInInt32Range(double value)
    • parseIntDouble

      protected double parseIntDouble(double value, Object radix0, JSToInt32Node toInt32, com.oracle.truffle.api.profiles.InlinedBranchProfile needsRadixConversion, com.oracle.truffle.api.profiles.InlinedBranchProfile needsNaN)
    • parseIntStringInt10

      protected Object parseIntStringInt10(com.oracle.truffle.api.strings.TruffleString string, int radix, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.profiles.InlinedBranchProfile needsRadix16, com.oracle.truffle.api.profiles.InlinedBranchProfile needsDontFitLong)
    • isShortStringInt10

      protected static boolean isShortStringInt10(Object input, Object radix)
    • parseIntGeneric

      protected static Object parseIntGeneric(Object input, Object radix0, com.oracle.truffle.api.nodes.Node node, JSToStringNode toStringNode, JSToInt32Node toInt32, com.oracle.truffle.api.profiles.InlinedBranchProfile needsNaN, com.oracle.truffle.api.profiles.InlinedBranchProfile needsRadix16, com.oracle.truffle.api.profiles.InlinedBranchProfile needsDontFitLong, com.oracle.truffle.api.strings.TruffleString.ReadCharUTF16Node readRawNode, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode)