src/hotspot/share/runtime/stubCodeGenerator.cpp
changeset 54960 e46fe26d7f77
parent 54807 33fe50b6d707
equal deleted inserted replaced
54959:00425a850a2f 54960:e46fe26d7f77
    58 
    58 
    59 void StubCodeDesc::print_on(outputStream* st) const {
    59 void StubCodeDesc::print_on(outputStream* st) const {
    60   st->print("%s", group());
    60   st->print("%s", group());
    61   st->print("::");
    61   st->print("::");
    62   st->print("%s", name());
    62   st->print("%s", name());
    63   st->print(" [" INTPTR_FORMAT ", " INTPTR_FORMAT "[ (%d bytes)", p2i(begin()), p2i(end()), size_in_bytes());
    63   st->print(" [" INTPTR_FORMAT ", " INTPTR_FORMAT "] (%d bytes)", p2i(begin()), p2i(end()), size_in_bytes());
    64 }
    64 }
    65 
    65 
    66 void StubCodeDesc::print() const { print_on(tty); }
    66 void StubCodeDesc::print() const { print_on(tty); }
    67 
    67 
    68 // Implementation of StubCodeGenerator
    68 // Implementation of StubCodeGenerator
    96     cs = outer_cbuf->strings();
    96     cs = outer_cbuf->strings();
    97     // The offset from the start of the outer CodeBuffer to the start
    97     // The offset from the start of the outer CodeBuffer to the start
    98     // of this stub.
    98     // of this stub.
    99     offset = cdesc->begin() - outer_cbuf->insts()->start();
    99     offset = cdesc->begin() - outer_cbuf->insts()->start();
   100 #endif
   100 #endif
   101     cdesc->print();
   101     ttyLocker ttyl;
       
   102     tty->print_cr("- - - [BEGIN] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
       
   103     cdesc->print_on(tty);
   102     tty->cr();
   104     tty->cr();
   103     Disassembler::decode(cdesc->begin(), cdesc->end(), NULL, cs, offset);
   105     Disassembler::decode(cdesc->begin(), cdesc->end(), tty, cs /*, offset */);
       
   106     tty->print_cr("- - - [END] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
   104     tty->cr();
   107     tty->cr();
   105   }
   108   }
   106 }
   109 }
   107 
   110 
   108 
   111