< prev index next >

src/hotspot/share/code/codeBlob.cpp

Print this page




  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 "jvm.h"
  27 #include "code/codeBlob.hpp"
  28 #include "code/codeCache.hpp"
  29 #include "code/relocInfo.hpp"
  30 #include "compiler/disassembler.hpp"
  31 #include "interpreter/bytecode.hpp"
  32 #include "memory/allocation.inline.hpp"
  33 #include "memory/heap.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "prims/forte.hpp"
  37 #include "runtime/handles.inline.hpp"
  38 #include "runtime/interfaceSupport.hpp"
  39 #include "runtime/mutexLocker.hpp"
  40 #include "runtime/safepoint.hpp"
  41 #include "runtime/sharedRuntime.hpp"
  42 #include "runtime/vframe.hpp"
  43 #include "services/memoryService.hpp"
  44 #include "utilities/align.hpp"
  45 #ifdef COMPILER1
  46 #include "c1/c1_Runtime1.hpp"
  47 #endif
  48 
  49 const char* CodeBlob::compiler_name() const {
  50   return compilertype2name(_type);
  51 }
  52 
  53 unsigned int CodeBlob::align_code_offset(int offset) {
  54   // align the size to CodeEntryAlignment
  55   return
  56     ((offset + (int)CodeHeap::header_size() + (CodeEntryAlignment-1)) & ~(CodeEntryAlignment-1))
  57     - (int)CodeHeap::header_size();
  58 }




  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 "jvm.h"
  27 #include "code/codeBlob.hpp"
  28 #include "code/codeCache.hpp"
  29 #include "code/relocInfo.hpp"
  30 #include "compiler/disassembler.hpp"
  31 #include "interpreter/bytecode.hpp"
  32 #include "memory/allocation.inline.hpp"
  33 #include "memory/heap.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "prims/forte.hpp"
  37 #include "runtime/handles.inline.hpp"
  38 #include "runtime/interfaceSupport.inline.hpp"
  39 #include "runtime/mutexLocker.hpp"
  40 #include "runtime/safepoint.hpp"
  41 #include "runtime/sharedRuntime.hpp"
  42 #include "runtime/vframe.hpp"
  43 #include "services/memoryService.hpp"
  44 #include "utilities/align.hpp"
  45 #ifdef COMPILER1
  46 #include "c1/c1_Runtime1.hpp"
  47 #endif
  48 
  49 const char* CodeBlob::compiler_name() const {
  50   return compilertype2name(_type);
  51 }
  52 
  53 unsigned int CodeBlob::align_code_offset(int offset) {
  54   // align the size to CodeEntryAlignment
  55   return
  56     ((offset + (int)CodeHeap::header_size() + (CodeEntryAlignment-1)) & ~(CodeEntryAlignment-1))
  57     - (int)CodeHeap::header_size();
  58 }


< prev index next >