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 25 #include "incls/_precompiled.incl" 26 #include "incls/_linkResolver.cpp.incl" 27 28 //------------------------------------------------------------------------------------------------------------------------ 29 // Implementation of FieldAccessInfo 30 31 void FieldAccessInfo::set(KlassHandle klass, symbolHandle name, int field_index, int field_offset, 32 BasicType field_type, AccessFlags access_flags) { 33 _klass = klass; 34 _name = name; 35 _field_index = field_index; 36 _field_offset = field_offset; 37 _field_type = field_type; 38 _access_flags = access_flags; 39 } 40 41 42 //------------------------------------------------------------------------------------------------------------------------ 43 // Implementation of CallInfo 44 45 46 void CallInfo::set_static(KlassHandle resolved_klass, methodHandle resolved_method, TRAPS) { | 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 25 #include "precompiled.hpp" 26 #include "classfile/systemDictionary.hpp" 27 #include "classfile/vmSymbols.hpp" 28 #include "compiler/compileBroker.hpp" 29 #include "gc_interface/collectedHeap.inline.hpp" 30 #include "interpreter/bytecode.hpp" 31 #include "interpreter/interpreterRuntime.hpp" 32 #include "interpreter/linkResolver.hpp" 33 #include "memory/resourceArea.hpp" 34 #include "memory/universe.inline.hpp" 35 #include "oops/instanceKlass.hpp" 36 #include "oops/objArrayOop.hpp" 37 #include "prims/methodHandles.hpp" 38 #include "prims/nativeLookup.hpp" 39 #include "runtime/compilationPolicy.hpp" 40 #include "runtime/fieldDescriptor.hpp" 41 #include "runtime/frame.inline.hpp" 42 #include "runtime/handles.inline.hpp" 43 #include "runtime/reflection.hpp" 44 #include "runtime/signature.hpp" 45 #include "runtime/vmThread.hpp" 46 #ifdef TARGET_OS_FAMILY_linux 47 # include "thread_linux.inline.hpp" 48 #endif 49 #ifdef TARGET_OS_FAMILY_solaris 50 # include "thread_solaris.inline.hpp" 51 #endif 52 #ifdef TARGET_OS_FAMILY_windows 53 # include "thread_windows.inline.hpp" 54 #endif 55 56 //------------------------------------------------------------------------------------------------------------------------ 57 // Implementation of FieldAccessInfo 58 59 void FieldAccessInfo::set(KlassHandle klass, symbolHandle name, int field_index, int field_offset, 60 BasicType field_type, AccessFlags access_flags) { 61 _klass = klass; 62 _name = name; 63 _field_index = field_index; 64 _field_offset = field_offset; 65 _field_type = field_type; 66 _access_flags = access_flags; 67 } 68 69 70 //------------------------------------------------------------------------------------------------------------------------ 71 // Implementation of CallInfo 72 73 74 void CallInfo::set_static(KlassHandle resolved_klass, methodHandle resolved_method, TRAPS) { |