Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java @ 2543:c58a301eb2d7
Clean up on canTrap.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:22:10 +0200 |
parents | 0f9eeb15e636 |
children | f1bc67c2d453 |
comparison
equal
deleted
inserted
replaced
2541:0f9eeb15e636 | 2543:c58a301eb2d7 |
---|---|
52 */ | 52 */ |
53 public Value object() { | 53 public Value object() { |
54 return object; | 54 return object; |
55 } | 55 } |
56 | 56 |
57 /** | |
58 * Checks whether this instruction can cause a trap. | |
59 * @return {@code true} if this instruction can cause a trap | |
60 */ | |
61 @Override | |
62 public boolean canTrap() { | |
63 return true; | |
64 } | |
65 | |
66 @Override | 57 @Override |
67 public void inputValuesDo(ValueClosure closure) { | 58 public void inputValuesDo(ValueClosure closure) { |
68 object = closure.apply(object); | 59 object = closure.apply(object); |
69 } | 60 } |
70 | 61 |