Mercurial > hg > truffle
changeset 18840:4d1cf05c7545
Make BinaryNode inputs mutable.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 12 Jan 2015 14:10:07 +0100 |
parents | 1b7dbb81df4f |
children | f2f2897880c8 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java Mon Jan 12 13:32:43 2015 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java Mon Jan 12 14:10:07 2015 +0100 @@ -44,6 +44,16 @@ return y; } + public void setX(ValueNode x) { + updateUsages(this.x, x); + this.x = x; + } + + public void setY(ValueNode y) { + updateUsages(this.y, y); + this.y = y; + } + /** * Creates a new BinaryNode instance. *