Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2540:3fc322165071
More flags clean up.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 20:27:43 +0200 |
parents | e1ba5a93e997 |
children | 0f9eeb15e636 |
comparison
equal
deleted
inserted
replaced
2539:fa3bda50cbfd | 2540:3fc322165071 |
---|---|
511 * For note on volatile fields, see {@link #visitStoreField(StoreField)}. | 511 * For note on volatile fields, see {@link #visitStoreField(StoreField)}. |
512 */ | 512 */ |
513 @Override | 513 @Override |
514 public void visitLoadField(LoadField x) { | 514 public void visitLoadField(LoadField x) { |
515 RiField field = x.field(); | 515 RiField field = x.field(); |
516 boolean needsPatching = x.needsPatching(); | 516 boolean needsPatching = !x.isLoaded(); |
517 LIRDebugInfo info = null; | 517 LIRDebugInfo info = null; |
518 if (needsPatching || x.needsNullCheck()) { | 518 if (needsPatching || x.needsNullCheck()) { |
519 info = stateFor(x, x.stateBefore()); | 519 info = stateFor(x, x.stateBefore()); |
520 assert info != null; | 520 assert info != null; |
521 } | 521 } |
802 } | 802 } |
803 | 803 |
804 @Override | 804 @Override |
805 public void visitStoreField(StoreField x) { | 805 public void visitStoreField(StoreField x) { |
806 RiField field = x.field(); | 806 RiField field = x.field(); |
807 boolean needsPatching = x.needsPatching(); | 807 boolean needsPatching = !x.isLoaded(); |
808 | 808 |
809 LIRDebugInfo info = null; | 809 LIRDebugInfo info = null; |
810 if (needsPatching || x.needsNullCheck()) { | 810 if (needsPatching || x.needsNullCheck()) { |
811 info = stateFor(x, x.stateBefore()); | 811 info = stateFor(x, x.stateBefore()); |
812 } | 812 } |