Class NumberPrototypeBuiltins.JSNumberToStringNode

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

public abstract static class NumberPrototypeBuiltins.JSNumberToStringNode extends JSBuiltinNode
  • Constructor Details

    • JSNumberToStringNode

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

    • isRadix10

      protected boolean isRadix10(Object radix)
    • isJSNumberInteger

      protected static boolean isJSNumberInteger(JSNumberObject thisObj)
      Guard used to ensure that the parameter is a JSNumberObject that hosts an Integer.
    • toStringIntRadix10

      protected Object toStringIntRadix10(JSNumberObject thisObj, Object radix)
    • toStringRadix10

      protected Object toStringRadix10(JSNumberObject thisObj, Object radix, JSDoubleToStringNode doubleToString)
    • toString

      protected Object toString(JSNumberObject thisObj, Object radix, JSToIntegerAsIntNode toIntegerNode, JSDoubleToStringNode doubleToString, com.oracle.truffle.api.profiles.InlinedBranchProfile radixOtherBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile radixErrorBranch)
    • toStringPrimitiveIntRadix10

      protected Object toStringPrimitiveIntRadix10(int thisInteger, Object radix)
    • toStringPrimitiveRadix10

      protected Object toStringPrimitiveRadix10(Object thisNumber, Object radix, IsNumberNode isNumber, JSDoubleToStringNode doubleToString)
    • toStringPrimitiveRadixInt

      protected Object toStringPrimitiveRadixInt(Object thisNumber, int radix, IsNumberNode isNumber, JSToDoubleNode toDouble, JSDoubleToStringNode doubleToString, com.oracle.truffle.api.profiles.InlinedBranchProfile radixOtherBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile radixErrorBranch)
    • toStringPrimitive

      protected Object toStringPrimitive(Object thisNumber, Object radix, IsNumberNode isNumber, JSToDoubleNode toDouble, JSToIntegerAsIntNode toIntegerNode, JSDoubleToStringNode doubleToString, com.oracle.truffle.api.profiles.InlinedBranchProfile radixOtherBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile radixErrorBranch)
    • toStringForeignObject

      protected Object toStringForeignObject(Object thisObj, Object radix, com.oracle.truffle.api.nodes.Node node, JSToIntegerAsIntNode toIntegerNode, JSDoubleToStringNode doubleToString, com.oracle.truffle.api.profiles.InlinedBranchProfile radixOtherBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile radixErrorBranch, com.oracle.truffle.api.interop.InteropLibrary interop)
    • toStringNoNumber

      protected String toStringNoNumber(Object thisObj, Object radix)