< prev index next >

src/hotspot/share/c1/c1_CFGPrinter.cpp

Print this page

227 
228   print_end("LIR");
229 }
230 
231 
232 void CFGPrinterOutput::print_block(BlockBegin* block) {
233   print_begin("block");
234   print("name \"B%d\"", block->block_id());
235   print("from_bci %d", block->bci());
236   print("to_bci %d", (block->end() == NULL ? -1 : block->end()->printable_bci()));
237 
238   output()->indent();
239   output()->print("predecessors ");
240   int i;
241   for (i = 0; i < block->number_of_preds(); i++) {
242     output()->print("\"B%d\" ", block->pred_at(i)->block_id());
243   }
244   output()->cr();
245 
246   output()->indent();

247   if (block->end() != NULL) {
248     output()->print("successors ");
249     for (i = 0; i < block->number_of_sux(); i++) {
250       output()->print("\"B%d\" ", block->sux_at(i)->block_id());
251     }
252   } else {
253     output()->print("(block has no end, cannot print successors)");
254   }
255   output()->cr();
256 
257   output()->indent();
258   output()->print("xhandlers");
259   for (i = 0; i < block->number_of_exception_handlers(); i++) {
260     output()->print("\"B%d\" ", block->exception_handler_at(i)->block_id());
261   }
262   output()->cr();
263 
264   output()->indent();
265   output()->print("flags ");
266   if (block->is_set(BlockBegin::std_entry_flag))                output()->print("\"std\" ");
267   if (block->is_set(BlockBegin::osr_entry_flag))                output()->print("\"osr\" ");
268   if (block->is_set(BlockBegin::exception_entry_flag))          output()->print("\"ex\" ");
269   if (block->is_set(BlockBegin::subroutine_entry_flag))         output()->print("\"sr\" ");
270   if (block->is_set(BlockBegin::backward_branch_target_flag))   output()->print("\"bb\" ");
271   if (block->is_set(BlockBegin::parser_loop_header_flag))       output()->print("\"plh\" ");
272   if (block->is_set(BlockBegin::critical_edge_split_flag))      output()->print("\"ces\" ");
273   if (block->is_set(BlockBegin::linear_scan_loop_header_flag))  output()->print("\"llh\" ");

227 
228   print_end("LIR");
229 }
230 
231 
232 void CFGPrinterOutput::print_block(BlockBegin* block) {
233   print_begin("block");
234   print("name \"B%d\"", block->block_id());
235   print("from_bci %d", block->bci());
236   print("to_bci %d", (block->end() == NULL ? -1 : block->end()->printable_bci()));
237 
238   output()->indent();
239   output()->print("predecessors ");
240   int i;
241   for (i = 0; i < block->number_of_preds(); i++) {
242     output()->print("\"B%d\" ", block->pred_at(i)->block_id());
243   }
244   output()->cr();
245 
246   output()->indent();
247   output()->print("successors ");
248   if (block->end() != NULL) {

249     for (i = 0; i < block->number_of_sux(); i++) {
250       output()->print("\"B%d\" ", block->sux_at(i)->block_id());
251     }


252   }
253   output()->cr();
254 
255   output()->indent();
256   output()->print("xhandlers");
257   for (i = 0; i < block->number_of_exception_handlers(); i++) {
258     output()->print("\"B%d\" ", block->exception_handler_at(i)->block_id());
259   }
260   output()->cr();
261 
262   output()->indent();
263   output()->print("flags ");
264   if (block->is_set(BlockBegin::std_entry_flag))                output()->print("\"std\" ");
265   if (block->is_set(BlockBegin::osr_entry_flag))                output()->print("\"osr\" ");
266   if (block->is_set(BlockBegin::exception_entry_flag))          output()->print("\"ex\" ");
267   if (block->is_set(BlockBegin::subroutine_entry_flag))         output()->print("\"sr\" ");
268   if (block->is_set(BlockBegin::backward_branch_target_flag))   output()->print("\"bb\" ");
269   if (block->is_set(BlockBegin::parser_loop_header_flag))       output()->print("\"plh\" ");
270   if (block->is_set(BlockBegin::critical_edge_split_flag))      output()->print("\"ces\" ");
271   if (block->is_set(BlockBegin::linear_scan_loop_header_flag))  output()->print("\"llh\" ");
< prev index next >