comparison graal/GraalCompiler/src/com/sun/c1x/ir/NewArray.java @ 2543:c58a301eb2d7

Clean up on canTrap.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 21:22:10 +0200
parents 4a016ff4d2df
children f1bc67c2d453
comparison
equal deleted inserted replaced
2541:0f9eeb15e636 2543:c58a301eb2d7
52 public Value length() { 52 public Value length() {
53 return length; 53 return length;
54 } 54 }
55 55
56 /** 56 /**
57 * Checks whether this instruction can trap.
58 * @return <code>true</code>, conservatively assuming that this instruction can throw such
59 * exceptions as {@code OutOfMemoryError}
60 */
61 @Override
62 public boolean canTrap() {
63 return true;
64 }
65
66 /**
67 * Applies the specified closure to all input values of this instruction. 57 * Applies the specified closure to all input values of this instruction.
68 * @param closure the closure to apply 58 * @param closure the closure to apply
69 */ 59 */
70 @Override 60 @Override
71 public void inputValuesDo(ValueClosure closure) { 61 public void inputValuesDo(ValueClosure closure) {