Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/IfNode.java @ 9222:aa9ffb3a715e
Updated Truffle-SL to new codegen API.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 12:17:27 +0200 |
parents | 5e3d1a68664e |
children | 79041ab43660 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/IfNode.java Sat Apr 20 12:17:03 2013 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/IfNode.java Sat Apr 20 12:17:27 2013 +0200 @@ -25,23 +25,19 @@ import com.oracle.truffle.api.codegen.*; import com.oracle.truffle.api.frame.*; -@ExecuteChildren("conditionNode") +@NodeChild(value = "conditionNode", type = ConditionNode.class) public abstract class IfNode extends StatementNode { - @Child protected ConditionNode conditionNode; - @Child private StatementNode thenPartNode; - @Child private StatementNode elsePartNode; - public IfNode(ConditionNode condition, StatementNode thenPart, StatementNode elsePart) { - this.conditionNode = adoptChild(condition); + public IfNode(StatementNode thenPart, StatementNode elsePart) { this.thenPartNode = adoptChild(thenPart); this.elsePartNode = adoptChild(elsePart); } protected IfNode(IfNode node) { - this(node.conditionNode, node.thenPartNode, node.elsePartNode); + this(node.thenPartNode, node.elsePartNode); } @Specialization