diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/BinaryNode.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/BinaryNode.java	Sat Apr 20 12:17:03 2013 +0200
+++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/BinaryNode.java	Sat Apr 20 12:17:27 2013 +0200
@@ -24,20 +24,7 @@
 
 import com.oracle.truffle.api.codegen.*;
 
-@ExecuteChildren({"leftNode", "rightNode"})
+@NodeChildren({@NodeChild("leftNode"), @NodeChild("rightNode")})
 public abstract class BinaryNode extends TypedNode {
 
-    @Child protected TypedNode leftNode;
-
-    @Child protected TypedNode rightNode;
-
-    public BinaryNode(TypedNode left, TypedNode right) {
-        this.leftNode = adoptChild(left);
-        this.rightNode = adoptChild(right);
-    }
-
-    public BinaryNode(BinaryNode node) {
-        this(node.leftNode, node.rightNode);
-    }
-
 }