hotspot/src/cpu/x86/vm/register_definitions_x86.cpp
author xlu
Wed, 24 Dec 2008 13:06:09 -0800
changeset 1888 bbf498fb4354
parent 1546 a02228c60567
child 5687 b862d1f189bd
child 5547 f4b087cbb361
permissions -rw-r--r--
6787106: Hotspot 32 bit build fails on platforms having different definitions for intptr_t & int32_t Summary: Avoid casting between int32_t and intptr_t specifically for MasmAssembler::movptr in 32 bit platforms. Reviewed-by: jrose, kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
670
ddf3e9583f2f 6719955: Update copyright year
xdono
parents: 360
diff changeset
     2
 * Copyright 2002-2008 Sun Microsystems, Inc.  All Rights Reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
#include "incls/_precompiled.incl"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
#include "incls/_register_definitions_x86.cpp.incl"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
REGISTER_DEFINITION(Register, noreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
REGISTER_DEFINITION(Register, rax);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
REGISTER_DEFINITION(Register, rcx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
REGISTER_DEFINITION(Register, rdx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
REGISTER_DEFINITION(Register, rbx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
REGISTER_DEFINITION(Register, rsp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
REGISTER_DEFINITION(Register, rbp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
REGISTER_DEFINITION(Register, rsi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
REGISTER_DEFINITION(Register, rdi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
REGISTER_DEFINITION(Register, r8);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
REGISTER_DEFINITION(Register, r9);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
REGISTER_DEFINITION(Register, r10);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
REGISTER_DEFINITION(Register, r11);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
REGISTER_DEFINITION(Register, r12);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
REGISTER_DEFINITION(Register, r13);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
REGISTER_DEFINITION(Register, r14);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
REGISTER_DEFINITION(Register, r15);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
REGISTER_DEFINITION(XMMRegister, xmm0 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
REGISTER_DEFINITION(XMMRegister, xmm1 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
REGISTER_DEFINITION(XMMRegister, xmm2 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
REGISTER_DEFINITION(XMMRegister, xmm3 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
REGISTER_DEFINITION(XMMRegister, xmm4 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
REGISTER_DEFINITION(XMMRegister, xmm5 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
REGISTER_DEFINITION(XMMRegister, xmm6 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
REGISTER_DEFINITION(XMMRegister, xmm7 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
REGISTER_DEFINITION(XMMRegister, xmm8);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
REGISTER_DEFINITION(XMMRegister, xmm9);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
REGISTER_DEFINITION(XMMRegister, xmm10);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
REGISTER_DEFINITION(XMMRegister, xmm11);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
REGISTER_DEFINITION(XMMRegister, xmm12);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
REGISTER_DEFINITION(XMMRegister, xmm13);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
REGISTER_DEFINITION(XMMRegister, xmm14);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
REGISTER_DEFINITION(XMMRegister, xmm15);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
REGISTER_DEFINITION(Register, c_rarg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
REGISTER_DEFINITION(Register, c_rarg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
REGISTER_DEFINITION(Register, c_rarg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
REGISTER_DEFINITION(Register, c_rarg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
REGISTER_DEFINITION(XMMRegister, c_farg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
REGISTER_DEFINITION(XMMRegister, c_farg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
REGISTER_DEFINITION(XMMRegister, c_farg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
REGISTER_DEFINITION(XMMRegister, c_farg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
// Non windows OS's have a few more argument registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
#ifndef _WIN64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
REGISTER_DEFINITION(Register, c_rarg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
REGISTER_DEFINITION(Register, c_rarg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
REGISTER_DEFINITION(XMMRegister, c_farg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
REGISTER_DEFINITION(XMMRegister, c_farg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
REGISTER_DEFINITION(XMMRegister, c_farg6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
REGISTER_DEFINITION(XMMRegister, c_farg7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
#endif /* _WIN64 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
REGISTER_DEFINITION(Register, j_rarg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
REGISTER_DEFINITION(Register, j_rarg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
REGISTER_DEFINITION(Register, j_rarg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
REGISTER_DEFINITION(Register, j_rarg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
REGISTER_DEFINITION(Register, j_rarg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
REGISTER_DEFINITION(Register, j_rarg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
REGISTER_DEFINITION(XMMRegister, j_farg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
REGISTER_DEFINITION(XMMRegister, j_farg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
REGISTER_DEFINITION(XMMRegister, j_farg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
REGISTER_DEFINITION(XMMRegister, j_farg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
REGISTER_DEFINITION(XMMRegister, j_farg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
REGISTER_DEFINITION(XMMRegister, j_farg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
REGISTER_DEFINITION(XMMRegister, j_farg6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
REGISTER_DEFINITION(XMMRegister, j_farg7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
REGISTER_DEFINITION(Register, rscratch1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
REGISTER_DEFINITION(Register, rscratch2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   106
REGISTER_DEFINITION(Register, r12_heapbase);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
REGISTER_DEFINITION(Register, r15_thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
REGISTER_DEFINITION(MMXRegister, mmx0 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
REGISTER_DEFINITION(MMXRegister, mmx1 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
REGISTER_DEFINITION(MMXRegister, mmx2 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
REGISTER_DEFINITION(MMXRegister, mmx3 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
REGISTER_DEFINITION(MMXRegister, mmx4 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
REGISTER_DEFINITION(MMXRegister, mmx5 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
REGISTER_DEFINITION(MMXRegister, mmx6 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
REGISTER_DEFINITION(MMXRegister, mmx7 );