Class JSToBigIntNode.CoercePrimitiveToBigIntNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToBigIntNode.CoercePrimitiveToBigIntNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
- Enclosing class:
JSToBigIntNode
Implementation of the ToBigInt conversion performed by the BigInt(argument) where the
argument has already been converted ToPrimitive, i.e.:
If prim is a Number, return NumberToBigInt(prim), otherwise ToBigInt(prim).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BigIntprotected static BigIntdoBoolean(boolean value) protected static BigIntdoDouble(double value, JSNumberToBigIntNode numberToBigInt) protected static BigIntdoForeignBigInt(BigInt value) protected static BigIntdoInteger(int value) protected static BigIntdoLong(long value) protected static BigIntdoSafeInteger(SafeInteger value) protected static BigIntdoString(com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString value) protected static BigIntdoSymbolNullOrUndefined(com.oracle.truffle.api.nodes.Node node, Object value) abstract BigIntexecuteBigInt(com.oracle.truffle.api.nodes.Node node, Object value) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
CoercePrimitiveToBigIntNode
public CoercePrimitiveToBigIntNode()
-
-
Method Details
-
executeBigInt
-
doBoolean
-
doBigInt
-
doForeignBigInt
-
doInteger
-
doSafeInteger
-
doLong
-
doDouble
-
doSymbolNullOrUndefined
-
doString
protected static BigInt doString(com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString value)
-