public class AsyncIteratorNextNode extends AbstractAwaitNode implements ResumableNode.WithIntState
IteratorNextUnaryNode
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children
ResumableNode.WithIntState, ResumableNode.WithObjectState
context, expression, readAsyncContextNode, readAsyncResultNode, stateSlot
INTERMEDIATE_VALUE
Modifier | Constructor and Description |
---|---|
protected |
AsyncIteratorNextNode(JSContext context,
int stateSlot,
JavaScriptNode iterator,
JSReadFrameSlotNode asyncContextNode,
JSReadFrameSlotNode asyncResultNode) |
Modifier and Type | Method and Description |
---|---|
protected JavaScriptNode |
copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags) |
static JavaScriptNode |
create(JSContext context,
int stateSlot,
JavaScriptNode iterator,
JSReadFrameSlotNode asyncContextNode,
JSReadFrameSlotNode asyncResultNode) |
Object |
execute(com.oracle.truffle.api.frame.VirtualFrame frame)
Executes this node using the specified context and frame and returns the result value.
|
echoInput, findAsyncStackFramesFromHandler, findAsyncStackFramesFromPromise, getNodeObject, hasTag, resumeAwait, suspendAwait
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTags
getLanguage, getRealm, hasOverloadedOperators
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStateAsInt, getStateAsIntAndReset, getStateSlotKind, setStateAsInt
asResumableNode, createResumableNode, resetState, resume
protected AsyncIteratorNextNode(JSContext context, int stateSlot, JavaScriptNode iterator, JSReadFrameSlotNode asyncContextNode, JSReadFrameSlotNode asyncResultNode)
public static JavaScriptNode create(JSContext context, int stateSlot, JavaScriptNode iterator, JSReadFrameSlotNode asyncContextNode, JSReadFrameSlotNode asyncResultNode)
public Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
JavaScriptNode
execute
in class JavaScriptNode
frame
- the frame of the currently executing guest language methodprotected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
copyUninitialized
in class JavaScriptNode