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,
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 SafeInteger |
doSafeInteger(SafeInteger left) |
protected com.oracle.truffle.api.strings.TruffleString |
doStringNumber(com.oracle.truffle.api.strings.TruffleString a,
com.oracle.truffle.api.strings.TruffleString rightString,
JSConcatStringsNode createLazyString) |
abstract Object |
execute(Object a) |
String |
expressionToString() |
Object |
getNodeObject() |
protected com.oracle.truffle.api.strings.TruffleString |
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 com.oracle.truffle.api.strings.TruffleString |
rightValueToString() |
void |
setTruncate() |
createWrapper, execute, 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 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 com.oracle.truffle.api.strings.TruffleString doStringNumber(com.oracle.truffle.api.strings.TruffleString a,
com.oracle.truffle.api.strings.TruffleString rightString,
JSConcatStringsNode createLazyString)
protected Object doOverloaded(JSOverloadedOperatorsObject a, JSOverloadedBinaryNode overloadedOperatorNode)
protected com.oracle.truffle.api.strings.TruffleString getOverloadedOperatorName()
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)
protected com.oracle.truffle.api.strings.TruffleString 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