Mercurial > hg > truffle
comparison src/share/vm/interpreter/interpreter.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 | da91efe96a93 |
children | a3e2f723f2a5 |
comparison
equal
deleted
inserted
replaced
6795:7eca5de9e0b6 | 6796:b31471cdc53e |
---|---|
58 void InterpreterCodelet::verify() { | 58 void InterpreterCodelet::verify() { |
59 } | 59 } |
60 | 60 |
61 | 61 |
62 void InterpreterCodelet::print_on(outputStream* st) const { | 62 void InterpreterCodelet::print_on(outputStream* st) const { |
63 ttyLocker ttyl; | |
64 | |
63 if (PrintInterpreter) { | 65 if (PrintInterpreter) { |
64 st->cr(); | 66 st->cr(); |
65 st->print_cr("----------------------------------------------------------------------"); | 67 st->print_cr("----------------------------------------------------------------------"); |
66 } | 68 } |
67 | 69 |
70 st->print_cr("[" INTPTR_FORMAT ", " INTPTR_FORMAT "] %d bytes", | 72 st->print_cr("[" INTPTR_FORMAT ", " INTPTR_FORMAT "] %d bytes", |
71 code_begin(), code_end(), code_size()); | 73 code_begin(), code_end(), code_size()); |
72 | 74 |
73 if (PrintInterpreter) { | 75 if (PrintInterpreter) { |
74 st->cr(); | 76 st->cr(); |
75 Disassembler::decode(code_begin(), code_end(), st); | 77 Disassembler::decode(code_begin(), code_end(), st, DEBUG_ONLY(_comments) NOT_DEBUG(CodeComments())); |
76 } | 78 } |
77 } | 79 } |
78 | 80 |
79 | 81 |
80 //------------------------------------------------------------------------------------------------------------------------ | 82 //------------------------------------------------------------------------------------------------------------------------ |