comparison src/share/vm/code/codeBlob.hpp @ 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 da91efe96a93
children e522a00b91aa a5de0cc2f91c
comparison
equal deleted inserted replaced
6795:7eca5de9e0b6 6796:b31471cdc53e
182 182
183 // Deal with Disassembler, VTune, Forte, JvmtiExport, MemoryService. 183 // Deal with Disassembler, VTune, Forte, JvmtiExport, MemoryService.
184 static void trace_new_stub(CodeBlob* blob, const char* name1, const char* name2 = ""); 184 static void trace_new_stub(CodeBlob* blob, const char* name1, const char* name2 = "");
185 185
186 // Print the comment associated with offset on stream, if there is one 186 // Print the comment associated with offset on stream, if there is one
187 virtual void print_block_comment(outputStream* stream, address block_begin) { 187 virtual void print_block_comment(outputStream* stream, address block_begin) const {
188 intptr_t offset = (intptr_t)(block_begin - code_begin()); 188 intptr_t offset = (intptr_t)(block_begin - code_begin());
189 _comments.print_block_comment(stream, offset); 189 _comments.print_block_comment(stream, offset);
190 } 190 }
191 191
192 // Transfer ownership of comments to this CodeBlob 192 // Transfer ownership of comments to this CodeBlob