Class AsyncFunctionBodyNode.AsyncFunctionRootNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.ExecutableNode
com.oracle.truffle.api.nodes.RootNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, AsyncRootNode, Cloneable
Enclosing class:
AsyncFunctionBodyNode

public static final class AsyncFunctionBodyNode.AsyncFunctionRootNode extends AbstractFunctionRootNode implements AsyncRootNode
  • Method Details

    • executeInRealm

      protected Object executeInRealm(com.oracle.truffle.api.frame.VirtualFrame frame)
      Specified by:
      executeInRealm in class JavaScriptRealmBoundaryRootNode
    • isResumption

      public boolean isResumption()
      Description copied from class: JavaScriptRootNode
      Is this a root node for the resumption of a suspended function.
      Overrides:
      isResumption in class JavaScriptRootNode
    • getName

      public String getName()
      Overrides:
      getName in class com.oracle.truffle.api.nodes.RootNode
    • toString

      public String toString()
      Overrides:
      toString in class com.oracle.truffle.api.nodes.Node
    • getAsyncFunctionPromise

      public JSDynamicObject getAsyncFunctionPromise(com.oracle.truffle.api.frame.Frame asyncFrame, Object promiseCapability)
      Specified by:
      getAsyncFunctionPromise in interface AsyncRootNode
    • getSavedStackTrace

      public List<com.oracle.truffle.api.TruffleStackTraceElement> getSavedStackTrace(com.oracle.truffle.api.frame.Frame asyncFrame)
    • findAsynchronousFrames

      protected List<com.oracle.truffle.api.TruffleStackTraceElement> findAsynchronousFrames(com.oracle.truffle.api.frame.Frame frame)
      Overrides:
      findAsynchronousFrames in class com.oracle.truffle.api.nodes.RootNode