Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/zero/vm/cppInterpreter_zero.hpp
32285 views
/*1* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.2* Copyright 2007, 2008, 2010, 2011 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_CPPINTERPRETER_ZERO_HPP26#define CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP2728protected:29// Size of interpreter code30const static int InterpreterCodeSize = 6 * K;3132public:33// Method entries34static int normal_entry(Method* method, intptr_t UNUSED, TRAPS);35static int native_entry(Method* method, intptr_t UNUSED, TRAPS);36static int accessor_entry(Method* method, intptr_t UNUSED, TRAPS);37static int empty_entry(Method* method, intptr_t UNUSED, TRAPS);3839public:40// Main loop of normal_entry41static void main_loop(int recurse, TRAPS);4243private:44// Helpers for method_handle_entry45static void insert_vmslots(int insert_before, int num_slots, TRAPS);46static void remove_vmslots(int first_slot, int num_slots, TRAPS);47static BasicType result_type_of_handle(oop method_handle);48static intptr_t* calculate_unwind_sp(ZeroStack* stack, oop method_handle);49static void throw_exception(JavaThread* thread, Symbol* name,char *msg=NULL);5051#endif // CPU_ZERO_VM_CPPINTERPRETER_ZERO_HPP525354