2835 2836 void nmethod::print_value_on(outputStream* st) const { 2837 st->print("nmethod"); 2838 print_on(st, NULL); 2839 } 2840 2841 void nmethod::print_calls(outputStream* st) { 2842 RelocIterator iter(this); 2843 while (iter.next()) { 2844 switch (iter.type()) { 2845 case relocInfo::virtual_call_type: 2846 case relocInfo::opt_virtual_call_type: { 2847 VerifyMutexLocker mc(CompiledIC_lock); 2848 CompiledIC_at(&iter)->print(); 2849 break; 2850 } 2851 case relocInfo::static_call_type: 2852 st->print_cr("Static call at " INTPTR_FORMAT, p2i(iter.reloc()->addr())); 2853 CompiledDirectStaticCall::at(iter.reloc())->print(); 2854 break; 2855 } 2856 } 2857 } 2858 2859 void nmethod::print_handler_table() { 2860 ExceptionHandlerTable(this).print(); 2861 } 2862 2863 void nmethod::print_nul_chk_table() { 2864 ImplicitExceptionTable(this).print(code_begin()); 2865 } 2866 2867 void nmethod::print_statistics() { 2868 ttyLocker ttyl; 2869 if (xtty != NULL) xtty->head("statistics type='nmethod'"); 2870 native_nmethod_stats.print_native_nmethod_stats(); 2871 #ifdef COMPILER1 2872 c1_java_nmethod_stats.print_nmethod_stats("C1"); 2873 #endif 2874 #ifdef COMPILER2 | 2835 2836 void nmethod::print_value_on(outputStream* st) const { 2837 st->print("nmethod"); 2838 print_on(st, NULL); 2839 } 2840 2841 void nmethod::print_calls(outputStream* st) { 2842 RelocIterator iter(this); 2843 while (iter.next()) { 2844 switch (iter.type()) { 2845 case relocInfo::virtual_call_type: 2846 case relocInfo::opt_virtual_call_type: { 2847 VerifyMutexLocker mc(CompiledIC_lock); 2848 CompiledIC_at(&iter)->print(); 2849 break; 2850 } 2851 case relocInfo::static_call_type: 2852 st->print_cr("Static call at " INTPTR_FORMAT, p2i(iter.reloc()->addr())); 2853 CompiledDirectStaticCall::at(iter.reloc())->print(); 2854 break; 2855 default: 2856 break; 2857 } 2858 } 2859 } 2860 2861 void nmethod::print_handler_table() { 2862 ExceptionHandlerTable(this).print(); 2863 } 2864 2865 void nmethod::print_nul_chk_table() { 2866 ImplicitExceptionTable(this).print(code_begin()); 2867 } 2868 2869 void nmethod::print_statistics() { 2870 ttyLocker ttyl; 2871 if (xtty != NULL) xtty->head("statistics type='nmethod'"); 2872 native_nmethod_stats.print_native_nmethod_stats(); 2873 #ifdef COMPILER1 2874 c1_java_nmethod_stats.print_nmethod_stats("C1"); 2875 #endif 2876 #ifdef COMPILER2 |