< prev index next >

src/share/vm/jvmci/jvmciCompilerToVM.hpp

Print this page


   1 /*
   2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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 #ifndef SHARE_VM_JVMCI_JVMCI_COMPILER_TO_VM_HPP
  25 #define SHARE_VM_JVMCI_JVMCI_COMPILER_TO_VM_HPP
  26 
  27 #include "prims/jni.h"
  28 #include "runtime/javaCalls.hpp"
  29 #include "jvmci/jvmciJavaClasses.hpp"
  30 
  31 class CompilerToVM {
  32  public:
  33   class Data {
  34     friend class JVMCIVMStructs;
  35 
  36    private:
  37     static int InstanceKlass_vtable_start_offset;
  38     static int InstanceKlass_vtable_length_offset;
  39 
  40     static int Method_extra_stack_entries;
  41 
  42     static address SharedRuntime_ic_miss_stub;
  43     static address SharedRuntime_handle_wrong_method_stub;
  44     static address SharedRuntime_deopt_blob_unpack;
  45     static address SharedRuntime_deopt_blob_uncommon_trap;
  46 
  47     static size_t ThreadLocalAllocBuffer_alignment_reserve;
  48 
  49     static CollectedHeap* Universe_collectedHeap;
  50     static int Universe_base_vtable_size;
  51     static address Universe_narrow_oop_base;
  52     static int Universe_narrow_oop_shift;
  53     static address Universe_narrow_klass_base;
  54     static int Universe_narrow_klass_shift;
  55     static uintptr_t Universe_verify_oop_mask;
  56     static uintptr_t Universe_verify_oop_bits;
  57     static void* Universe_non_oop_bits;
  58 


   1 /*
   2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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 #ifndef SHARE_VM_JVMCI_JVMCI_COMPILER_TO_VM_HPP
  25 #define SHARE_VM_JVMCI_JVMCI_COMPILER_TO_VM_HPP
  26 
  27 #include "prims/jni.h"
  28 #include "runtime/javaCalls.hpp"
  29 #include "jvmci/jvmciJavaClasses.hpp"
  30 
  31 class CompilerToVM {
  32  public:
  33   class Data {
  34     friend class JVMCIVMStructs;
  35 
  36    private:
  37     static int Klass_vtable_start_offset;
  38     static int Klass_vtable_length_offset;
  39 
  40     static int Method_extra_stack_entries;
  41 
  42     static address SharedRuntime_ic_miss_stub;
  43     static address SharedRuntime_handle_wrong_method_stub;
  44     static address SharedRuntime_deopt_blob_unpack;
  45     static address SharedRuntime_deopt_blob_uncommon_trap;
  46 
  47     static size_t ThreadLocalAllocBuffer_alignment_reserve;
  48 
  49     static CollectedHeap* Universe_collectedHeap;
  50     static int Universe_base_vtable_size;
  51     static address Universe_narrow_oop_base;
  52     static int Universe_narrow_oop_shift;
  53     static address Universe_narrow_klass_base;
  54     static int Universe_narrow_klass_shift;
  55     static uintptr_t Universe_verify_oop_mask;
  56     static uintptr_t Universe_verify_oop_bits;
  57     static void* Universe_non_oop_bits;
  58 


< prev index next >