Mercurial > hg > graal-compiler
changeset 12771:d3f5a5b1d99c
Use argument graph in BinaryNode smart constructors.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 18 Nov 2013 17:02:48 +0100 |
parents | 3e013f4512de |
children | 6a7b6dcb7f67 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java Mon Nov 18 09:11:30 2013 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/BinaryNode.java Mon Nov 18 17:02:48 2013 +0100 @@ -94,7 +94,7 @@ return IntegerArithmeticNode.add(graph, x, y); case Float: case Double: - return x.graph().unique(new FloatAddNode(x.kind(), x, y, false)); + return graph.unique(new FloatAddNode(x.kind(), x, y, false)); default: throw GraalInternalError.shouldNotReachHere(); } @@ -111,7 +111,7 @@ return IntegerArithmeticNode.sub(graph, x, y); case Float: case Double: - return x.graph().unique(new FloatSubNode(x.kind(), x, y, false)); + return graph.unique(new FloatSubNode(x.kind(), x, y, false)); default: throw GraalInternalError.shouldNotReachHere(); } @@ -128,7 +128,7 @@ return IntegerArithmeticNode.mul(graph, x, y); case Float: case Double: - return x.graph().unique(new FloatMulNode(x.kind(), x, y, false)); + return graph.unique(new FloatMulNode(x.kind(), x, y, false)); default: throw GraalInternalError.shouldNotReachHere(); }