comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java @ 14628:a08b8694f556

Truffle: Node API changes deprecate adoptChild, no longer needed in constructor add Node#insert for inserting new nodes into the tree (previously adoptChild) add Node#adoptChildren() helper method that adopts all (direct and indirect) children of a node, automatically called in TruffleRuntime#createCallTarget
author Andreas Woess <andreas.woess@jku.at>
date Wed, 19 Mar 2014 23:11:46 +0100
parents 5a0c694ef735
children 64dcb92ee75a
comparison
equal deleted inserted replaced
14627:46c020971d9c 14628:a08b8694f556
98 98
99 @Child private E node; 99 @Child private E node;
100 100
101 public TestRootNode(E node) { 101 public TestRootNode(E node) {
102 super(null); 102 super(null);
103 this.node = adoptChild(node); 103 this.node = node;
104 } 104 }
105 105
106 @Override 106 @Override
107 public Object execute(VirtualFrame frame) { 107 public Object execute(VirtualFrame frame) {
108 return node.execute(frame); 108 return node.execute(frame);