Path: blob/master/src/hotspot/share/interpreter/zero/zeroInterpreter.hpp
40957 views
/*1* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_INTERPRETER_ZEROINTERPRETER_HPP25#define SHARE_INTERPRETER_ZEROINTERPRETER_HPP2627#include "interpreter/abstractInterpreter.hpp"28#include "utilities/macros.hpp"2930#ifdef ZERO3132class InterpreterCodelet;3334// This file contains the platform-independent parts35// of the c++ interpreter3637class ZeroInterpreter: public AbstractInterpreter {38friend class VMStructs;39public:40// Initialization/debugging41static void initialize_stub();42static void initialize_code();43// this only returns whether a pc is within generated code for the interpreter.4445// These are moderately dubious interfaces for the c++ interpreter. Only46// frame code and debug.cpp should be using it.47static bool contains(address pc);48static InterpreterCodelet* codelet_containing(address pc);4950public:515253// No displatch table to switch so no need for these to do anything special54static void notice_safepoints() {}55static void ignore_safepoints() {}5657static address return_entry (TosState state, int length, Bytecodes::Code code);58static address deopt_entry (TosState state, int length);5960static address remove_activation_entry() { return (address)-1; }61static address remove_activation_early_entry(TosState state);62static address remove_activation_preserving_args_entry();6364static void invoke_method(Method* method, address entry_point, TRAPS);65static void invoke_osr(Method* method,66address entry_point,67address osr_buf,68TRAPS);6970static address throw_NullPointerException_entry() { return NULL; }71static address throw_ArithmeticException_entry() { return NULL; }72static address throw_StackOverflowError_entry() { return NULL; }7374# include "zeroInterpreter_zero.hpp"75};7677#endif // ZERO7879#endif // SHARE_INTERPRETER_ZEROINTERPRETER_HPP808182