Class JSToIntegerWithoutRoundingNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToIntegerWithoutRoundingNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
This implements ToIntegerWithoutRounding (via Temporal proposal).
-
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 final doubleprotected static doubledoBoolean(boolean value) protected final doubledoDoubleInfinite(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) protected static doubledoInteger(int value) protected doubledoJSOrForeignObject(Object value, JSToIntegerWithoutRoundingNode toIntOrInf, JSToNumberNode toNumberNode) protected static doubledoLong(long value) protected static doubleprotected static doubledoSafeInteger(SafeInteger value) protected doubledoString(com.oracle.truffle.api.strings.TruffleString value, JSToIntegerWithoutRoundingNode toIntOrInf, JSStringToNumberNode stringToNumberNode) protected final doubleprotected static doubledoUndefined(Object value) final doubleabstract doubleexecuteDouble(Object value) Methods inherited from class 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
-
JSToIntegerWithoutRoundingNode
public JSToIntegerWithoutRoundingNode()
-
-
Method Details
-
execute
-
executeDouble
-
doInteger
protected static double doInteger(int value) -
doLong
protected static double doLong(long value) -
doBoolean
protected static double doBoolean(boolean value) -
doSafeInteger
-
doDoubleInfinite
protected final double doDoubleInfinite(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch) -
doNull
-
doUndefined
-
doSymbol
-
doBigInt
-
doString
protected double doString(com.oracle.truffle.api.strings.TruffleString value, JSToIntegerWithoutRoundingNode toIntOrInf, JSStringToNumberNode stringToNumberNode) -
doJSOrForeignObject
protected double doJSOrForeignObject(Object value, JSToIntegerWithoutRoundingNode toIntOrInf, JSToNumberNode toNumberNode)
-