comparison graal/GraalCompiler/src/com/sun/c1x/ir/InstanceOf.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 91d3952f7eb7
children bd17ac598c6e
comparison
equal deleted inserted replaced
2804:095162a84dcc 2805:c3f64b66fc78
57 public int valueNumber() { 57 public int valueNumber() {
58 return Util.hash1(Bytecodes.INSTANCEOF, object()); 58 return Util.hash1(Bytecodes.INSTANCEOF, object());
59 } 59 }
60 60
61 @Override 61 @Override
62 public boolean valueEqual(Instruction i) { 62 public boolean valueEqual(Node i) {
63 if (i instanceof InstanceOf) { 63 if (i instanceof InstanceOf) {
64 InstanceOf o = (InstanceOf) i; 64 InstanceOf o = (InstanceOf) i;
65 return targetClass == o.targetClass && object() == o.object(); 65 return targetClass == o.targetClass && object() == o.object();
66 } 66 }
67 return false; 67 return false;