< prev index next >

src/hotspot/share/code/compiledIC.cpp

Print this page




 674 address CompiledDirectStaticCall::resolve_call_stub() const {
 675   return SharedRuntime::get_resolve_static_call_stub();
 676 }
 677 
 678 //-----------------------------------------------------------------------------
 679 // Non-product mode code
 680 #ifndef PRODUCT
 681 
 682 void CompiledIC::verify() {
 683   _call->verify();
 684   assert(is_clean() || is_call_to_compiled() || is_call_to_interpreted()
 685           || is_optimized() || is_megamorphic(), "sanity check");
 686 }
 687 
 688 void CompiledIC::print() {
 689   print_compiled_ic();
 690   tty->cr();
 691 }
 692 
 693 void CompiledIC::print_compiled_ic() {
 694   tty->print("Inline cache at " INTPTR_FORMAT ", calling %s " INTPTR_FORMAT " cached_value " INTPTR_FORMAT,


 695              p2i(instruction_address()), is_call_to_interpreted() ? "interpreted " : "", p2i(ic_destination()), p2i(is_optimized() ? NULL : cached_value()));
 696 }
 697 
 698 void CompiledDirectStaticCall::print() {
 699   tty->print("static call at " INTPTR_FORMAT " -> ", p2i(instruction_address()));
 700   if (is_clean()) {
 701     tty->print("clean");
 702   } else if (is_call_to_compiled()) {
 703     tty->print("compiled");
 704   } else if (is_call_to_far()) {
 705     tty->print("far");
 706   } else if (is_call_to_interpreted()) {
 707     tty->print("interpreted");
 708   }
 709   tty->cr();
 710 }
 711 
 712 #endif // !PRODUCT


 674 address CompiledDirectStaticCall::resolve_call_stub() const {
 675   return SharedRuntime::get_resolve_static_call_stub();
 676 }
 677 
 678 //-----------------------------------------------------------------------------
 679 // Non-product mode code
 680 #ifndef PRODUCT
 681 
 682 void CompiledIC::verify() {
 683   _call->verify();
 684   assert(is_clean() || is_call_to_compiled() || is_call_to_interpreted()
 685           || is_optimized() || is_megamorphic(), "sanity check");
 686 }
 687 
 688 void CompiledIC::print() {
 689   print_compiled_ic();
 690   tty->cr();
 691 }
 692 
 693 void CompiledIC::print_compiled_ic() {
 694   const char *opt = is_optimized() ? "opt " : "";
 695   tty->print("%sInline cache at " INTPTR_FORMAT ", calling %s " INTPTR_FORMAT " cached_value " INTPTR_FORMAT,
 696              opt,
 697              p2i(instruction_address()), is_call_to_interpreted() ? "interpreted " : "", p2i(ic_destination()), p2i(is_optimized() ? NULL : cached_value()));
 698 }
 699 
 700 void CompiledDirectStaticCall::print() {
 701   tty->print("static call at " INTPTR_FORMAT " -> ", p2i(instruction_address()));
 702   if (is_clean()) {
 703     tty->print("clean");
 704   } else if (is_call_to_compiled()) {
 705     tty->print("compiled");
 706   } else if (is_call_to_far()) {
 707     tty->print("far");
 708   } else if (is_call_to_interpreted()) {
 709     tty->print("interpreted");
 710   }
 711   tty->cr();
 712 }
 713 
 714 #endif // !PRODUCT
< prev index next >