diff src/share/vm/code/codeBlob.hpp @ 1155:4e6abf09f540

6912062: disassembler plugin needs to produce symbolic information in product mode Summary: More informative disassembly in product mode. Also, a more consistent CompileCommand syntax. Reviewed-by: never
author jrose
date Fri, 08 Jan 2010 13:47:01 -0800
parents e66fd840cb6b
children 9eba43136cb5
line wrap: on
line diff
--- a/src/share/vm/code/codeBlob.hpp	Fri Jan 08 09:42:31 2010 -0800
+++ b/src/share/vm/code/codeBlob.hpp	Fri Jan 08 13:47:01 2010 -0800
@@ -204,7 +204,8 @@
   virtual void print_value_on(outputStream* st) const PRODUCT_RETURN;
 
   // Print the comment associated with offset on stream, if there is one
-  void print_block_comment(outputStream* stream, intptr_t offset) {
+  virtual void print_block_comment(outputStream* stream, address block_begin) {
+    intptr_t offset = (intptr_t)(block_begin - instructions_begin());
     _comments.print_block_comment(stream, offset);
   }