public class ConstantVariableWriteNode extends JavaScriptNode implements WriteNode
Modifier and Type | Field and Description |
---|---|
protected JavaScriptNode |
errorNode |
protected JavaScriptNode |
rhs |
INTERMEDIATE_VALUE
Modifier | Constructor and Description |
---|---|
protected |
ConstantVariableWriteNode(JavaScriptNode rhs,
boolean doThrow) |
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 |
execute(com.oracle.truffle.api.frame.VirtualFrame frame)
Executes this node using the specified context and frame and returns the result value.
|
Object |
executeWrite(com.oracle.truffle.api.frame.VirtualFrame frame,
Object value) |
JavaScriptNode |
getRhs() |
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, hasTag, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTags
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize
protected JavaScriptNode rhs
protected JavaScriptNode errorNode
protected ConstantVariableWriteNode(JavaScriptNode rhs, boolean doThrow)
public static ConstantVariableWriteNode create(JavaScriptNode rhs, boolean doThrow)
public Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNode
execute
in class JavaScriptNode
frame
- the frame of the currently executing guest language methodpublic JavaScriptNode getRhs()
public Object executeWrite(com.oracle.truffle.api.frame.VirtualFrame frame, Object value)
executeWrite
in interface WriteNode
protected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized
in class JavaScriptNode