Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Convert.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 | 5526d82388be |
comparison
equal
deleted
inserted
replaced
2804:095162a84dcc | 2805:c3f64b66fc78 |
---|---|
86 public int valueNumber() { | 86 public int valueNumber() { |
87 return Util.hash1(opcode, value()); | 87 return Util.hash1(opcode, value()); |
88 } | 88 } |
89 | 89 |
90 @Override | 90 @Override |
91 public boolean valueEqual(Instruction i) { | 91 public boolean valueEqual(Node i) { |
92 if (i instanceof Convert) { | 92 if (i instanceof Convert) { |
93 Convert o = (Convert) i; | 93 Convert o = (Convert) i; |
94 return opcode == o.opcode && value() == o.value(); | 94 return opcode == o.opcode && value() == o.value(); |
95 } | 95 } |
96 return false; | 96 return false; |