Path: blob/master/src/hotspot/cpu/x86/foreign_globals_x86.hpp
41144 views
/*1* Copyright (c) 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*/2223#ifndef CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP24#define CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP2526#include "asm/macroAssembler.hpp"27#include "utilities/growableArray.hpp"2829constexpr size_t xmm_reg_size = 16; // size of XMM reg3031struct ABIDescriptor {32GrowableArray<Register> _integer_argument_registers;33GrowableArray<Register> _integer_return_registers;34GrowableArray<XMMRegister> _vector_argument_registers;35GrowableArray<XMMRegister> _vector_return_registers;36size_t _X87_return_registers_noof;3738GrowableArray<Register> _integer_additional_volatile_registers;39GrowableArray<XMMRegister> _vector_additional_volatile_registers;4041int32_t _stack_alignment_bytes;42int32_t _shadow_space_bytes;4344bool is_volatile_reg(Register reg) const;45bool is_volatile_reg(XMMRegister reg) const;46};4748struct BufferLayout {49size_t stack_args_bytes;50size_t stack_args;51size_t arguments_vector;52size_t arguments_integer;53size_t arguments_next_pc;54size_t returns_vector;55size_t returns_integer;56size_t returns_x87;57size_t buffer_size;58};5960#endif // CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP616263