Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArrayLength.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 | fec99fc30af1 |
comparison
equal
deleted
inserted
replaced
2541:0f9eeb15e636 | 2543:c58a301eb2d7 |
---|---|
42 */ | 42 */ |
43 public ArrayLength(Value array, FrameState newFrameState) { | 43 public ArrayLength(Value array, FrameState newFrameState) { |
44 super(CiKind.Int, array, newFrameState); | 44 super(CiKind.Int, array, newFrameState); |
45 } | 45 } |
46 | 46 |
47 /** | |
48 * Checks whether this instruction can cause a trap. | |
49 * @return {@code true} if this instruction can cause a trap | |
50 */ | |
51 @Override | |
52 public boolean canTrap() { | |
53 return true; | |
54 } | |
55 | |
56 @Override | 47 @Override |
57 public void accept(ValueVisitor v) { | 48 public void accept(ValueVisitor v) { |
58 v.visitArrayLength(this); | 49 v.visitArrayLength(this); |
59 } | 50 } |
60 | 51 |