public abstract class JSAddConstantRightNumberNode extends JSUnaryNode implements Truncatable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isInt |
operandNodeINTERMEDIATE_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
JSAddConstantRightNumberNode(JavaScriptNode left,
Number rightValue,
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 left) |
protected int |
doInt(int left) |
protected Object |
doIntOverflow(int left) |
protected int |
doIntTruncate(int left) |
protected Object |
doOverloaded(JSOverloadedOperatorsObject a,
JSOverloadedBinaryNode overloadedOperatorNode) |
protected Object |
doPrimitiveConversion(Object a,
JSToPrimitiveNode toPrimitiveA,
JSToNumberNode toNumberA,
String rightString,
JSConcatStringsNode createLazyString,
com.oracle.truffle.api.profiles.ConditionProfile profileA) |
protected SafeInteger |
doSafeInteger(SafeInteger left) |
protected CharSequence |
doStringNumber(CharSequence a,
String rightString,
JSConcatStringsNode createLazyString) |
abstract Object |
execute(Object a) |
String |
expressionToString() |
Object |
getNodeObject() |
protected String |
getOverloadedOperatorName() |
Number |
getRightValue() |
boolean |
hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag) |
com.oracle.truffle.api.instrumentation.InstrumentableNode |
materializeInstrumentableNodes(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
protected String |
rightValueToString() |
void |
setTruncate() |
createWrapper, execute, getOperandaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, execute, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealmaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittruncateprotected JSAddConstantRightNumberNode(JavaScriptNode left, Number rightValue, 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 Object getNodeObject()
getNodeObject in interface com.oracle.truffle.api.instrumentation.InstrumentableNodegetNodeObject in class JSUnaryNodepublic 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 getRightValue()
protected int doIntTruncate(int left)
protected int doInt(int left)
protected Object doIntOverflow(int left)
protected SafeInteger doSafeInteger(SafeInteger left)
protected double doDouble(double left)
protected CharSequence doStringNumber(CharSequence a, String rightString, JSConcatStringsNode createLazyString)
protected Object doOverloaded(JSOverloadedOperatorsObject a, JSOverloadedBinaryNode overloadedOperatorNode)
protected String getOverloadedOperatorName()
protected Object doPrimitiveConversion(Object a, JSToPrimitiveNode toPrimitiveA, JSToNumberNode toNumberA, String rightString, JSConcatStringsNode createLazyString, com.oracle.truffle.api.profiles.ConditionProfile profileA)
protected String rightValueToString()
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