Mercurial > hg > truffle
diff graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/gen/LIRGenerator.java @ 3000:6c95d57cb1e2
Removed usage of stateBefore. Now framestate is always a successor of its associated node.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 16 Jun 2011 16:00:01 +0200 |
parents | 775881292ddb |
children | ef9afe6ffd5e |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/gen/LIRGenerator.java Thu Jun 16 15:10:37 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/gen/LIRGenerator.java Thu Jun 16 16:00:01 2011 +0200 @@ -241,7 +241,7 @@ stateAfter = ((Instruction) instr).stateAfter(); } FrameState stateBefore = null; - if (instr instanceof StateSplit && ((StateSplit) instr).stateBefore() != null) { + if (instr instanceof StateSplit && ((StateSplit) instr).stateAfter() != null) { stateBefore = ((StateSplit) instr).stateBefore(); } if (stateBefore != null) { @@ -1103,7 +1103,7 @@ @Override public void visitRegisterFinalizer(RegisterFinalizer x) { CiValue receiver = load(x.object()); - LIRDebugInfo info = stateFor(x, x.stateBefore()); + LIRDebugInfo info = stateFor(x); callRuntime(CiRuntimeCall.RegisterFinalizer, info, receiver); setNoResult(x); }