Class GlobalScopeVarWrapperNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, WriteNode, ReadNode, Cloneable

public final class GlobalScopeVarWrapperNode extends VarWrapperNode implements ReadNode, WriteNode
Wrapper around a global property access that handles potential lexical declarations shadowing global properties.
  • Constructor Details

  • Method Details

    • getDelegateNode

      public JavaScriptNode getDelegateNode()
      Specified by:
      getDelegateNode in class VarWrapperNode
    • 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
    • isInstrumentable

      public boolean isInstrumentable()
      Specified by:
      isInstrumentable in interface com.oracle.truffle.api.instrumentation.InstrumentableNode
      Overrides:
      isInstrumentable in class JavaScriptNode
    • 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
    • executeWrite

      public void executeWrite(com.oracle.truffle.api.frame.VirtualFrame frame, Object value)
      Specified by:
      executeWrite in interface WriteNode
    • getRhs

      public JavaScriptNode getRhs()
      Specified by:
      getRhs in interface WriteNode
    • copyUninitialized

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

      public void setMethod()