comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/RootCallTarget.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 a12017c18d5d
children 1422f0bd55e3
comparison
equal deleted inserted replaced
14627:46c020971d9c 14628:a08b8694f556
35 private final RootNode rootNode; 35 private final RootNode rootNode;
36 36
37 public RootCallTarget(RootNode function) { 37 public RootCallTarget(RootNode function) {
38 this.rootNode = function; 38 this.rootNode = function;
39 this.rootNode.setCallTarget(this); 39 this.rootNode.setCallTarget(this);
40 this.rootNode.adoptChildren();
40 } 41 }
41 42
42 @Override 43 @Override
43 public String toString() { 44 public String toString() {
44 return rootNode.toString(); 45 return rootNode.toString();