Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/zero/vm/frame_zero.hpp
32285 views
/*1* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.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 it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 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 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef CPU_ZERO_VM_FRAME_ZERO_HPP26#define CPU_ZERO_VM_FRAME_ZERO_HPP2728#include "runtime/synchronizer.hpp"29#include "utilities/top.hpp"3031// A frame represents a physical stack frame on the Zero stack.3233public:34enum {35pc_return_offset = 036};3738// Constructor39public:40frame(ZeroFrame* zeroframe, intptr_t* sp);4142private:43ZeroFrame* _zeroframe;4445public:46const ZeroFrame *zeroframe() const {47return _zeroframe;48}4950intptr_t* fp() const {51return (intptr_t *) zeroframe();52}5354#ifdef CC_INTERP55inline interpreterState get_interpreterState() const;56#endif // CC_INTERP5758public:59const EntryFrame *zero_entryframe() const {60return zeroframe()->as_entry_frame();61}62const InterpreterFrame *zero_interpreterframe() const {63return zeroframe()->as_interpreter_frame();64}65const SharkFrame *zero_sharkframe() const {66return zeroframe()->as_shark_frame();67}6869public:70bool is_fake_stub_frame() const;7172public:73frame sender_for_nonentry_frame(RegisterMap* map) const;7475public:76void zero_print_on_error(int index,77outputStream* st,78char* buf,79int buflen) const;8081#endif // CPU_ZERO_VM_FRAME_ZERO_HPP828384