comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinter.java @ 2716:c1a9bf38da28

Removed bci from the Instruction class.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 13:59:55 +0200
parents 3ac3dd97d8df
children c1ce2a53d6c3
comparison
equal deleted inserted replaced
2715:3ac3dd97d8df 2716:c1a9bf38da28
126 */ 126 */
127 void printBlock(BlockBegin block, List<BlockBegin> successors, BlockBegin handler, boolean printHIR, boolean printLIR) { 127 void printBlock(BlockBegin block, List<BlockBegin> successors, BlockBegin handler, boolean printHIR, boolean printLIR) {
128 begin("block"); 128 begin("block");
129 129
130 out.print("name \"B").print(block.blockID).println('"'); 130 out.print("name \"B").print(block.blockID).println('"');
131 out.print("from_bci ").println(block.bci()); 131 out.print("from_bci -1");
132 out.print("to_bci ").println(block.end() == null ? -1 : block.end().bci()); 132 out.print("to_bci -1");
133 133
134 out.print("predecessors "); 134 out.print("predecessors ");
135 for (Instruction pred : block.blockPredecessors()) { 135 for (Instruction pred : block.blockPredecessors()) {
136 out.print("\"B").print(pred.block().blockID).print("\" "); 136 out.print("\"B").print(pred.block().blockID).print("\" ");
137 } 137 }
517 * Prints the HIR for a given instruction. 517 * Prints the HIR for a given instruction.
518 * 518 *
519 * @param i the instruction for which HIR will be printed 519 * @param i the instruction for which HIR will be printed
520 */ 520 */
521 private void printInstructionHIR(Instruction i) { 521 private void printInstructionHIR(Instruction i) {
522 out.print("bci ").print(i.bci()).println(COLUMN_END); 522 out.print("bci ").print(-1).println(COLUMN_END);
523 if (i.operand().isLegal()) { 523 if (i.operand().isLegal()) {
524 out.print("result ").print(new CFGOperandFormatter(false).format(i.operand())).println(COLUMN_END); 524 out.print("result ").print(new CFGOperandFormatter(false).format(i.operand())).println(COLUMN_END);
525 } 525 }
526 out.print("tid ").print(i).println(COLUMN_END); 526 out.print("tid ").print(i).println(COLUMN_END);
527 527