Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2582:768d77a1c7af
new node layout: Instruction
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:47:14 +0200 |
parents | 4a36a0bd6d18 |
children | 421da5f53b5e |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 05 13:27:48 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 05 13:47:14 2011 +0200 @@ -182,7 +182,7 @@ // 3. setup internal state for appending instructions curBlock = startBlock; lastInstr = startBlock; - lastInstr.setNext(null, -1); + lastInstr.appendNext(null, -1); curState = initialState; if (isSynchronized(rootMethod.accessFlags())) { @@ -1165,7 +1165,7 @@ if (lastInstr instanceof Base) { assert false : "may only happen when inlining intrinsics"; } else { - lastInstr = lastInstr.setNext(x, bci); + lastInstr = lastInstr.appendNext(x, bci); } if (++stats.nodeCount >= C1XOptions.MaximumInstructionCount) { // bailout if we've exceeded the maximum inlining size @@ -1289,7 +1289,7 @@ curBlock = b; curState = b.stateBefore().copy(); lastInstr = b; - b.setNext(null, -1); + b.appendNext(null, -1); iterateBytecodesForBlock(b.bci(), false); } @@ -1321,7 +1321,7 @@ if (nextBlock != null && nextBlock != block) { // we fell through to the next block, add a goto and break end = new Goto(nextBlock, null, false); - lastInstr = lastInstr.setNext(end, prevBCI); + lastInstr = lastInstr.appendNext(end, prevBCI); break; } // read the opcode