Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLBlockNode.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 | afd6fa5e8229 |
children | 111bf82514ca |
comparison
equal
deleted
inserted
replaced
14627:46c020971d9c | 14628:a08b8694f556 |
---|---|
43 public SLBlockNode(SLStatementNode[] bodyNodes) { | 43 public SLBlockNode(SLStatementNode[] bodyNodes) { |
44 /* | 44 /* |
45 * It is a Truffle requirement to call adoptChildren(), which performs all the necessary | 45 * It is a Truffle requirement to call adoptChildren(), which performs all the necessary |
46 * steps to add the new children to the node tree. | 46 * steps to add the new children to the node tree. |
47 */ | 47 */ |
48 this.bodyNodes = adoptChildren(bodyNodes); | 48 this.bodyNodes = bodyNodes; |
49 } | 49 } |
50 | 50 |
51 /** | 51 /** |
52 * Execute all child statements. The annotation {@link ExplodeLoop} triggers full unrolling of | 52 * Execute all child statements. The annotation {@link ExplodeLoop} triggers full unrolling of |
53 * the loop during compilation. This allows the {@link SLStatementNode#executeVoid} method of | 53 * the loop during compilation. This allows the {@link SLStatementNode#executeVoid} method of |