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 CharSequence |
doNumberString(CharSequence right,
String leftString,
JSConcatStringsNode createLazyString) |
protected Object |
doPrimitiveConversion(Object right,
JSToPrimitiveNode toPrimitiveB,
JSToNumberNode toNumberB,
String leftString,
JSConcatStringsNode createLazyString,
com.oracle.truffle.api.profiles.ConditionProfile profileB) |
protected SafeInteger |
doSafeInteger(SafeInteger right) |
abstract Object |
execute(Object a) |
String |
expressionToString() |
Number |
getLeftValue() |
boolean |
hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag) |
protected String |
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, executeSafeInteger, executeString, executeVoid, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecializeclone, equals, finalize, 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 CharSequence doNumberString(CharSequence right, String leftString, JSConcatStringsNode createLazyString)
protected Object doPrimitiveConversion(Object right, JSToPrimitiveNode toPrimitiveB, JSToNumberNode toNumberB, String leftString, JSConcatStringsNode createLazyString, com.oracle.truffle.api.profiles.ConditionProfile profileB)
protected String 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