Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Op2.java @ 2805:c3f64b66fc78
Towards removing the next pointer from Constant and ArithmeticOp
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 19:57:56 +0200 |
parents | 092e628ddd5d |
children | caf55daa41dc |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Op2.java Fri May 27 18:44:13 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Op2.java Fri May 27 19:57:56 2011 +0200 @@ -30,7 +30,7 @@ /** * The {@code Op2} class is the base of arithmetic and logic operations with two inputs. */ -public abstract class Op2 extends Instruction { +public abstract class Op2 extends Value { private static final int INPUT_COUNT = 2; private static final int INPUT_X = 0; @@ -105,7 +105,7 @@ } @Override - public boolean valueEqual(Instruction i) { + public boolean valueEqual(Node i) { if (i instanceof Op2) { Op2 o = (Op2) i; return opcode == o.opcode && x() == o.x() && y() == o.y();