# HG changeset patch # User Stefan Anzinger # Date 1411663315 25200 # Node ID 7a99826863d9800def6cbce3f517248bc613511d # Parent 2390886b4e2737321f079b4008c3e04f17339c25 Eliminate valid bit in LabelHint as the validity can be encoded into the capturedTarget diff -r 2390886b4e27 -r 7a99826863d9 graal/com.oracle.graal.asm/src/com/oracle/graal/asm/Assembler.java --- a/graal/com.oracle.graal.asm/src/com/oracle/graal/asm/Assembler.java Thu Sep 25 09:40:30 2014 -0700 +++ b/graal/com.oracle.graal.asm/src/com/oracle/graal/asm/Assembler.java Thu Sep 25 09:41:55 2014 -0700 @@ -216,8 +216,7 @@ public static class LabelHint { private Label label; private int forPosition; - private int capturedTarget; - private boolean captured = false; + private int capturedTarget = -1; protected LabelHint(Label label, int lastPosition) { super(); @@ -227,7 +226,6 @@ protected void capture() { this.capturedTarget = label.position(); - this.captured = true; } public int getTarget() { @@ -241,7 +239,7 @@ } public boolean isValid() { - return captured; + return capturedTarget >= 0; } } }