Class JSSubtractNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.JavaScriptNode
com.oracle.truffle.js.nodes.binary.JSBinaryNode
com.oracle.truffle.js.nodes.binary.JSSubtractNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Truncatable, Cloneable
-
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.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
Fields inherited from class JSBinaryNode
leftNode, rightNodeFields inherited from class JavaScriptNode
INTERMEDIATE_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJSSubtractNode(boolean truncate, JavaScriptNode left, JavaScriptNode right) -
Method Summary
Modifier and TypeMethodDescriptionfinal JavaScriptNodeprotected JavaScriptNodecopyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) static JavaScriptNodecreate(JavaScriptNode left, JavaScriptNode right) static JavaScriptNodecreate(JavaScriptNode left, JavaScriptNode right, boolean truncate) protected BigIntprotected doubledoDouble(double a, double b) protected static ObjectdoGeneric(Object a, Object b, com.oracle.truffle.api.nodes.Node node, JSToNumericNode toNumericA, JSToNumericNode toNumericB, JavaScriptNode subtract, com.oracle.truffle.api.profiles.InlinedBranchProfile mixedNumericTypes) protected intdoInt(int a, int b) protected ObjectdoOverloaded(Object a, Object b, JSOverloadedBinaryNode overloadedOperatorNode) abstract Objectprotected com.oracle.truffle.api.strings.TruffleStringvoidMethods inherited from class JSBinaryNode
ensureBothSameNumericType, expressionToString, getLeft, getNodeObject, getRight, hasTag, largerThan2e32Methods inherited from class JavaScriptNode
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsMethods inherited from class JavaScriptBaseNode
getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
createProbe, findNearestNodeAt, findNearestNodeAt, findProbe, materializeInstrumentableNodes
-
Constructor Details
-
JSSubtractNode
-
-
Method Details
-
create
-
create
-
execute
-
doInt
protected int doInt(int a, int b) -
doDouble
protected double doDouble(double a, double b) -
doBigInt
-
doOverloaded
-
getOverloadedOperatorName
protected com.oracle.truffle.api.strings.TruffleString getOverloadedOperatorName() -
doGeneric
protected static Object doGeneric(Object a, Object b, com.oracle.truffle.api.nodes.Node node, JSToNumericNode toNumericA, JSToNumericNode toNumericB, JavaScriptNode subtract, com.oracle.truffle.api.profiles.InlinedBranchProfile mixedNumericTypes) -
copyRecursive
-
setTruncate
public void setTruncate()- Specified by:
setTruncatein interfaceTruncatable
-
copyUninitialized
protected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) - Overrides:
copyUninitializedin classJavaScriptNode
-