Path: blob/master/src/hotspot/cpu/aarch64/globalDefinitions_aarch64.hpp
40930 views
/*1* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2014, 2015, Red Hat Inc. All rights reserved.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_AARCH64_GLOBALDEFINITIONS_AARCH64_HPP26#define CPU_AARCH64_GLOBALDEFINITIONS_AARCH64_HPP2728const int StackAlignmentInBytes = 16;2930// Indicates whether the C calling conventions require that31// 32-bit integer argument values are extended to 64 bits.32const bool CCallingConventionRequiresIntsAsLongs = false;3334#define SUPPORTS_NATIVE_CX83536// Aarch64 was not originally defined to be multi-copy-atomic, but now37// is. See: "Simplifying ARM Concurrency: Multicopy-atomic Axiomatic38// and Operational Models for ARMv8"39#define CPU_MULTI_COPY_ATOMIC4041// According to the ARMv8 ARM, "Concurrent modification and execution42// of instructions can lead to the resulting instruction performing43// any behavior that can be achieved by executing any sequence of44// instructions that can be executed from the same Exception level,45// except where the instruction before modification and the46// instruction after modification is a B, BL, NOP, BKPT, SVC, HVC, or47// SMC instruction."48//49// This makes the games we play when patching difficult, so when we50// come across an access that needs patching we deoptimize. There are51// ways we can avoid this, but these would slow down C1-compiled code52// in the defauilt case. We could revisit this decision if we get any53// evidence that it's worth doing.54#define DEOPTIMIZE_WHEN_PATCHING5556#define SUPPORT_RESERVED_STACK_AREA5758#define COMPRESSED_CLASS_POINTERS_DEPENDS_ON_COMPRESSED_OOPS false5960#if defined(__APPLE__) || defined(_WIN64)61#define R18_RESERVED62#define R18_RESERVED_ONLY(code) code63#define NOT_R18_RESERVED(code)64#else65#define R18_RESERVED_ONLY(code)66#define NOT_R18_RESERVED(code) code67#endif6869#endif // CPU_AARCH64_GLOBALDEFINITIONS_AARCH64_HPP707172