Mercurial > hg > truffle
comparison src/share/vm/code/nmethod.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 | f2e12eb74117 |
comparison
equal
deleted
inserted
replaced
6795:7eca5de9e0b6 | 6796:b31471cdc53e |
---|---|
2670 p->return_oop()); | 2670 p->return_oop()); |
2671 } | 2671 } |
2672 return NULL; | 2672 return NULL; |
2673 } | 2673 } |
2674 | 2674 |
2675 void nmethod::print_nmethod_labels(outputStream* stream, address block_begin) { | 2675 void nmethod::print_nmethod_labels(outputStream* stream, address block_begin) const { |
2676 if (block_begin == entry_point()) stream->print_cr("[Entry Point]"); | 2676 if (block_begin == entry_point()) stream->print_cr("[Entry Point]"); |
2677 if (block_begin == verified_entry_point()) stream->print_cr("[Verified Entry Point]"); | 2677 if (block_begin == verified_entry_point()) stream->print_cr("[Verified Entry Point]"); |
2678 if (block_begin == exception_begin()) stream->print_cr("[Exception Handler]"); | 2678 if (block_begin == exception_begin()) stream->print_cr("[Exception Handler]"); |
2679 if (block_begin == stub_begin()) stream->print_cr("[Stub Code]"); | 2679 if (block_begin == stub_begin()) stream->print_cr("[Stub Code]"); |
2680 if (block_begin == deopt_handler_begin()) stream->print_cr("[Deopt Handler Code]"); | 2680 if (block_begin == deopt_handler_begin()) stream->print_cr("[Deopt Handler Code]"); |