Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/aarch32/vm/globalDefinitions_aarch32.hpp
32285 views
/*1* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2014, Red Hat Inc. All rights reserved.3* Copyright (c) 2015, Linaro Ltd. All rights reserved.4* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.5*6* This code is free software; you can redistribute it and/or modify it7* under the terms of the GNU General Public License version 2 only, as8* published by the Free Software Foundation.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*24*/2526#ifndef CPU_AARCH32_VM_GLOBALDEFINITIONS_AARCH32_HPP27#define CPU_AARCH32_VM_GLOBALDEFINITIONS_AARCH32_HPP2829// __ARM_PCS_VFP indicates that gcc runs with "-mfloat-abi=hard" option.30// This option allows generation of floating point instructions and enforces31// usage of FPU-specific calling conventions.32#ifdef __ARM_PCS_VFP33#define HARD_FLOAT_CC34#endif // __ARM_PCS_VFP3536// If changing this please be sure to review all code which saves the registers37// and the corresponding register maps to ensure that the respective frame38// sizes are multiple of this new value39const int StackAlignmentInBytes = 8;4041// Indicates whether the C calling conventions require that42// 32-bit integer argument values are properly extended to 64 bits.43// If set, SharedRuntime::c_calling_convention() must adapt44// signatures accordingly.45const bool CCallingConventionRequiresIntsAsLongs = false;4647#define SUPPORTS_NATIVE_CX84849// The maximum B/BL offset range on AArch32 is 32MB.50#undef CODE_CACHE_DEFAULT_LIMIT51#define CODE_CACHE_DEFAULT_LIMIT (32*M)5253// According to the ARMv8 ARM, "Concurrent modification and execution54// of instructions can lead to the resulting instruction performing55// any behavior that can be achieved by executing any sequence of56// instructions that can be executed from the same Exception level,57// except where the instruction before modification and the58// instruction after modification is a B, BL, NOP, BKPT, SVC, HVC, or59// SMC instruction."60//61// This makes the games we play when patching difficult, so when we62// come across an access that needs patching we deoptimize. There are63// ways we can avoid this, but these would slow down C1-compiled code64// in the default case. We could revisit this decision if we get any65// evidence that it's worth doing.66#define DEOPTIMIZE_WHEN_PATCHING6768#endif // CPU_AARCH32_VM_GLOBALDEFINITIONS_AARCH32_HPP697071