Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/oopMap.cpp @ 100:c7c777385a15
6667042: PrintAssembly option does not work without special plugin
Summary: remove old private plugin interface, simplify, rework old plugin to use unchanged Gnu sources
Reviewed-by: kvn, rasbold
author | jrose |
---|---|
date | Wed, 02 Apr 2008 12:09:59 -0700 |
parents | c5cbd367e4d1 |
children | ba764ed4b6f2 |
comparison
equal
deleted
inserted
replaced
99:8a4ef4e001d3 | 100:c7c777385a15 |
---|---|
503 #else | 503 #else |
504 return false; | 504 return false; |
505 #endif // COMPILER2 | 505 #endif // COMPILER2 |
506 } | 506 } |
507 | 507 |
508 | 508 #endif //PRODUCT |
509 static void print_register_type(OopMapValue::oop_types x, VMReg optional, outputStream* st) { | 509 |
510 // Printing code is present in product build for -XX:+PrintAssembly. | |
511 | |
512 static | |
513 void print_register_type(OopMapValue::oop_types x, VMReg optional, | |
514 outputStream* st) { | |
510 switch( x ) { | 515 switch( x ) { |
511 case OopMapValue::oop_value: | 516 case OopMapValue::oop_value: |
512 st->print("Oop"); | 517 st->print("Oop"); |
513 break; | 518 break; |
514 case OopMapValue::value_value: | 519 case OopMapValue::value_value: |
542 } | 547 } |
543 | 548 |
544 | 549 |
545 void OopMap::print_on(outputStream* st) const { | 550 void OopMap::print_on(outputStream* st) const { |
546 OopMapValue omv; | 551 OopMapValue omv; |
552 st->print("OopMap{"); | |
547 for(OopMapStream oms((OopMap*)this); !oms.is_done(); oms.next()) { | 553 for(OopMapStream oms((OopMap*)this); !oms.is_done(); oms.next()) { |
548 omv = oms.current(); | 554 omv = oms.current(); |
549 omv.print_on(st); | 555 omv.print_on(st); |
550 } | 556 } |
557 st->print("off=%d}", (int) offset()); | |
551 } | 558 } |
552 | 559 |
553 | 560 |
554 void OopMapSet::print_on(outputStream* st) const { | 561 void OopMapSet::print_on(outputStream* st) const { |
555 int i, len = om_count(); | 562 int i, len = om_count(); |
556 | 563 |
557 st->print_cr("OopMapSet contains %d OopMaps\n",len); | 564 st->print_cr("OopMapSet contains %d OopMaps\n",len); |
558 | 565 |
559 for( i = 0; i < len; i++) { | 566 for( i = 0; i < len; i++) { |
560 OopMap* m = at(i); | 567 OopMap* m = at(i); |
561 st->print_cr("OopMap #%d offset:%p",i,m->offset()); | 568 st->print_cr("#%d ",i); |
562 m->print_on(st); | 569 m->print_on(st); |
563 st->print_cr("\n"); | 570 st->cr(); |
564 } | 571 } |
565 } | 572 } |
566 #endif // !PRODUCT | 573 |
567 | 574 |
568 | 575 |
569 //------------------------------DerivedPointerTable--------------------------- | 576 //------------------------------DerivedPointerTable--------------------------- |
570 | 577 |
571 #ifdef COMPILER2 | 578 #ifdef COMPILER2 |