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/_sharedRuntime_x86_32.cpp.incl" 27 28 #define __ masm-> 29 #ifdef COMPILER2 30 UncommonTrapBlob *SharedRuntime::_uncommon_trap_blob; 31 #endif // COMPILER2 32 33 DeoptimizationBlob *SharedRuntime::_deopt_blob; 34 SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob; 35 SafepointBlob *SharedRuntime::_polling_page_return_handler_blob; 36 RuntimeStub* SharedRuntime::_wrong_method_blob; 37 RuntimeStub* SharedRuntime::_ic_miss_blob; 38 RuntimeStub* SharedRuntime::_resolve_opt_virtual_call_blob; 39 RuntimeStub* SharedRuntime::_resolve_virtual_call_blob; 40 RuntimeStub* SharedRuntime::_resolve_static_call_blob; 41 42 const int StackAlignmentInSlots = StackAlignmentInBytes / VMRegImpl::stack_slot_size; 43 44 class RegisterSaver { 45 enum { FPU_regs_live = 8 /*for the FPU stack*/+8/*eight more for XMM registers*/ }; 46 // Capture info about frame layout | 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 "asm/assembler.hpp" 27 #include "assembler_x86.inline.hpp" 28 #include "code/debugInfoRec.hpp" 29 #include "code/icBuffer.hpp" 30 #include "code/vtableStubs.hpp" 31 #include "interpreter/interpreter.hpp" 32 #include "oops/compiledICHolderOop.hpp" 33 #include "prims/jvmtiRedefineClassesTrace.hpp" 34 #include "runtime/sharedRuntime.hpp" 35 #include "runtime/vframeArray.hpp" 36 #include "vmreg_x86.inline.hpp" 37 #ifdef COMPILER1 38 #include "c1/c1_Runtime1.hpp" 39 #endif 40 #ifdef COMPILER2 41 #include "opto/runtime.hpp" 42 #endif 43 44 #define __ masm-> 45 #ifdef COMPILER2 46 UncommonTrapBlob *SharedRuntime::_uncommon_trap_blob; 47 #endif // COMPILER2 48 49 DeoptimizationBlob *SharedRuntime::_deopt_blob; 50 SafepointBlob *SharedRuntime::_polling_page_safepoint_handler_blob; 51 SafepointBlob *SharedRuntime::_polling_page_return_handler_blob; 52 RuntimeStub* SharedRuntime::_wrong_method_blob; 53 RuntimeStub* SharedRuntime::_ic_miss_blob; 54 RuntimeStub* SharedRuntime::_resolve_opt_virtual_call_blob; 55 RuntimeStub* SharedRuntime::_resolve_virtual_call_blob; 56 RuntimeStub* SharedRuntime::_resolve_static_call_blob; 57 58 const int StackAlignmentInSlots = StackAlignmentInBytes / VMRegImpl::stack_slot_size; 59 60 class RegisterSaver { 61 enum { FPU_regs_live = 8 /*for the FPU stack*/+8/*eight more for XMM registers*/ }; 62 // Capture info about frame layout |