comparison src/share/vm/runtime/sharedRuntime.cpp @ 6796:b31471cdc53e

7200163: add CodeComments functionality to assember stubs Summary: Pass the codeBuffer to the Stub constructor, and adapts the disassembler to print the comments. Reviewed-by: jrose, kvn, twisti Contributed-by: goetz.lindenmaier@sap.com
author kvn
date Mon, 24 Sep 2012 10:30:14 -0700
parents 137868b7aa6f
children d8ce2825b193
comparison
equal deleted inserted replaced
6795:7eca5de9e0b6 6796:b31471cdc53e
2458 } 2458 }
2459 entry->relocate(B->content_begin()); 2459 entry->relocate(B->content_begin());
2460 #ifndef PRODUCT 2460 #ifndef PRODUCT
2461 // debugging suppport 2461 // debugging suppport
2462 if (PrintAdapterHandlers || PrintStubCode) { 2462 if (PrintAdapterHandlers || PrintStubCode) {
2463 ttyLocker ttyl;
2463 entry->print_adapter_on(tty); 2464 entry->print_adapter_on(tty);
2464 tty->print_cr("i2c argument handler #%d for: %s %s (%d bytes generated)", 2465 tty->print_cr("i2c argument handler #%d for: %s %s (%d bytes generated)",
2465 _adapters->number_of_entries(), (method->is_static() ? "static" : "receiver"), 2466 _adapters->number_of_entries(), (method->is_static() ? "static" : "receiver"),
2466 method->signature()->as_C_string(), insts_size); 2467 method->signature()->as_C_string(), insts_size);
2467 tty->print_cr("c2i argument handler starts at %p",entry->get_c2i_entry()); 2468 tty->print_cr("c2i argument handler starts at %p",entry->get_c2i_entry());
2468 if (Verbose || PrintStubCode) { 2469 if (Verbose || PrintStubCode) {
2469 address first_pc = entry->base_address(); 2470 address first_pc = entry->base_address();
2470 if (first_pc != NULL) 2471 if (first_pc != NULL) {
2471 Disassembler::decode(first_pc, first_pc + insts_size); 2472 Disassembler::decode(first_pc, first_pc + insts_size);
2473 tty->cr();
2474 }
2472 } 2475 }
2473 } 2476 }
2474 #endif 2477 #endif
2475 2478
2476 _adapters->add(entry); 2479 _adapters->add(entry);