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/_deoptimization.cpp.incl" 27 28 bool DeoptimizationMarker::_is_active = false; 29 30 Deoptimization::UnrollBlock::UnrollBlock(int size_of_deoptimized_frame, 31 int caller_adjustment, 32 int number_of_frames, 33 intptr_t* frame_sizes, 34 address* frame_pcs, 35 BasicType return_type) { 36 _size_of_deoptimized_frame = size_of_deoptimized_frame; 37 _caller_adjustment = caller_adjustment; 38 _number_of_frames = number_of_frames; 39 _frame_sizes = frame_sizes; 40 _frame_pcs = frame_pcs; 41 _register_block = NEW_C_HEAP_ARRAY(intptr_t, RegisterMap::reg_count * 2); 42 _return_type = return_type; 43 // PD (x86 only) 44 _counter_temp = 0; 45 _initial_fp = 0; 46 _unpack_kind = 0; | 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 "code/debugInfoRec.hpp" 28 #include "code/nmethod.hpp" 29 #include "code/pcDesc.hpp" 30 #include "code/scopeDesc.hpp" 31 #include "interpreter/bytecode.hpp" 32 #include "interpreter/interpreter.hpp" 33 #include "interpreter/oopMapCache.hpp" 34 #include "memory/allocation.inline.hpp" 35 #include "memory/oopFactory.hpp" 36 #include "memory/resourceArea.hpp" 37 #include "oops/methodOop.hpp" 38 #include "oops/oop.inline.hpp" 39 #include "prims/jvmtiThreadState.hpp" 40 #include "runtime/biasedLocking.hpp" 41 #include "runtime/compilationPolicy.hpp" 42 #include "runtime/deoptimization.hpp" 43 #include "runtime/interfaceSupport.hpp" 44 #include "runtime/sharedRuntime.hpp" 45 #include "runtime/signature.hpp" 46 #include "runtime/stubRoutines.hpp" 47 #include "runtime/thread.hpp" 48 #include "runtime/vframe.hpp" 49 #include "runtime/vframeArray.hpp" 50 #include "runtime/vframe_hp.hpp" 51 #include "utilities/events.hpp" 52 #include "utilities/xmlstream.hpp" 53 #ifdef TARGET_ARCH_x86 54 # include "vmreg_x86.inline.hpp" 55 #endif 56 #ifdef TARGET_ARCH_sparc 57 # include "vmreg_sparc.inline.hpp" 58 #endif 59 #ifdef TARGET_ARCH_zero 60 # include "vmreg_zero.inline.hpp" 61 #endif 62 #ifdef COMPILER2 63 #ifdef TARGET_ARCH_MODEL_x86_32 64 # include "adfiles/ad_x86_32.hpp" 65 #endif 66 #ifdef TARGET_ARCH_MODEL_x86_64 67 # include "adfiles/ad_x86_64.hpp" 68 #endif 69 #ifdef TARGET_ARCH_MODEL_sparc 70 # include "adfiles/ad_sparc.hpp" 71 #endif 72 #ifdef TARGET_ARCH_MODEL_zero 73 # include "adfiles/ad_zero.hpp" 74 #endif 75 #endif 76 77 bool DeoptimizationMarker::_is_active = false; 78 79 Deoptimization::UnrollBlock::UnrollBlock(int size_of_deoptimized_frame, 80 int caller_adjustment, 81 int number_of_frames, 82 intptr_t* frame_sizes, 83 address* frame_pcs, 84 BasicType return_type) { 85 _size_of_deoptimized_frame = size_of_deoptimized_frame; 86 _caller_adjustment = caller_adjustment; 87 _number_of_frames = number_of_frames; 88 _frame_sizes = frame_sizes; 89 _frame_pcs = frame_pcs; 90 _register_block = NEW_C_HEAP_ARRAY(intptr_t, RegisterMap::reg_count * 2); 91 _return_type = return_type; 92 // PD (x86 only) 93 _counter_temp = 0; 94 _initial_fp = 0; 95 _unpack_kind = 0; |