public abstract class JSNumberToDoubleNode extends JavaScriptBaseNode
ToNumber to a double value. Only the internal JS Number
types (i.e. Integer, Double, and SafeInteger) are supported here.JSRuntime.isNumber(Object)| Constructor and Description |
|---|
JSNumberToDoubleNode() |
| Modifier and Type | Method and Description |
|---|---|
protected static double |
doDouble(double value) |
protected static double |
doInt(int value) |
abstract double |
execute(com.oracle.truffle.api.nodes.Node node,
Object value) |
copy, getLanguage, getRealm, hasOverloadedOperators, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic abstract double execute(com.oracle.truffle.api.nodes.Node node,
Object value)
protected static double doInt(int value)
protected static double doDouble(double value)