Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/TypeCheck.java @ 2543:c58a301eb2d7
Clean up on canTrap.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:22:10 +0200 |
parents | e1ba5a93e997 |
children | f1bc67c2d453 |
comparison
equal
deleted
inserted
replaced
2541:0f9eeb15e636 | 2543:c58a301eb2d7 |
---|---|
82 public boolean isLoaded() { | 82 public boolean isLoaded() { |
83 return targetClass != null; | 83 return targetClass != null; |
84 } | 84 } |
85 | 85 |
86 /** | 86 /** |
87 * Checks whether this instruction can trap. | |
88 * @return {@code true}, conservatively assuming the cast may fail | |
89 */ | |
90 @Override | |
91 public boolean canTrap() { | |
92 return true; | |
93 } | |
94 | |
95 /** | |
96 * Iterates over the input values to this instruction. | 87 * Iterates over the input values to this instruction. |
97 * @param closure the closure to apply | 88 * @param closure the closure to apply |
98 */ | 89 */ |
99 @Override | 90 @Override |
100 public void inputValuesDo(ValueClosure closure) { | 91 public void inputValuesDo(ValueClosure closure) { |