Class GeneratorWrapperNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.JavaScriptNode
com.oracle.truffle.js.nodes.control.GeneratorWrapperNode
All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, com.oracle.truffle.api.nodes.RepeatingNode, GeneratorNode, Cloneable

public final class GeneratorWrapperNode extends JavaScriptNode implements com.oracle.truffle.api.nodes.RepeatingNode, GeneratorNode
  • Method Details

    • createWrapper

      public static JavaScriptNode createWrapper(JavaScriptNode child, int stateSlot)
    • hasTag

      public boolean hasTag(Class<? extends com.oracle.truffle.api.instrumentation.Tag> tag)
      Specified by:
      hasTag in interface com.oracle.truffle.api.instrumentation.InstrumentableNode
      Overrides:
      hasTag in class JavaScriptNode
    • getNodeObject

      public Object getNodeObject()
      Specified by:
      getNodeObject in interface com.oracle.truffle.api.instrumentation.InstrumentableNode
    • execute

      public Object execute(com.oracle.truffle.api.frame.VirtualFrame frame)
      Description copied from class: JavaScriptNode
      Executes this node using the specified context and frame and returns the result value.
      Specified by:
      execute in class JavaScriptNode
      Parameters:
      frame - the frame of the currently executing guest language method
      Returns:
      the value of the execution
    • executeRepeating

      public boolean executeRepeating(com.oracle.truffle.api.frame.VirtualFrame frame)
      Specified by:
      executeRepeating in interface com.oracle.truffle.api.nodes.RepeatingNode
    • getResumableNode

      public JavaScriptNode getResumableNode()
    • copyUninitialized

      protected JavaScriptNode copyUninitialized(Set<Class<? extends com.oracle.truffle.api.instrumentation.Tag>> materializedTags)
      Overrides:
      copyUninitialized in class JavaScriptNode