Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/BinaryNodeTest.java @ 9209:119a20bb3b1d
Fixed minor bug in BinaryNodeTest.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 16:50:17 +0200 |
parents | 6ef9fc7375c7 |
children | 5f7f0d3e3638 |
comparison
equal
deleted
inserted
replaced
9208:9dfefdee8f3f | 9209:119a20bb3b1d |
---|---|
53 | 53 |
54 @Child protected ValueNode leftNode; | 54 @Child protected ValueNode leftNode; |
55 @Child protected ValueNode rightNode; | 55 @Child protected ValueNode rightNode; |
56 | 56 |
57 public BinaryNode(ValueNode left, ValueNode right) { | 57 public BinaryNode(ValueNode left, ValueNode right) { |
58 this.leftNode = left; | 58 this.leftNode = adoptChild(left); |
59 this.rightNode = right; | 59 this.rightNode = adoptChild(right); |
60 } | 60 } |
61 | 61 |
62 public BinaryNode(BinaryNode prev) { | 62 public BinaryNode(BinaryNode prev) { |
63 this(prev.leftNode, prev.rightNode); | 63 this(prev.leftNode, prev.rightNode); |
64 } | 64 } |