< prev index next >

src/share/vm/compiler/disassembler.cpp

Print this page
rev 11647 : 8161258: Simplify including platform files.
Summary: Include patform files with macros cpu_header() etc. Do various cleanups of macro usages. Remove _64/_32 from adlc generated files and platform .hpp files. Merge stubRoutines_x86*.hpp. Remove empty mutex_<os>* files.
Reviewed-by: dholmes, coleenp, kbarrett


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/javaClasses.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "compiler/disassembler.hpp"
  29 #include "gc/shared/cardTableModRefBS.hpp"
  30 #include "gc/shared/collectedHeap.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "runtime/fprofiler.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/os.hpp"
  36 #include "runtime/stubCodeGenerator.hpp"
  37 #include "runtime/stubRoutines.hpp"
  38 #ifdef TARGET_ARCH_x86
  39 # include "depChecker_x86.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_sparc
  42 # include "depChecker_sparc.hpp"
  43 #endif
  44 #ifdef TARGET_ARCH_zero
  45 # include "depChecker_zero.hpp"
  46 #endif
  47 #ifdef TARGET_ARCH_arm
  48 # include "depChecker_arm.hpp"
  49 #endif
  50 #ifdef TARGET_ARCH_ppc
  51 # include "depChecker_ppc.hpp"
  52 #endif
  53 #ifdef TARGET_ARCH_aarch64
  54 # include "depChecker_aarch64.hpp"
  55 #endif
  56 #ifdef SHARK
  57 #include "shark/sharkEntry.hpp"
  58 #endif
  59 
  60 void*       Disassembler::_library               = NULL;
  61 bool        Disassembler::_tried_to_load_library = false;
  62 
  63 // This routine is in the shared library:
  64 Disassembler::decode_func_virtual Disassembler::_decode_instructions_virtual = NULL;
  65 Disassembler::decode_func Disassembler::_decode_instructions = NULL;
  66 
  67 static const char hsdis_library_name[] = "hsdis-" HOTSPOT_LIB_ARCH;
  68 static const char decode_instructions_virtual_name[] = "decode_instructions_virtual";
  69 static const char decode_instructions_name[] = "decode_instructions";
  70 static bool use_new_version = true;
  71 #define COMMENT_COLUMN  40 LP64_ONLY(+8) /*could be an option*/
  72 #define BYTES_COMMENT   ";..."  /* funky byte display comment */
  73 
  74 bool Disassembler::load_library() {
  75   if (_decode_instructions_virtual != NULL || _decode_instructions != NULL) {




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/javaClasses.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "compiler/disassembler.hpp"
  29 #include "gc/shared/cardTableModRefBS.hpp"
  30 #include "gc/shared/collectedHeap.hpp"
  31 #include "memory/resourceArea.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "runtime/fprofiler.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/os.hpp"
  36 #include "runtime/stubCodeGenerator.hpp"
  37 #include "runtime/stubRoutines.hpp"
  38 #include CPU_HEADER(depChecker)

















  39 #ifdef SHARK
  40 #include "shark/sharkEntry.hpp"
  41 #endif
  42 
  43 void*       Disassembler::_library               = NULL;
  44 bool        Disassembler::_tried_to_load_library = false;
  45 
  46 // This routine is in the shared library:
  47 Disassembler::decode_func_virtual Disassembler::_decode_instructions_virtual = NULL;
  48 Disassembler::decode_func Disassembler::_decode_instructions = NULL;
  49 
  50 static const char hsdis_library_name[] = "hsdis-" HOTSPOT_LIB_ARCH;
  51 static const char decode_instructions_virtual_name[] = "decode_instructions_virtual";
  52 static const char decode_instructions_name[] = "decode_instructions";
  53 static bool use_new_version = true;
  54 #define COMMENT_COLUMN  40 LP64_ONLY(+8) /*could be an option*/
  55 #define BYTES_COMMENT   ";..."  /* funky byte display comment */
  56 
  57 bool Disassembler::load_library() {
  58   if (_decode_instructions_virtual != NULL || _decode_instructions != NULL) {


< prev index next >