frame.inline.hpp revision 11658:8a5735c11a84
1275963Srpaulo/*
2275963Srpaulo * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
3275963Srpaulo * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4275963Srpaulo *
5275963Srpaulo * This code is free software; you can redistribute it and/or modify it
6275963Srpaulo * under the terms of the GNU General Public License version 2 only, as
7275963Srpaulo * published by the Free Software Foundation.
8275963Srpaulo *
9275963Srpaulo * This code is distributed in the hope that it will be useful, but WITHOUT
10275963Srpaulo * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11275963Srpaulo * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12275963Srpaulo * version 2 for more details (a copy is included in the LICENSE file that
13275963Srpaulo * accompanied this code).
14275963Srpaulo *
15275963Srpaulo * You should have received a copy of the GNU General Public License version
16275963Srpaulo * 2 along with this work; if not, write to the Free Software Foundation,
17275963Srpaulo * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18275963Srpaulo *
19275963Srpaulo * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20275963Srpaulo * or visit www.oracle.com if you need additional information or have any
21275963Srpaulo * questions.
22275963Srpaulo *
23275963Srpaulo */
24275963Srpaulo
25275963Srpaulo#ifndef SHARE_VM_RUNTIME_FRAME_INLINE_HPP
26275963Srpaulo#define SHARE_VM_RUNTIME_FRAME_INLINE_HPP
27275963Srpaulo
28275963Srpaulo#include "interpreter/bytecodeInterpreter.hpp"
29275963Srpaulo#include "interpreter/bytecodeInterpreter.inline.hpp"
30275963Srpaulo#include "interpreter/interpreter.hpp"
31275963Srpaulo#include "oops/method.hpp"
32275963Srpaulo#include "runtime/frame.hpp"
33275963Srpaulo#include "runtime/signature.hpp"
34275963Srpaulo#include "utilities/macros.hpp"
35275963Srpaulo#ifdef ZERO
36275963Srpaulo# include "entryFrame_zero.hpp"
37275963Srpaulo# include "fakeStubFrame_zero.hpp"
38275963Srpaulo# include "interpreterFrame_zero.hpp"
39275963Srpaulo# include "sharkFrame_zero.hpp"
40275963Srpaulo#endif
41275963Srpaulo
42275963Srpaulo#include CPU_HEADER_INLINE(frame)
43275963Srpaulo
44275963Srpauloinline bool frame::is_entry_frame() const {
45275963Srpaulo  return StubRoutines::returns_to_call_stub(pc());
46275963Srpaulo}
47275963Srpaulo
48275963Srpauloinline bool frame::is_stub_frame() const {
49275963Srpaulo  return StubRoutines::is_stub_code(pc()) || (_cb != NULL && _cb->is_adapter_blob());
50275963Srpaulo}
51275963Srpaulo
52275963Srpauloinline bool frame::is_first_frame() const {
53275963Srpaulo  return is_entry_frame() && entry_frame_is_first();
54275963Srpaulo}
55275963Srpaulo
56275963Srpaulo#endif // SHARE_VM_RUNTIME_FRAME_INLINE_HPP
57275963Srpaulo