Class AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AsyncIteratorRootNode<T>
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.ExecutableNode
com.oracle.truffle.api.nodes.RootNode
com.oracle.truffle.js.runtime.JavaScriptRootNode
com.oracle.truffle.js.builtins.AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AsyncIteratorRootNode<T>
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,AsyncHandlerRootNode,Cloneable
- Direct Known Subclasses:
ArrayFunctionBuiltins.JSArrayFromAsyncNode.ArrayFromAsyncResumptionRootNode,AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AbstractAsyncIteratorGeneratorResumptionRootNode,AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AsyncIteratorNonGeneratorResumptionRootNode
- Enclosing class:
AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode<T extends AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AsyncIteratorArgs>
public abstract static class AsyncIteratorPrototypeBuiltins.AsyncIteratorAwaitNode.AsyncIteratorRootNode<T>
extends JavaScriptRootNode
implements AsyncHandlerRootNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.js.nodes.promise.AsyncHandlerRootNode
AsyncHandlerRootNode.AsyncStackTraceInfo -
Field Summary
FieldsFields inherited from class com.oracle.truffle.js.runtime.JavaScriptRootNode
MODULE_DUMMY_FRAMEDESCRIPTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcallReject(PromiseCapabilityRecord promiseCapability, Object resultValue) protected final voidcallResolve(PromiseCapabilityRecord promiseCapability, Object resultValue) protected final TgetArgs(com.oracle.truffle.api.frame.VirtualFrame frame) getAsyncStackTraceInfo(JSFunctionObject handlerFunction) Extract the stack trace element and the promise associated with this handler, both optional.protected final JSAsyncGeneratorObjectgetThis(com.oracle.truffle.api.frame.VirtualFrame frame) protected final ObjectindexToJS(long index) Methods inherited from class com.oracle.truffle.js.runtime.JavaScriptRootNode
countsTowardsStackTraceLimit, findAsynchronousFrames, getLanguage, getRealm, getSourceSection, isCaptureFramesForTrace, isFunction, isInternal, isResumptionMethods inherited from class com.oracle.truffle.api.nodes.RootNode
cloneUninitialized, computeSize, copy, createConstantNode, execute, findAsynchronousFrames, findBytecodeIndex, getCallTarget, getFrameDescriptor, getName, getParentFrameDescriptor, getQualifiedName, isCaptureFramesForTrace, isCaptureFramesForTrace, isCloneUninitializedSupported, isCloningAllowed, isInstrumentable, isSameFrame, isTrivial, prepareForAOT, translateStackTraceElementMethods inherited from class com.oracle.truffle.api.nodes.ExecutableNode
getLanguage, getLanguageInfoMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.js.nodes.promise.AsyncHandlerRootNode
getAsyncStackTraceInfo
-
Field Details
-
valueNode
-
context
-
-
Constructor Details
-
AsyncIteratorRootNode
-
-
Method Details
-
getArgs
-
getThis
-
getAsyncStackTraceInfo
public AsyncHandlerRootNode.AsyncStackTraceInfo getAsyncStackTraceInfo(JSFunctionObject handlerFunction) Description copied from interface:AsyncHandlerRootNodeExtract the stack trace element and the promise associated with this handler, both optional.- Specified by:
getAsyncStackTraceInfoin interfaceAsyncHandlerRootNode- Parameters:
handlerFunction- The handler callback function of the promise reaction.
-
indexToJS
-
callResolve
-
callReject
-