comparison src/share/vm/code/nmethod.hpp @ 3672: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 f2e12eb74117
comparison
equal deleted inserted replaced
48:3b1750b08c78 49:767c9f846870
651 void log_identity(xmlStream* log) const; 651 void log_identity(xmlStream* log) const;
652 void log_new_nmethod() const; 652 void log_new_nmethod() const;
653 void log_state_change() const; 653 void log_state_change() const;
654 654
655 // Prints block-level comments, including nmethod specific block labels: 655 // Prints block-level comments, including nmethod specific block labels:
656 virtual void print_block_comment(outputStream* stream, address block_begin) { 656 virtual void print_block_comment(outputStream* stream, address block_begin) const {
657 print_nmethod_labels(stream, block_begin); 657 print_nmethod_labels(stream, block_begin);
658 CodeBlob::print_block_comment(stream, block_begin); 658 CodeBlob::print_block_comment(stream, block_begin);
659 } 659 }
660 void print_nmethod_labels(outputStream* stream, address block_begin); 660 void print_nmethod_labels(outputStream* stream, address block_begin) const;
661 661
662 // Prints a comment for one native instruction (reloc info, pc desc) 662 // Prints a comment for one native instruction (reloc info, pc desc)
663 void print_code_comment_on(outputStream* st, int column, address begin, address end); 663 void print_code_comment_on(outputStream* st, int column, address begin, address end);
664 static void print_statistics() PRODUCT_RETURN; 664 static void print_statistics() PRODUCT_RETURN;
665 665