Class WithTargetNode

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 final class WithTargetNode extends JavaScriptNode
Reads the with binding object and performs Object Environment HasBinding(name). Returns undefined if the binding was not found or blocked by an unscopables property.
  • Method Details

    • create

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