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);
  }
}

@@ -345,11 +345,82 @@
 de);%0A  %7D
+%0A%0A  public void notifyInserted() %7B%0A    super.notifyInserted(child);%0A  %7D
 %0A%7D%0A

Add helper to allow dynamic instrumentation wrappers to be inserted