diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2538:e1ba5a93e997

Clean up on Value class and LIRGenerator/LIRItem-related things.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Apr 2011 20:13:54 +0200
parents 16b9a8b5ad39
children fa3bda50cbfd
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java	Wed Apr 27 19:53:46 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java	Wed Apr 27 20:13:54 2011 +0200
@@ -39,6 +39,7 @@
     BlockBegin begin;
     final List<BlockBegin> successors;
     FrameState stateAfter;
+    boolean isSafepoint;
 
     /**
      * Constructs a new block end with the specified value type.
@@ -51,9 +52,7 @@
         super(kind);
         this.successors = successors == null ? new ArrayList<BlockBegin>(2) : successors;
         setStateAfter(stateAfter);
-        if (isSafepoint) {
-            setFlag(Value.Flag.IsSafepoint);
-        }
+        this.isSafepoint = isSafepoint;
     }
 
     public BlockEnd(CiKind kind, FrameState stateAfter, boolean isSafepoint) {
@@ -77,7 +76,7 @@
      * @return {@code true} if this instruction is a safepoint
      */
     public boolean isSafepoint() {
-        return checkFlag(Value.Flag.IsSafepoint);
+        return isSafepoint;
     }
 
     /**