< prev index next >

src/share/vm/shark/llvmHeaders.hpp

Print this page
rev 7613 : [mq]: vmassert


  70 #include <llvm/IR/Type.h>
  71 #endif
  72 
  73 // common includes
  74 #include <llvm/Support/Threading.h>
  75 #include <llvm/Support/TargetSelect.h>
  76 #include <llvm/ExecutionEngine/JITMemoryManager.h>
  77 #include <llvm/Support/CommandLine.h>
  78 #include <llvm/ExecutionEngine/MCJIT.h>
  79 #include <llvm/ExecutionEngine/JIT.h>
  80 #include <llvm/ADT/StringMap.h>
  81 #include <llvm/Support/Debug.h>
  82 #include <llvm/Support/Host.h>
  83 
  84 #include <map>
  85 
  86 #ifdef assert
  87   #undef assert
  88 #endif
  89 
  90 // from hotspot/src/share/vm/utilities/debug.hpp
  91 #ifdef ASSERT
  92 #ifndef USE_REPEATED_ASSERTS
  93 #define assert(p, msg)                                                       \
  94 do {                                                                         \
  95   if (!(p)) {                                                                \
  96     report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg);       \
  97     BREAKPOINT;                                                              \
  98   }                                                                          \
  99 } while (0)
 100 #else // #ifndef USE_REPEATED_ASSERTS
 101 #define assert(p, msg)
 102 do {                                                                         \
 103   for (int __i = 0; __i < AssertRepeat; __i++) {                             \
 104     if (!(p)) {                                                              \
 105       report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg);     \
 106       BREAKPOINT;                                                            \
 107     }                                                                        \
 108   }                                                                          \
 109 } while (0)
 110 #endif // #ifndef USE_REPEATED_ASSERTS
 111 #else
 112   #define assert(p, msg)
 113 #endif
 114 
 115 #ifdef DEBUG
 116   #undef DEBUG
 117 #endif
 118 #ifdef SHARK_DEBUG
 119   #define DEBUG
 120   #undef SHARK_DEBUG
 121 #endif
 122 
 123 #endif // SHARE_VM_SHARK_LLVMHEADERS_HPP


  70 #include <llvm/IR/Type.h>
  71 #endif
  72 
  73 // common includes
  74 #include <llvm/Support/Threading.h>
  75 #include <llvm/Support/TargetSelect.h>
  76 #include <llvm/ExecutionEngine/JITMemoryManager.h>
  77 #include <llvm/Support/CommandLine.h>
  78 #include <llvm/ExecutionEngine/MCJIT.h>
  79 #include <llvm/ExecutionEngine/JIT.h>
  80 #include <llvm/ADT/StringMap.h>
  81 #include <llvm/Support/Debug.h>
  82 #include <llvm/Support/Host.h>
  83 
  84 #include <map>
  85 
  86 #ifdef assert
  87   #undef assert
  88 #endif
  89 
  90 #define assert(p, msg) vmassert(p, msg)























  91 
  92 #ifdef DEBUG
  93   #undef DEBUG
  94 #endif
  95 #ifdef SHARK_DEBUG
  96   #define DEBUG
  97   #undef SHARK_DEBUG
  98 #endif
  99 
 100 #endif // SHARE_VM_SHARK_LLVMHEADERS_HPP
< prev index next >