Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/lir/LIRList.java @ 2718:c1ce2a53d6c3
Attempt to remove dependency between backend and BlockBegin.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 16:05:42 +0200 |
parents | c1a9bf38da28 |
children | c379183d1c54 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/lir/LIRList.java Thu May 19 14:31:03 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/lir/LIRList.java Thu May 19 16:05:42 2011 +0200 @@ -388,9 +388,9 @@ append(new LIROp1(LIROpcode.Move, src, dst, src.kind, info)); } - public static void printBlock(BlockBegin x) { + public static void printBlock(LIRBlock x) { // print block id - TTY.print("B%d ", x.blockID); + TTY.print("B%d ", x.blockID()); // print flags if (x.isLinearScanLoopHeader()) { @@ -407,28 +407,28 @@ if (x.numberOfPreds() > 0) { TTY.print("preds: "); for (int i = 0; i < x.numberOfPreds(); i++) { - TTY.print("B%d ", x.predAt(i).block().blockID); + TTY.print("B%d ", x.predAt(i).blockID()); } } if (x.numberOfSux() > 0) { TTY.print("sux: "); for (int i = 0; i < x.numberOfSux(); i++) { - TTY.print("B%d ", x.suxAt(i).blockID); + TTY.print("B%d ", x.suxAt(i).blockID()); } } TTY.println(); } - public static void printLIR(List<BlockBegin> blocks) { + public static void printLIR(List<LIRBlock> blocks) { if (TTY.isSuppressed()) { return; } TTY.println("LIR:"); int i; for (i = 0; i < blocks.size(); i++) { - BlockBegin bb = blocks.get(i); + LIRBlock bb = blocks.get(i); printBlock(bb); TTY.println("__id_Instruction___________________________________________"); bb.lir().printInstructions();