src/hotspot/share/compiler/disassembler.cpp
changeset 47687 fb290fd1f9d4
parent 47216 71c04702a3d5
child 49164 7e958a8ebcd3
equal deleted inserted replaced
47686:24ebaf9d7198 47687:fb290fd1f9d4
    33 #include "runtime/handles.inline.hpp"
    33 #include "runtime/handles.inline.hpp"
    34 #include "runtime/os.hpp"
    34 #include "runtime/os.hpp"
    35 #include "runtime/stubCodeGenerator.hpp"
    35 #include "runtime/stubCodeGenerator.hpp"
    36 #include "runtime/stubRoutines.hpp"
    36 #include "runtime/stubRoutines.hpp"
    37 #include CPU_HEADER(depChecker)
    37 #include CPU_HEADER(depChecker)
    38 #ifdef SHARK
       
    39 #include "shark/sharkEntry.hpp"
       
    40 #endif
       
    41 
    38 
    42 void*       Disassembler::_library               = NULL;
    39 void*       Disassembler::_library               = NULL;
    43 bool        Disassembler::_tried_to_load_library = false;
    40 bool        Disassembler::_tried_to_load_library = false;
    44 
    41 
    45 // This routine is in the shared library:
    42 // This routine is in the shared library:
   519   ttyLocker ttyl;
   516   ttyLocker ttyl;
   520   if (!load_library())  return;
   517   if (!load_library())  return;
   521   decode_env env(nm, st);
   518   decode_env env(nm, st);
   522   env.output()->print_cr("----------------------------------------------------------------------");
   519   env.output()->print_cr("----------------------------------------------------------------------");
   523 
   520 
   524 #ifdef SHARK
       
   525   SharkEntry* entry = (SharkEntry *) nm->code_begin();
       
   526   unsigned char* p   = entry->code_start();
       
   527   unsigned char* end = entry->code_limit();
       
   528 #else
       
   529   unsigned char* p   = nm->code_begin();
   521   unsigned char* p   = nm->code_begin();
   530   unsigned char* end = nm->code_end();
   522   unsigned char* end = nm->code_end();
   531 #endif // SHARK
       
   532 
   523 
   533   nm->method()->method_holder()->name()->print_symbol_on(env.output());
   524   nm->method()->method_holder()->name()->print_symbol_on(env.output());
   534   env.output()->print(".");
   525   env.output()->print(".");
   535   nm->method()->name()->print_symbol_on(env.output());
   526   nm->method()->name()->print_symbol_on(env.output());
   536   nm->method()->signature()->print_symbol_on(env.output());
   527   nm->method()->signature()->print_symbol_on(env.output());