hotspot/src/cpu/x86/vm/register_definitions_x86.cpp
changeset 1 489c9b5090e2
child 360 21d113ecbf6a
equal deleted inserted replaced
0:fd16c54261b3 1:489c9b5090e2
       
     1 /*
       
     2  * Copyright 2002-2005 Sun Microsystems, 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 it
       
     6  * under the terms of the GNU General Public License version 2 only, as
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
       
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
       
    21  * have any questions.
       
    22  *
       
    23  */
       
    24 
       
    25 // make sure the defines don't screw up the declarations later on in this file
       
    26 #define DONT_USE_REGISTER_DEFINES
       
    27 
       
    28 #include "incls/_precompiled.incl"
       
    29 #include "incls/_register_definitions_x86.cpp.incl"
       
    30 
       
    31 REGISTER_DEFINITION(Register, noreg);
       
    32 REGISTER_DEFINITION(Register, rax);
       
    33 REGISTER_DEFINITION(Register, rcx);
       
    34 REGISTER_DEFINITION(Register, rdx);
       
    35 REGISTER_DEFINITION(Register, rbx);
       
    36 REGISTER_DEFINITION(Register, rsp);
       
    37 REGISTER_DEFINITION(Register, rbp);
       
    38 REGISTER_DEFINITION(Register, rsi);
       
    39 REGISTER_DEFINITION(Register, rdi);
       
    40 #ifdef AMD64
       
    41 REGISTER_DEFINITION(Register, r8);
       
    42 REGISTER_DEFINITION(Register, r9);
       
    43 REGISTER_DEFINITION(Register, r10);
       
    44 REGISTER_DEFINITION(Register, r11);
       
    45 REGISTER_DEFINITION(Register, r12);
       
    46 REGISTER_DEFINITION(Register, r13);
       
    47 REGISTER_DEFINITION(Register, r14);
       
    48 REGISTER_DEFINITION(Register, r15);
       
    49 #endif // AMD64
       
    50 
       
    51 REGISTER_DEFINITION(XMMRegister, xmm0 );
       
    52 REGISTER_DEFINITION(XMMRegister, xmm1 );
       
    53 REGISTER_DEFINITION(XMMRegister, xmm2 );
       
    54 REGISTER_DEFINITION(XMMRegister, xmm3 );
       
    55 REGISTER_DEFINITION(XMMRegister, xmm4 );
       
    56 REGISTER_DEFINITION(XMMRegister, xmm5 );
       
    57 REGISTER_DEFINITION(XMMRegister, xmm6 );
       
    58 REGISTER_DEFINITION(XMMRegister, xmm7 );
       
    59 #ifdef AMD64
       
    60 REGISTER_DEFINITION(XMMRegister, xmm8);
       
    61 REGISTER_DEFINITION(XMMRegister, xmm9);
       
    62 REGISTER_DEFINITION(XMMRegister, xmm10);
       
    63 REGISTER_DEFINITION(XMMRegister, xmm11);
       
    64 REGISTER_DEFINITION(XMMRegister, xmm12);
       
    65 REGISTER_DEFINITION(XMMRegister, xmm13);
       
    66 REGISTER_DEFINITION(XMMRegister, xmm14);
       
    67 REGISTER_DEFINITION(XMMRegister, xmm15);
       
    68 
       
    69 REGISTER_DEFINITION(Register, c_rarg0);
       
    70 REGISTER_DEFINITION(Register, c_rarg1);
       
    71 REGISTER_DEFINITION(Register, c_rarg2);
       
    72 REGISTER_DEFINITION(Register, c_rarg3);
       
    73 
       
    74 REGISTER_DEFINITION(XMMRegister, c_farg0);
       
    75 REGISTER_DEFINITION(XMMRegister, c_farg1);
       
    76 REGISTER_DEFINITION(XMMRegister, c_farg2);
       
    77 REGISTER_DEFINITION(XMMRegister, c_farg3);
       
    78 
       
    79 // Non windows OS's have a few more argument registers
       
    80 #ifndef _WIN64
       
    81 REGISTER_DEFINITION(Register, c_rarg4);
       
    82 REGISTER_DEFINITION(Register, c_rarg5);
       
    83 
       
    84 REGISTER_DEFINITION(XMMRegister, c_farg4);
       
    85 REGISTER_DEFINITION(XMMRegister, c_farg5);
       
    86 REGISTER_DEFINITION(XMMRegister, c_farg6);
       
    87 REGISTER_DEFINITION(XMMRegister, c_farg7);
       
    88 #endif /* _WIN64 */
       
    89 
       
    90 REGISTER_DEFINITION(Register, j_rarg0);
       
    91 REGISTER_DEFINITION(Register, j_rarg1);
       
    92 REGISTER_DEFINITION(Register, j_rarg2);
       
    93 REGISTER_DEFINITION(Register, j_rarg3);
       
    94 REGISTER_DEFINITION(Register, j_rarg4);
       
    95 REGISTER_DEFINITION(Register, j_rarg5);
       
    96 
       
    97 REGISTER_DEFINITION(XMMRegister, j_farg0);
       
    98 REGISTER_DEFINITION(XMMRegister, j_farg1);
       
    99 REGISTER_DEFINITION(XMMRegister, j_farg2);
       
   100 REGISTER_DEFINITION(XMMRegister, j_farg3);
       
   101 REGISTER_DEFINITION(XMMRegister, j_farg4);
       
   102 REGISTER_DEFINITION(XMMRegister, j_farg5);
       
   103 REGISTER_DEFINITION(XMMRegister, j_farg6);
       
   104 REGISTER_DEFINITION(XMMRegister, j_farg7);
       
   105 
       
   106 REGISTER_DEFINITION(Register, rscratch1);
       
   107 REGISTER_DEFINITION(Register, rscratch2);
       
   108 
       
   109 REGISTER_DEFINITION(Register, r15_thread);
       
   110 #endif // AMD64
       
   111 
       
   112 REGISTER_DEFINITION(MMXRegister, mmx0 );
       
   113 REGISTER_DEFINITION(MMXRegister, mmx1 );
       
   114 REGISTER_DEFINITION(MMXRegister, mmx2 );
       
   115 REGISTER_DEFINITION(MMXRegister, mmx3 );
       
   116 REGISTER_DEFINITION(MMXRegister, mmx4 );
       
   117 REGISTER_DEFINITION(MMXRegister, mmx5 );
       
   118 REGISTER_DEFINITION(MMXRegister, mmx6 );
       
   119 REGISTER_DEFINITION(MMXRegister, mmx7 );