public abstract class AbstractGeneratorBlockNode extends AbstractBlockNode
| Modifier and Type | Field and Description |
|---|---|
protected int |
stateSlot |
blockEMPTYINTERMEDIATE_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGeneratorBlockNode(JavaScriptNode[] statements,
int stateSlot) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame)
Executes this node using the specified context and frame and returns the result value.
|
Object |
executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame,
JavaScriptNode node,
int index,
int startIndex) |
void |
executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame)
Like
JavaScriptNode.execute(VirtualFrame) except that it throws away the result. |
void |
executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame,
JavaScriptNode node,
int index,
int startIndex) |
protected int |
getStateAndReset(com.oracle.truffle.api.frame.VirtualFrame frame) |
protected void |
setState(com.oracle.truffle.api.frame.VirtualFrame frame,
int index) |
filterStatements, getStatements, newListFromRangeexecuteConditionAsBooleanaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, copyUninitialized, createWrapper, executeBoolean, executeDouble, executeInt, executeLong, 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, reportPolymorphicSpecializeclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected AbstractGeneratorBlockNode(JavaScriptNode[] statements, int stateSlot)
protected final int getStateAndReset(com.oracle.truffle.api.frame.VirtualFrame frame)
protected final void setState(com.oracle.truffle.api.frame.VirtualFrame frame,
int index)
public void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNodeJavaScriptNode.execute(VirtualFrame) except that it throws away the result. A node can
override this method if it has a better way to execute without producing a value.executeVoid in class AbstractBlockNodeframe - the frame of the currently executing guest language methodpublic Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNodeexecute in class AbstractBlockNodeframe - the frame of the currently executing guest language methodpublic void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame,
JavaScriptNode node,
int index,
int startIndex)
executeVoid in interface com.oracle.truffle.api.nodes.BlockNode.ElementExecutor<JavaScriptNode>executeVoid in class AbstractBlockNodepublic Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame, JavaScriptNode node, int index, int startIndex)
executeGeneric in interface com.oracle.truffle.api.nodes.BlockNode.ElementExecutor<JavaScriptNode>executeGeneric in class AbstractBlockNode