Path: blob/master/src/hotspot/cpu/zero/sharedRuntime_zero.cpp
40931 views
/*1* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.2* Copyright 2007, 2008, 2009, 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#include "precompiled.hpp"26#include "asm/assembler.inline.hpp"27#include "code/debugInfoRec.hpp"28#include "code/icBuffer.hpp"29#include "code/vtableStubs.hpp"30#include "interpreter/interpreter.hpp"31#include "oops/compiledICHolder.hpp"32#include "runtime/interfaceSupport.inline.hpp"33#include "runtime/sharedRuntime.hpp"34#include "runtime/vframeArray.hpp"35#include "vmreg_zero.inline.hpp"3637#ifdef COMPILER138#include "c1/c1_Runtime1.hpp"39#endif40#ifdef COMPILER241#include "opto/runtime.hpp"42#endif434445static address zero_null_code_stub() {46address start = ShouldNotCallThisStub();47return start;48}4950int SharedRuntime::java_calling_convention(const BasicType *sig_bt,51VMRegPair *regs,52int total_args_passed) {53return 0;54}5556AdapterHandlerEntry* SharedRuntime::generate_i2c2i_adapters(57MacroAssembler *masm,58int total_args_passed,59int comp_args_on_stack,60const BasicType *sig_bt,61const VMRegPair *regs,62AdapterFingerPrint *fingerprint) {63return AdapterHandlerLibrary::new_entry(64fingerprint,65CAST_FROM_FN_PTR(address,zero_null_code_stub),66CAST_FROM_FN_PTR(address,zero_null_code_stub),67CAST_FROM_FN_PTR(address,zero_null_code_stub));68}6970nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm,71const methodHandle& method,72int compile_id,73BasicType *sig_bt,74VMRegPair *regs,75BasicType ret_type,76address critical_entry) {77ShouldNotCallThis();78return NULL;79}8081int Deoptimization::last_frame_adjust(int callee_parameters,82int callee_locals) {83return 0;84}8586uint SharedRuntime::out_preserve_stack_slots() {87ShouldNotCallThis();88return 0;89}9091JRT_LEAF(void, zero_stub())92ShouldNotCallThis();93JRT_END9495static RuntimeStub* generate_empty_runtime_stub(const char* name) {96return CAST_FROM_FN_PTR(RuntimeStub*,zero_stub);97}9899static SafepointBlob* generate_empty_safepoint_blob() {100return CAST_FROM_FN_PTR(SafepointBlob*,zero_stub);101}102103static DeoptimizationBlob* generate_empty_deopt_blob() {104return CAST_FROM_FN_PTR(DeoptimizationBlob*,zero_stub);105}106107108void SharedRuntime::generate_deopt_blob() {109_deopt_blob = generate_empty_deopt_blob();110}111112SafepointBlob* SharedRuntime::generate_handler_blob(address call_ptr, int poll_type) {113return generate_empty_safepoint_blob();114}115116RuntimeStub* SharedRuntime::generate_resolve_blob(address destination, const char* name) {117return generate_empty_runtime_stub("resolve_blob");118}119120int SharedRuntime::c_calling_convention(const BasicType *sig_bt,121VMRegPair *regs,122VMRegPair *regs2,123int total_args_passed) {124ShouldNotCallThis();125return 0;126}127128int SharedRuntime::vector_calling_convention(VMRegPair *regs,129uint num_bits,130uint total_args_passed) {131ShouldNotCallThis();132return 0;133}134135136