comparison graal/GraalCompiler/src/com/sun/c1x/ir/IfOp.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 bd17ac598c6e
comparison
equal deleted inserted replaced
2804:095162a84dcc 2805:c3f64b66fc78
117 public int valueNumber() { 117 public int valueNumber() {
118 return Util.hash4(cond.hashCode(), x(), y(), trueValue(), falseValue()); 118 return Util.hash4(cond.hashCode(), x(), y(), trueValue(), falseValue());
119 } 119 }
120 120
121 @Override 121 @Override
122 public boolean valueEqual(Instruction i) { 122 public boolean valueEqual(Node i) {
123 if (i instanceof IfOp) { 123 if (i instanceof IfOp) {
124 IfOp o = (IfOp) i; 124 IfOp o = (IfOp) i;
125 return opcode == o.opcode && x() == o.x() && y() == o.y() && trueValue() == o.trueValue() && falseValue() == o.falseValue(); 125 return opcode == o.opcode && x() == o.x() && y() == o.y() && trueValue() == o.trueValue() && falseValue() == o.falseValue();
126 } 126 }
127 return false; 127 return false;