public abstract class JSAddConstantLeftNumberNode extends JSUnaryNode implements Truncatable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isInt |
protected boolean |
isSafeLong |
operandNodeINTERMEDIATE_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
JSAddConstantLeftNumberNode(Number leftValue,
JavaScriptNode right,
boolean truncate) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaScriptNode |
copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
protected double |
doDouble(double right) |
protected int |
doInt(int right) |
protected Object |
doIntOverflow(int right) |
protected int |
doIntTruncate(int right) |
protected Object |
doNumberString(com.oracle.truffle.api.strings.TruffleString right,
com.oracle.truffle.api.strings.TruffleString leftString,
JSConcatStringsNode createLazyString) |
protected Object |
doOverloaded(JSOverloadedOperatorsObject right,
JSOverloadedBinaryNode overloadedOperatorNode) |
protected Object |
doPrimitiveConversion(Object right,
com.oracle.truffle.api.nodes.Node node,
JSToPrimitiveNode toPrimitiveB,
JSToNumberNode toNumberB,
com.oracle.truffle.api.strings.TruffleString leftString,
JSConcatStringsNode createLazyString,
com.oracle.truffle.api.profiles.InlinedConditionProfile profileB) |
protected SafeInteger |
doSafeInteger(SafeInteger right) |
abstract Object |
execute(Object a) |
String |
expressionToString() |
Number |
getLeftValue() |
protected com.oracle.truffle.api.strings.TruffleString |
getOverloadedOperatorName() |
boolean |
hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag) |
protected com.oracle.truffle.api.strings.TruffleString |
leftValueToString() |
com.oracle.truffle.api.instrumentation.InstrumentableNode |
materializeInstrumentableNodes(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
void |
setTruncate() |
createWrapper, execute, getNodeObject, getOperandaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, execute, executeBoolean, executeDouble, executeInt, executeLong, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittruncateprotected JSAddConstantLeftNumberNode(Number leftValue, JavaScriptNode right, boolean truncate)
public boolean hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag)
hasTag in interface com.oracle.truffle.api.instrumentation.InstrumentableNodehasTag in class JavaScriptNodepublic com.oracle.truffle.api.instrumentation.InstrumentableNode materializeInstrumentableNodes(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
materializeInstrumentableNodes in interface com.oracle.truffle.api.instrumentation.InstrumentableNodepublic Number getLeftValue()
protected int doIntTruncate(int right)
protected int doInt(int right)
protected Object doIntOverflow(int right)
protected SafeInteger doSafeInteger(SafeInteger right)
protected double doDouble(double right)
protected Object doNumberString(com.oracle.truffle.api.strings.TruffleString right, com.oracle.truffle.api.strings.TruffleString leftString, JSConcatStringsNode createLazyString)
protected Object doOverloaded(JSOverloadedOperatorsObject right, JSOverloadedBinaryNode overloadedOperatorNode)
protected com.oracle.truffle.api.strings.TruffleString getOverloadedOperatorName()
protected Object doPrimitiveConversion(Object right, com.oracle.truffle.api.nodes.Node node, JSToPrimitiveNode toPrimitiveB, JSToNumberNode toNumberB, com.oracle.truffle.api.strings.TruffleString leftString, JSConcatStringsNode createLazyString, com.oracle.truffle.api.profiles.InlinedConditionProfile profileB)
protected com.oracle.truffle.api.strings.TruffleString leftValueToString()
public void setTruncate()
setTruncate in interface Truncatableprotected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized in class JavaScriptNodepublic String expressionToString()
expressionToString in class JSUnaryNode