src/share/vm/oops/method.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8141564.04 Sdiff src/share/vm/oops

src/share/vm/oops/method.cpp

Print this page




2190       for (int i = 0; i < localvariable_table_length(); i++) {
2191         int bci = table[i].start_bci;
2192         int len = table[i].length;
2193         const char* name = constants()->printable_name_at(table[i].name_cp_index);
2194         const char* desc = constants()->printable_name_at(table[i].descriptor_cp_index);
2195         int slot = table[i].slot;
2196         st->print_cr("   - %s %s bci=%d len=%d slot=%d", desc, name, bci, len, slot);
2197       }
2198     }
2199   }
2200   if (code() != NULL) {
2201     st->print   (" - compiled code: ");
2202     code()->print_value_on(st);
2203   }
2204   if (is_native()) {
2205     st->print_cr(" - native function:   " INTPTR_FORMAT, p2i(native_function()));
2206     st->print_cr(" - signature handler: " INTPTR_FORMAT, p2i(signature_handler()));
2207   }
2208 }
2209 









2210 #endif //PRODUCT
2211 
2212 void Method::print_value_on(outputStream* st) const {
2213   assert(is_method(), "must be method");
2214   st->print("%s", internal_name());
2215   print_address_on(st);
2216   st->print(" ");
2217   name()->print_value_on(st);
2218   st->print(" ");
2219   signature()->print_value_on(st);
2220   st->print(" in ");
2221   method_holder()->print_value_on(st);
2222   if (WizardMode) st->print("#%d", _vtable_index);
2223   if (WizardMode) st->print("[%d,%d]", size_of_parameters(), max_locals());
2224   if (WizardMode && code() != NULL) st->print(" ((nmethod*)%p)", code());
2225 }
2226 
2227 #if INCLUDE_SERVICES
2228 // Size Statistics
2229 void Method::collect_statistics(KlassSizeStats *sz) const {




2190       for (int i = 0; i < localvariable_table_length(); i++) {
2191         int bci = table[i].start_bci;
2192         int len = table[i].length;
2193         const char* name = constants()->printable_name_at(table[i].name_cp_index);
2194         const char* desc = constants()->printable_name_at(table[i].descriptor_cp_index);
2195         int slot = table[i].slot;
2196         st->print_cr("   - %s %s bci=%d len=%d slot=%d", desc, name, bci, len, slot);
2197       }
2198     }
2199   }
2200   if (code() != NULL) {
2201     st->print   (" - compiled code: ");
2202     code()->print_value_on(st);
2203   }
2204   if (is_native()) {
2205     st->print_cr(" - native function:   " INTPTR_FORMAT, p2i(native_function()));
2206     st->print_cr(" - signature handler: " INTPTR_FORMAT, p2i(signature_handler()));
2207   }
2208 }
2209 
2210 void Method::print_linkage_flags(outputStream* st) {
2211   access_flags().print_on(st);
2212   if (is_default_method()) {
2213     st->print("default ");
2214   }
2215   if (is_overpass()) {
2216     st->print("overpass ");
2217   }
2218 }
2219 #endif //PRODUCT
2220 
2221 void Method::print_value_on(outputStream* st) const {
2222   assert(is_method(), "must be method");
2223   st->print("%s", internal_name());
2224   print_address_on(st);
2225   st->print(" ");
2226   name()->print_value_on(st);
2227   st->print(" ");
2228   signature()->print_value_on(st);
2229   st->print(" in ");
2230   method_holder()->print_value_on(st);
2231   if (WizardMode) st->print("#%d", _vtable_index);
2232   if (WizardMode) st->print("[%d,%d]", size_of_parameters(), max_locals());
2233   if (WizardMode && code() != NULL) st->print(" ((nmethod*)%p)", code());
2234 }
2235 
2236 #if INCLUDE_SERVICES
2237 // Size Statistics
2238 void Method::collect_statistics(KlassSizeStats *sz) const {


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