Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/value/FrameStateBuilder.java @ 2840:75e0d39833a0
new CompilerGraph, create only one Return and one Unwind per CompilerGraph
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 31 May 2011 16:53:19 +0200 |
parents | bfce42cd9c07 |
children | 7596ae867a7b |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/value/FrameStateBuilder.java Tue May 31 13:42:01 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/value/FrameStateBuilder.java Tue May 31 16:53:19 2011 +0200 @@ -102,7 +102,9 @@ @Override public FrameState duplicateWithEmptyStack(int bci) { - return new FrameState(bci, locals, new Value[0], 0, locks, graph); + FrameState frameState = new FrameState(bci, locals, new Value[0], 0, locks, graph); + frameState.setOuterFrameState(outerFrameState()); + return frameState; } /** @@ -361,7 +363,6 @@ */ public void lock(IR ir, Value obj, int totalNumberOfLocks) { locks.add(obj); - ir.updateMaxLocks(totalNumberOfLocks); } /** @@ -496,4 +497,8 @@ } } + @Override + public Value outerFrameState() { + return null; + } }