Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.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 | 1c36b17f7ee0 |
comparison
equal
deleted
inserted
replaced
2541:0f9eeb15e636 | 2543:c58a301eb2d7 |
---|---|
44 */ | 44 */ |
45 public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateBefore) { | 45 public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateBefore) { |
46 super(object, lockAddress, stateBefore, lockNumber); | 46 super(object, lockAddress, stateBefore, lockNumber); |
47 } | 47 } |
48 | 48 |
49 /** | |
50 * Checks whether this instruction can trap. | |
51 * @return {@code true} if this instruction may raise a {@link NullPointerException} | |
52 */ | |
53 @Override | |
54 public boolean canTrap() { | |
55 return true; | |
56 } | |
57 | |
58 @Override | 49 @Override |
59 public void accept(ValueVisitor v) { | 50 public void accept(ValueVisitor v) { |
60 v.visitMonitorEnter(this); | 51 v.visitMonitorEnter(this); |
61 } | 52 } |
62 | 53 |