frame.inline.hpp revision 7877:cc8363b030d5
1/* 2 * Copyright (c) 1997, 2014, 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 25#ifndef SHARE_VM_RUNTIME_FRAME_INLINE_HPP 26#define SHARE_VM_RUNTIME_FRAME_INLINE_HPP 27 28#include "interpreter/bytecodeInterpreter.hpp" 29#include "interpreter/bytecodeInterpreter.inline.hpp" 30#include "interpreter/interpreter.hpp" 31#include "oops/method.hpp" 32#include "runtime/frame.hpp" 33#include "runtime/signature.hpp" 34#ifdef ZERO 35#ifdef TARGET_ARCH_zero 36# include "entryFrame_zero.hpp" 37# include "fakeStubFrame_zero.hpp" 38# include "interpreterFrame_zero.hpp" 39# include "sharkFrame_zero.hpp" 40#endif 41#endif 42 43inline bool frame::is_entry_frame() const { 44 return StubRoutines::returns_to_call_stub(pc()); 45} 46 47inline bool frame::is_stub_frame() const { 48 return StubRoutines::is_stub_code(pc()) || (_cb != NULL && _cb->is_adapter_blob()); 49} 50 51inline bool frame::is_first_frame() const { 52 return is_entry_frame() && entry_frame_is_first(); 53} 54 55#ifdef CC_INTERP 56inline oop* frame::interpreter_frame_temp_oop_addr() const { 57 interpreterState istate = get_interpreterState(); 58 return (oop *)&istate->_oop_temp; 59} 60#endif // CC_INTERP 61 62// here are the platform-dependent bodies: 63 64#ifdef TARGET_ARCH_x86 65# include "frame_x86.inline.hpp" 66#endif 67#ifdef TARGET_ARCH_sparc 68# include "frame_sparc.inline.hpp" 69#endif 70#ifdef TARGET_ARCH_zero 71# include "frame_zero.inline.hpp" 72#endif 73#ifdef TARGET_ARCH_arm 74# include "frame_arm.inline.hpp" 75#endif 76#ifdef TARGET_ARCH_ppc 77# include "frame_ppc.inline.hpp" 78#endif 79#ifdef TARGET_ARCH_aarch64 80# include "frame_aarch64.inline.hpp" 81#endif 82 83 84#endif // SHARE_VM_RUNTIME_FRAME_INLINE_HPP 85