< prev index next >

src/share/vm/jvmci/jvmciEnv.hpp

Print this page


   1 /*
   2  * Copyright (c) 1999, 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  *


 109   static KlassHandle get_klass_by_name_impl(KlassHandle& accessing_klass,
 110                                   const constantPoolHandle& cpool,
 111                                   Symbol* klass_name,
 112                                   bool require_local);
 113   static KlassHandle   get_klass_by_index_impl(const constantPoolHandle& cpool,
 114                                      int klass_index,
 115                                      bool& is_accessible,
 116                                      KlassHandle loading_klass);
 117   static void   get_field_by_index_impl(instanceKlassHandle loading_klass, fieldDescriptor& fd,
 118                                      int field_index);
 119   static methodHandle  get_method_by_index_impl(const constantPoolHandle& cpool,
 120                                       int method_index, Bytecodes::Code bc,
 121                                       instanceKlassHandle loading_klass);
 122 
 123   // Helper methods
 124   static bool       check_klass_accessibility(KlassHandle accessing_klass, KlassHandle resolved_klass);
 125   static methodHandle  lookup_method(instanceKlassHandle  accessor,
 126                            instanceKlassHandle  holder,
 127                            Symbol*         name,
 128                            Symbol*         sig,
 129                            Bytecodes::Code bc);

 130 
 131   private:
 132 
 133   // Is this thread currently in the VM state?
 134   static bool is_in_vm();
 135 
 136   // Helper routine for determining the validity of a compilation
 137   // with respect to concurrent class loading.
 138   static JVMCIEnv::CodeInstallResult check_for_system_dictionary_modification(Dependencies* target, Handle compiled_code,
 139                                                                               JVMCIEnv* env, char** failure_detail);
 140 
 141 public:
 142   CompileTask* task() { return _task; }
 143 
 144   // Register the result of a compilation.
 145   static JVMCIEnv::CodeInstallResult register_method(
 146                        const methodHandle&       target,
 147                        nmethod*&                 nm,
 148                        int                       entry_bci,
 149                        CodeOffsets*              offsets,


   1 /*
   2  * Copyright (c) 1999, 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  *


 109   static KlassHandle get_klass_by_name_impl(KlassHandle& accessing_klass,
 110                                   const constantPoolHandle& cpool,
 111                                   Symbol* klass_name,
 112                                   bool require_local);
 113   static KlassHandle   get_klass_by_index_impl(const constantPoolHandle& cpool,
 114                                      int klass_index,
 115                                      bool& is_accessible,
 116                                      KlassHandle loading_klass);
 117   static void   get_field_by_index_impl(instanceKlassHandle loading_klass, fieldDescriptor& fd,
 118                                      int field_index);
 119   static methodHandle  get_method_by_index_impl(const constantPoolHandle& cpool,
 120                                       int method_index, Bytecodes::Code bc,
 121                                       instanceKlassHandle loading_klass);
 122 
 123   // Helper methods
 124   static bool       check_klass_accessibility(KlassHandle accessing_klass, KlassHandle resolved_klass);
 125   static methodHandle  lookup_method(instanceKlassHandle  accessor,
 126                            instanceKlassHandle  holder,
 127                            Symbol*         name,
 128                            Symbol*         sig,
 129                            Bytecodes::Code bc,
 130                            constantTag     tag);
 131 
 132   private:
 133 
 134   // Is this thread currently in the VM state?
 135   static bool is_in_vm();
 136 
 137   // Helper routine for determining the validity of a compilation
 138   // with respect to concurrent class loading.
 139   static JVMCIEnv::CodeInstallResult check_for_system_dictionary_modification(Dependencies* target, Handle compiled_code,
 140                                                                               JVMCIEnv* env, char** failure_detail);
 141 
 142 public:
 143   CompileTask* task() { return _task; }
 144 
 145   // Register the result of a compilation.
 146   static JVMCIEnv::CodeInstallResult register_method(
 147                        const methodHandle&       target,
 148                        nmethod*&                 nm,
 149                        int                       entry_bci,
 150                        CodeOffsets*              offsets,


< prev index next >