equal
deleted
inserted
replaced
383 |
383 |
384 |
384 |
385 // ------------------------------------------------------------------ |
385 // ------------------------------------------------------------------ |
386 // Output a method attribute, in the form " method='pkg/cls name sig'". |
386 // Output a method attribute, in the form " method='pkg/cls name sig'". |
387 // This is used only when there is no ciMethod available. |
387 // This is used only when there is no ciMethod available. |
388 void xmlStream::method(const methodHandle& method) { |
388 void xmlStream::method(Method* method) { |
389 assert_if_no_error(inside_attrs(), "printing attributes"); |
389 assert_if_no_error(inside_attrs(), "printing attributes"); |
390 if (method.is_null()) return; |
390 if (method == NULL) return; |
391 print_raw(" method='"); |
391 print_raw(" method='"); |
392 method_text(method); |
392 method_text(method); |
393 print("' bytes='%d'", method->code_size()); |
393 print("' bytes='%d'", method->code_size()); |
394 print(" count='%d'", method->invocation_count()); |
394 print(" count='%d'", method->invocation_count()); |
395 int bec = method->backedge_count(); |
395 int bec = method->backedge_count(); |
411 cnt = mdo->overflow_recompile_count(); |
411 cnt = mdo->overflow_recompile_count(); |
412 if (cnt != 0) print(" overflow_recompiles='%d'", cnt); |
412 if (cnt != 0) print(" overflow_recompiles='%d'", cnt); |
413 } |
413 } |
414 } |
414 } |
415 |
415 |
416 void xmlStream::method_text(const methodHandle& method) { |
416 void xmlStream::method_text(Method* method) { |
417 ResourceMark rm; |
417 ResourceMark rm; |
418 assert_if_no_error(inside_attrs(), "printing attributes"); |
418 assert_if_no_error(inside_attrs(), "printing attributes"); |
419 if (method.is_null()) return; |
419 if (method == NULL) return; |
420 text()->print("%s", method->method_holder()->external_name()); |
420 text()->print("%s", method->method_holder()->external_name()); |
421 print_raw(" "); // " " is easier for tools to parse than "::" |
421 print_raw(" "); // " " is easier for tools to parse than "::" |
422 method->name()->print_symbol_on(text()); |
422 method->name()->print_symbol_on(text()); |
423 print_raw(" "); // separator |
423 print_raw(" "); // separator |
424 method->signature()->print_symbol_on(text()); |
424 method->signature()->print_symbol_on(text()); |