public class ConstantVariableWriteNode extends JavaScriptNode implements WriteNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doThrow |
protected JavaScriptNode |
rhs |
protected Object |
varName |
INTERMEDIATE_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
ConstantVariableWriteNode(JavaScriptNode rhs,
boolean doThrow,
Object varName) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaScriptNode |
copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
static ConstantVariableWriteNode |
create(JavaScriptNode rhs,
boolean doThrow,
Object varName) |
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame)
Executes this node using the specified context and frame and returns the result value.
|
void |
executeWrite(com.oracle.truffle.api.frame.VirtualFrame frame,
Object value) |
JavaScriptNode |
getRhs() |
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, executeBoolean, executeDouble, executeInt, executeLong, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, hasTag, 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, reportPolymorphicSpecializeprotected JavaScriptNode rhs
protected final boolean doThrow
protected final Object varName
protected ConstantVariableWriteNode(JavaScriptNode rhs, boolean doThrow, Object varName)
public static ConstantVariableWriteNode create(JavaScriptNode rhs, boolean doThrow, Object varName)
public Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNodeexecute in class JavaScriptNodeframe - the frame of the currently executing guest language methodpublic JavaScriptNode getRhs()
public void executeWrite(com.oracle.truffle.api.frame.VirtualFrame frame,
Object value)
executeWrite in interface WriteNodeprotected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized in class JavaScriptNode