< prev index next >

src/hotspot/cpu/x86/foreign_globals_x86.hpp

Print this page

10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 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 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  */
23 
24 #ifndef CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP
25 #define CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP
26 
27 #include "asm/macroAssembler.hpp"
28 #include "utilities/growableArray.hpp"
29 


30 constexpr size_t xmm_reg_size = 16; // size of XMM reg
31 
32 struct ABIDescriptor {
33     GrowableArray<Register> _integer_argument_registers;
34     GrowableArray<Register> _integer_return_registers;
35     GrowableArray<XMMRegister> _vector_argument_registers;
36     GrowableArray<XMMRegister> _vector_return_registers;
37     size_t _X87_return_registers_noof;
38 
39     GrowableArray<Register> _integer_additional_volatile_registers;
40     GrowableArray<XMMRegister> _vector_additional_volatile_registers;
41 
42     int32_t _stack_alignment_bytes;
43     int32_t _shadow_space_bytes;
44 
45     bool is_volatile_reg(Register reg) const;
46     bool is_volatile_reg(XMMRegister reg) const;
47 };
48 
49 struct BufferLayout {
50   size_t stack_args_bytes;
51   size_t stack_args;
52   size_t arguments_vector;
53   size_t arguments_integer;
54   size_t arguments_next_pc;
55   size_t returns_vector;
56   size_t returns_integer;
57   size_t returns_x87;
58   size_t buffer_size;
59 };
60 
61 #endif // CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP

10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 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 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  */
23 
24 #ifndef CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP
25 #define CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP
26 
27 #include "asm/macroAssembler.hpp"
28 #include "utilities/growableArray.hpp"
29 
30 class outputStream;
31 
32 constexpr size_t xmm_reg_size = 16; // size of XMM reg
33 
34 struct ABIDescriptor {
35   GrowableArray<Register> _integer_argument_registers;
36   GrowableArray<Register> _integer_return_registers;
37   GrowableArray<XMMRegister> _vector_argument_registers;
38   GrowableArray<XMMRegister> _vector_return_registers;
39   size_t _X87_return_registers_noof;
40 
41   GrowableArray<Register> _integer_additional_volatile_registers;
42   GrowableArray<XMMRegister> _vector_additional_volatile_registers;
43 
44   int32_t _stack_alignment_bytes;
45   int32_t _shadow_space_bytes;
46 
47   Register _target_addr_reg;
48   Register _ret_buf_addr_reg;

49 
50   bool is_volatile_reg(Register reg) const;
51   bool is_volatile_reg(XMMRegister reg) const;








52 };
53 
54 #endif // CPU_X86_VM_FOREIGN_GLOBALS_X86_HPP
< prev index next >