Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArrayLength.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 | d27bdbec3d67 |
comparison
equal
deleted
inserted
replaced
2804:095162a84dcc | 2805:c3f64b66fc78 |
---|---|
54 public int valueNumber() { | 54 public int valueNumber() { |
55 return Util.hash1(Bytecodes.ARRAYLENGTH, array()); | 55 return Util.hash1(Bytecodes.ARRAYLENGTH, array()); |
56 } | 56 } |
57 | 57 |
58 @Override | 58 @Override |
59 public boolean valueEqual(Instruction i) { | 59 public boolean valueEqual(Node i) { |
60 if (i instanceof ArrayLength) { | 60 if (i instanceof ArrayLength) { |
61 ArrayLength o = (ArrayLength) i; | 61 ArrayLength o = (ArrayLength) i; |
62 return array() == o.array(); | 62 return array() == o.array(); |
63 } | 63 } |
64 return false; | 64 return false; |