Class ContinuationRootNode

All Implemented Interfaces:
NodeInterface, Cloneable

public abstract class ContinuationRootNode extends RootNode
Abstract class representing the root node for a continuation.

These root nodes have a precise calling convention; see ContinuationResult.getContinuationCallTarget().

If a bytecode interpreter supports continuations, the Bytecode DSL will generate a concrete implementation of this interface. It should not be subclassed manually.

Since:
24.2
  • Constructor Details

    • ContinuationRootNode

      protected ContinuationRootNode(Object token, TruffleLanguage<?> language, FrameDescriptor frameDescriptor)
      Internal constructor for generated code. Do not use.
      Since:
      24.2
  • Method Details

    • getSourceRootNode

      public abstract BytecodeRootNode getSourceRootNode()
      Returns the original root node from which this continuation was created.
      Since:
      24.2
    • getLocation

      public abstract BytecodeLocation getLocation()
      Returns the BytecodeLocation associated with this continuation.
      Since:
      24.2
    • findFrame

      protected abstract Frame findFrame(Frame frame)
      Internal method implemented by the generated code. Do not use.
      Since:
      24.2