Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.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 | 440ceca8e3d7 |
children | bf12196e2a60 |
comparison
equal
deleted
inserted
replaced
2804:095162a84dcc | 2805:c3f64b66fc78 |
---|---|
80 public int valueNumber() { | 80 public int valueNumber() { |
81 return Util.hash1(Bytecodes.IFNONNULL, object()); | 81 return Util.hash1(Bytecodes.IFNONNULL, object()); |
82 } | 82 } |
83 | 83 |
84 @Override | 84 @Override |
85 public boolean valueEqual(Instruction i) { | 85 public boolean valueEqual(Node i) { |
86 if (i instanceof NullCheck) { | 86 if (i instanceof NullCheck) { |
87 NullCheck o = (NullCheck) i; | 87 NullCheck o = (NullCheck) i; |
88 return object() == o.object(); | 88 return object() == o.object(); |
89 } | 89 } |
90 return false; | 90 return false; |