package bd.basic.nodes;

import com.oracle.truffle.api.nodes.Node;


/**
 * Dummy Node to work around Truffle's restriction that a node, which is going to
 * be instrumented, needs to have a parent.
 */
public final class DummyParent extends Node {
  @Child public Node child;

  public DummyParent(final Node node) {
    this.child = insert(node);
  }
}

package bd.basic.nodes;

import com.oracle.truffle.api.nodes.Node;


/**
 * Dummy Node to work around Truffle's restriction that a node, which is going to
 * be instrumented, needs to have a parent.
 */
public final class DummyParent extends Node {
  @Child public Node child;

  public DummyParent(final Node node) {
    this.child = insert(node);
  }

  public void notifyInserted() {
    super.notifyInserted(child);
  }
}

Add helper to allow dynamic instrumentation wrappers to be inserted
Add helper to allow dynamic instrumentation wrappers to be inserted

Signed-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>
