src/share/vm/opto/idealGraphPrinter.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/opto

src/share/vm/opto/idealGraphPrinter.cpp

Print this page




 342 
 343   this->_current_method = method;
 344 
 345   _xml->flush();
 346 }
 347 
 348 // Has to be called whenever a method has finished compilation
 349 void IdealGraphPrinter::end_method() {
 350 
 351   nmethod* method = (nmethod*)this->_current_method->code();
 352 
 353   tail(GROUP_ELEMENT);
 354   _current_method = NULL;
 355   _xml->flush();
 356 }
 357 
 358 // Print indent
 359 void IdealGraphPrinter::print_indent() {
 360   tty->print_cr("printing ident %d", _depth);
 361   for (int i = 0; i < _depth; i++) {
 362     _xml->print(INDENT);
 363   }
 364 }
 365 
 366 bool IdealGraphPrinter::traverse_outs() {
 367   return _traverse_outs;
 368 }
 369 
 370 void IdealGraphPrinter::set_traverse_outs(bool b) {
 371   _traverse_outs = b;
 372 }
 373 
 374 intptr_t IdealGraphPrinter::get_node_id(Node *n) {
 375   return (intptr_t)(n);
 376 }
 377 
 378 void IdealGraphPrinter::visit_node(Node *n, bool edges, VectorSet* temp_set) {
 379 
 380   if (edges) {
 381 
 382     // Output edge




 342 
 343   this->_current_method = method;
 344 
 345   _xml->flush();
 346 }
 347 
 348 // Has to be called whenever a method has finished compilation
 349 void IdealGraphPrinter::end_method() {
 350 
 351   nmethod* method = (nmethod*)this->_current_method->code();
 352 
 353   tail(GROUP_ELEMENT);
 354   _current_method = NULL;
 355   _xml->flush();
 356 }
 357 
 358 // Print indent
 359 void IdealGraphPrinter::print_indent() {
 360   tty->print_cr("printing ident %d", _depth);
 361   for (int i = 0; i < _depth; i++) {
 362     _xml->print_raw(INDENT);
 363   }
 364 }
 365 
 366 bool IdealGraphPrinter::traverse_outs() {
 367   return _traverse_outs;
 368 }
 369 
 370 void IdealGraphPrinter::set_traverse_outs(bool b) {
 371   _traverse_outs = b;
 372 }
 373 
 374 intptr_t IdealGraphPrinter::get_node_id(Node *n) {
 375   return (intptr_t)(n);
 376 }
 377 
 378 void IdealGraphPrinter::visit_node(Node *n, bool edges, VectorSet* temp_set) {
 379 
 380   if (edges) {
 381 
 382     // Output edge


src/share/vm/opto/idealGraphPrinter.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File