< prev index next >
src/hotspot/share/runtime/stubCodeGenerator.cpp
Print this page
rev 54763 : 8213084: Rework and enhance Print[Opto]Assembly output
Reviewed-by:
@@ -58,11 +58,11 @@
void StubCodeDesc::print_on(outputStream* st) const {
st->print("%s", group());
st->print("::");
st->print("%s", name());
- st->print(" [" INTPTR_FORMAT ", " INTPTR_FORMAT "[ (%d bytes)", p2i(begin()), p2i(end()), size_in_bytes());
+ st->print(" [" INTPTR_FORMAT ", " INTPTR_FORMAT "] (%d bytes)", p2i(begin()), p2i(end()), size_in_bytes());
}
// Implementation of StubCodeGenerator
StubCodeGenerator::StubCodeGenerator(CodeBuffer* code, bool print_code) {
@@ -94,13 +94,16 @@
cs = outer_cbuf->strings();
// The offset from the start of the outer CodeBuffer to the start
// of this stub.
offset = cdesc->begin() - outer_cbuf->insts()->start();
#endif
- cdesc->print();
+ ttyLocker ttyl;
+ tty->print_cr("- - - [BEGIN] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
+ cdesc->print_on(tty);
tty->cr();
- Disassembler::decode(cdesc->begin(), cdesc->end(), NULL, cs, offset);
+ Disassembler::decode(cdesc->begin(), cdesc->end(), tty, cs /*, offset */);
+ tty->print_cr("- - - [END] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
tty->cr();
}
}
< prev index next >