Class GlobalScopeNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public class GlobalScopeNode extends JavaScriptNode
  • Field Details

    • context

      protected final JSContext context
  • Constructor Details

    • GlobalScopeNode

      protected GlobalScopeNode(JSContext context)
  • Method Details

    • create

      public static JavaScriptNode create(JSContext context)
    • createWithTDZCheck

      public static JavaScriptNode createWithTDZCheck(JSContext context, com.oracle.truffle.api.strings.TruffleString varName)
    • 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
    • copyUninitialized

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