Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/AccessField.java @ 2539:fa3bda50cbfd
More clean up on Value.Flags.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 20:22:05 +0200 |
parents | e1ba5a93e997 |
children | 3fc322165071 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/AccessField.java Wed Apr 27 20:13:54 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/AccessField.java Wed Apr 27 20:22:05 2011 +0200 @@ -36,6 +36,7 @@ private Value object; protected final RiField field; + private boolean needsPatching; /** * Constructs a new access field object. @@ -53,7 +54,7 @@ if (!isLoaded || (C1XOptions.TestPatching && !Modifier.isVolatile(field.accessFlags()))) { // require patching if the field is not loaded (i.e. resolved), // or if patch testing is turned on (but not if the field is volatile) - setFlag(Flag.NeedsPatching); + needsPatching = true; } initFlag(Flag.IsLoaded, isLoaded); if (isLoaded && object.isNonNull()) { @@ -115,7 +116,7 @@ * @return {@code true} if this field access will require patching */ public boolean needsPatching() { - return checkFlag(Flag.NeedsPatching); + return needsPatching; } /**