Class JSAddConstantRightNumberNode
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.unary.JSUnaryNode
com.oracle.truffle.js.nodes.binary.JSAddConstantRightNumberNode
- 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
FieldsFields inherited from class JSUnaryNode
operandNodeFields inherited from class JavaScriptNode
INTERMEDIATE_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJSAddConstantRightNumberNode(JavaScriptNode left, Number rightValue, boolean truncate) -
Method Summary
Modifier and TypeMethodDescriptionprotected JavaScriptNodecopyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) protected doubledoDouble(double left) protected intdoInt(int left) protected ObjectdoIntOverflow(int left) protected intdoIntTruncate(int left) protected ObjectdoOverloaded(JSOverloadedOperatorsObject a, JSOverloadedBinaryNode overloadedOperatorNode) protected ObjectdoPrimitiveConversion(Object a, com.oracle.truffle.api.nodes.Node node, JSToPrimitiveNode toPrimitiveA, JSToNumberNode toNumberA, com.oracle.truffle.api.strings.TruffleString rightString, JSConcatStringsNode createLazyString, com.oracle.truffle.api.profiles.InlinedConditionProfile profileA) protected SafeIntegerdoSafeInteger(SafeInteger left) protected com.oracle.truffle.api.strings.TruffleStringdoStringNumber(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString rightString, JSConcatStringsNode createLazyString) protected com.oracle.truffle.api.strings.TruffleStringbooleancom.oracle.truffle.api.instrumentation.InstrumentableNodematerializeInstrumentableNodes(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) protected com.oracle.truffle.api.strings.TruffleStringvoidMethods inherited from class JSUnaryNode
getOperandMethods 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
-
Field Details
-
isInt
protected final boolean isInt
-
-
Constructor Details
-
JSAddConstantRightNumberNode
-
-
Method Details
-
hasTag
- Specified by:
hasTagin interfacecom.oracle.truffle.api.instrumentation.InstrumentableNode- Overrides:
hasTagin classJavaScriptNode
-
getNodeObject
- Specified by:
getNodeObjectin interfacecom.oracle.truffle.api.instrumentation.InstrumentableNode- Overrides:
getNodeObjectin classJSUnaryNode
-
materializeInstrumentableNodes
-
getRightValue
-
doIntTruncate
protected int doIntTruncate(int left) -
doInt
protected int doInt(int left) -
doIntOverflow
-
doSafeInteger
-
doDouble
protected double doDouble(double left) -
doStringNumber
protected com.oracle.truffle.api.strings.TruffleString doStringNumber(com.oracle.truffle.api.strings.TruffleString a, com.oracle.truffle.api.strings.TruffleString rightString, JSConcatStringsNode createLazyString) -
doOverloaded
protected Object doOverloaded(JSOverloadedOperatorsObject a, JSOverloadedBinaryNode overloadedOperatorNode) -
getOverloadedOperatorName
protected com.oracle.truffle.api.strings.TruffleString getOverloadedOperatorName() -
doPrimitiveConversion
protected Object doPrimitiveConversion(Object a, com.oracle.truffle.api.nodes.Node node, JSToPrimitiveNode toPrimitiveA, JSToNumberNode toNumberA, com.oracle.truffle.api.strings.TruffleString rightString, JSConcatStringsNode createLazyString, com.oracle.truffle.api.profiles.InlinedConditionProfile profileA) -
rightValueToString
protected com.oracle.truffle.api.strings.TruffleString rightValueToString() -
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
-
expressionToString
- Overrides:
expressionToStringin classJSUnaryNode
-