# HG changeset patch # User Thomas Wuerthinger # Date 1361321572 28800 # Node ID b96083fb74495a1af2ee35198d5fcdb557d00d89 # Parent 8959b331ef3e73144a0b48009fd4f7824f8a4058 Removed unused field in CompilationResult class. diff -r 8959b331ef3e -r b96083fb7449 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/asm/TargetMethodAssembler.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/asm/TargetMethodAssembler.java Tue Feb 19 16:03:11 2013 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/asm/TargetMethodAssembler.java Tue Feb 19 16:52:52 2013 -0800 @@ -65,7 +65,6 @@ public final FrameContext frameContext; private List exceptionInfoList; - private int lastSafepointPos; public TargetMethodAssembler(TargetDescription target, CodeCacheProvider runtime, FrameMap frameMap, AbstractAssembler asm, FrameContext frameContext, List stubs) { this.target = target; @@ -75,8 +74,6 @@ this.asm = asm; this.compilationResult = new CompilationResult(); this.frameContext = frameContext; - // 0 is a valid pc for safepoints in template methods - this.lastSafepointPos = -1; } public void setFrameSize(int frameSize) { @@ -135,8 +132,6 @@ public void recordImplicitException(int pcOffset, LIRFrameState info) { // record an implicit exception point if (info != null) { - assert lastSafepointPos < pcOffset : lastSafepointPos + "<" + pcOffset; - lastSafepointPos = pcOffset; compilationResult.recordSafepoint(pcOffset, info.debugInfo()); assert info.exceptionEdge == null; } @@ -144,23 +139,17 @@ public void recordDirectCall(int posBefore, int posAfter, InvokeTarget callTarget, LIRFrameState info) { DebugInfo debugInfo = info != null ? info.debugInfo() : null; - assert lastSafepointPos < posAfter; - lastSafepointPos = posAfter; compilationResult.recordCall(posBefore, posAfter - posBefore, callTarget, debugInfo, true); } public void recordIndirectCall(int posBefore, int posAfter, InvokeTarget callTarget, LIRFrameState info) { DebugInfo debugInfo = info != null ? info.debugInfo() : null; - assert lastSafepointPos < posAfter; - lastSafepointPos = posAfter; compilationResult.recordCall(posBefore, posAfter - posBefore, callTarget, debugInfo, false); } public void recordSafepoint(int pos, LIRFrameState info) { // safepoints always need debug info DebugInfo debugInfo = info.debugInfo(); - assert lastSafepointPos < pos; - lastSafepointPos = pos; compilationResult.recordSafepoint(pos, debugInfo); } @@ -172,10 +161,6 @@ return Address.Placeholder; } - public int lastSafepointPos() { - return lastSafepointPos; - } - /** * Returns the integer value of any constant that can be represented by a 32-bit integer value, * including long constants that fit into the 32-bit range.