1.1 --- a/src/share/vm/interpreter/interpreter.hpp Thu Sep 20 16:49:17 2012 +0200 1.2 +++ b/src/share/vm/interpreter/interpreter.hpp Mon Sep 24 10:30:14 2012 -0700 1.3 @@ -48,10 +48,12 @@ 1.4 int _size; // the size in bytes 1.5 const char* _description; // a description of the codelet, for debugging & printing 1.6 Bytecodes::Code _bytecode; // associated bytecode if any 1.7 + DEBUG_ONLY(CodeComments _comments;) // Comments for annotating assembler output. 1.8 1.9 public: 1.10 // Initialization/finalization 1.11 - void initialize(int size) { _size = size; } 1.12 + void initialize(int size, 1.13 + CodeComments& comments) { _size = size; DEBUG_ONLY(_comments.assign(comments);) } 1.14 void finalize() { ShouldNotCallThis(); } 1.15 1.16 // General info/converters 1.17 @@ -129,7 +131,7 @@ 1.18 1.19 1.20 // commit Codelet 1.21 - AbstractInterpreter::code()->commit((*_masm)->code()->pure_insts_size()); 1.22 + AbstractInterpreter::code()->commit((*_masm)->code()->pure_insts_size(), (*_masm)->code()->comments()); 1.23 // make sure nobody can use _masm outside a CodeletMark lifespan 1.24 *_masm = NULL; 1.25 }