Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/AccessField.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 | 4a4dab936c1e |
comparison
equal
deleted
inserted
replaced
2541:0f9eeb15e636 | 2543:c58a301eb2d7 |
---|---|
91 */ | 91 */ |
92 public boolean isVolatile() { | 92 public boolean isVolatile() { |
93 return isLoaded() && Modifier.isVolatile(field.accessFlags()); | 93 return isLoaded() && Modifier.isVolatile(field.accessFlags()); |
94 } | 94 } |
95 | 95 |
96 /** | |
97 * Checks whether this field access may cause a trap or an exception, which | |
98 * is if it either requires a null check or needs patching. | |
99 * @return {@code true} if this field access can cause a trap | |
100 */ | |
101 @Override | |
102 public boolean canTrap() { | |
103 return true; | |
104 } | |
105 | |
106 @Override | 96 @Override |
107 public void inputValuesDo(ValueClosure closure) { | 97 public void inputValuesDo(ValueClosure closure) { |
108 object = closure.apply(object); | 98 object = closure.apply(object); |
109 } | 99 } |
110 } | 100 } |