comparison graal/GraalCompiler/src/com/sun/c1x/ir/NegateOp.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 4a6518c4d17d
children 5526d82388be
comparison
equal deleted inserted replaced
2804:095162a84dcc 2805:c3f64b66fc78
77 public int valueNumber() { 77 public int valueNumber() {
78 return Util.hash1(Bytecodes.INEG, x()); 78 return Util.hash1(Bytecodes.INEG, x());
79 } 79 }
80 80
81 @Override 81 @Override
82 public boolean valueEqual(Instruction i) { 82 public boolean valueEqual(Node i) {
83 if (i instanceof NegateOp) { 83 if (i instanceof NegateOp) {
84 NegateOp o = (NegateOp) i; 84 NegateOp o = (NegateOp) i;
85 return x() == o.x(); 85 return x() == o.x();
86 } 86 }
87 return false; 87 return false;