Path: blob/master/src/hotspot/cpu/zero/frame_zero.hpp
40931 views
/*1* Copyright (c) 2003, 2020, 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_FRAME_ZERO_HPP26#define CPU_ZERO_FRAME_ZERO_HPP2728// A frame represents a physical stack frame on the Zero stack.2930public:31enum {32pc_return_offset = 033};3435// Constructor36public:37frame(ZeroFrame* zeroframe, intptr_t* sp);3839private:40ZeroFrame* _zeroframe;4142public:43const ZeroFrame *zeroframe() const {44return _zeroframe;45}4647intptr_t* fp() const {48return (intptr_t *) zeroframe();49}5051inline interpreterState get_interpreterState() const;5253public:54const EntryFrame *zero_entryframe() const {55return zeroframe()->as_entry_frame();56}57const InterpreterFrame *zero_interpreterframe() const {58return zeroframe()->as_interpreter_frame();59}6061public:62bool is_fake_stub_frame() const;6364public:65frame sender_for_nonentry_frame(RegisterMap* map) const;6667public:68void zero_print_on_error(int index,69outputStream* st,70char* buf,71int buflen) const;7273static jint interpreter_frame_expression_stack_direction() { return -1; }7475#endif // CPU_ZERO_FRAME_ZERO_HPP767778