Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java @ 2636:8c02ca1e9eb1
Fixed bci for stateBefore in BlockBegin
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 11:43:44 +0200 |
parents | c93adece95d2 |
children | 6ca76b891d31 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java Wed May 11 11:21:15 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/value/FrameState.java Wed May 11 11:43:44 2011 +0200 @@ -96,8 +96,8 @@ /** * Gets a copy of this frame state. */ - public FrameState duplicate() { - FrameState other = copy(); + public FrameState duplicate(int bci) { + FrameState other = copy(bci); other.inputs().setAll(inputs()); return other; } @@ -449,6 +449,11 @@ return new FrameState(bci, localsSize, stackSize, locksSize, graph()); } + + private FrameState copy(int newBci) { + return new FrameState(newBci, localsSize, stackSize, locksSize, graph()); + } + @Override public String shortName() { return "FrameState@" + bci;