src/cpu/x86/vm/register_definitions_x86.cpp

Mon, 04 Jan 2010 18:38:08 +0100

author
twisti
date
Mon, 04 Jan 2010 18:38:08 +0100
changeset 1570
e66fd840cb6b
parent 862
3c07cda72b7d
child 1907
c18cbe5936b8
child 1919
61b2245abf36
permissions
-rw-r--r--

6893081: method handle & invokedynamic code needs additional cleanup (post 6815692, 6858164)
Summary: During the work for 6829187 we have fixed a number of basic bugs which are logically grouped with 6815692 and 6858164 but which must be reviewed and pushed separately.
Reviewed-by: kvn, never

     1 /*
     2  * Copyright 2002-2008 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  */
    25 #include "incls/_precompiled.incl"
    26 #include "incls/_register_definitions_x86.cpp.incl"
    28 REGISTER_DEFINITION(Register, noreg);
    29 REGISTER_DEFINITION(Register, rax);
    30 REGISTER_DEFINITION(Register, rcx);
    31 REGISTER_DEFINITION(Register, rdx);
    32 REGISTER_DEFINITION(Register, rbx);
    33 REGISTER_DEFINITION(Register, rsp);
    34 REGISTER_DEFINITION(Register, rbp);
    35 REGISTER_DEFINITION(Register, rsi);
    36 REGISTER_DEFINITION(Register, rdi);
    37 #ifdef AMD64
    38 REGISTER_DEFINITION(Register, r8);
    39 REGISTER_DEFINITION(Register, r9);
    40 REGISTER_DEFINITION(Register, r10);
    41 REGISTER_DEFINITION(Register, r11);
    42 REGISTER_DEFINITION(Register, r12);
    43 REGISTER_DEFINITION(Register, r13);
    44 REGISTER_DEFINITION(Register, r14);
    45 REGISTER_DEFINITION(Register, r15);
    46 #endif // AMD64
    48 REGISTER_DEFINITION(XMMRegister, xmm0 );
    49 REGISTER_DEFINITION(XMMRegister, xmm1 );
    50 REGISTER_DEFINITION(XMMRegister, xmm2 );
    51 REGISTER_DEFINITION(XMMRegister, xmm3 );
    52 REGISTER_DEFINITION(XMMRegister, xmm4 );
    53 REGISTER_DEFINITION(XMMRegister, xmm5 );
    54 REGISTER_DEFINITION(XMMRegister, xmm6 );
    55 REGISTER_DEFINITION(XMMRegister, xmm7 );
    56 #ifdef AMD64
    57 REGISTER_DEFINITION(XMMRegister, xmm8);
    58 REGISTER_DEFINITION(XMMRegister, xmm9);
    59 REGISTER_DEFINITION(XMMRegister, xmm10);
    60 REGISTER_DEFINITION(XMMRegister, xmm11);
    61 REGISTER_DEFINITION(XMMRegister, xmm12);
    62 REGISTER_DEFINITION(XMMRegister, xmm13);
    63 REGISTER_DEFINITION(XMMRegister, xmm14);
    64 REGISTER_DEFINITION(XMMRegister, xmm15);
    66 REGISTER_DEFINITION(Register, c_rarg0);
    67 REGISTER_DEFINITION(Register, c_rarg1);
    68 REGISTER_DEFINITION(Register, c_rarg2);
    69 REGISTER_DEFINITION(Register, c_rarg3);
    71 REGISTER_DEFINITION(XMMRegister, c_farg0);
    72 REGISTER_DEFINITION(XMMRegister, c_farg1);
    73 REGISTER_DEFINITION(XMMRegister, c_farg2);
    74 REGISTER_DEFINITION(XMMRegister, c_farg3);
    76 // Non windows OS's have a few more argument registers
    77 #ifndef _WIN64
    78 REGISTER_DEFINITION(Register, c_rarg4);
    79 REGISTER_DEFINITION(Register, c_rarg5);
    81 REGISTER_DEFINITION(XMMRegister, c_farg4);
    82 REGISTER_DEFINITION(XMMRegister, c_farg5);
    83 REGISTER_DEFINITION(XMMRegister, c_farg6);
    84 REGISTER_DEFINITION(XMMRegister, c_farg7);
    85 #endif /* _WIN64 */
    87 REGISTER_DEFINITION(Register, j_rarg0);
    88 REGISTER_DEFINITION(Register, j_rarg1);
    89 REGISTER_DEFINITION(Register, j_rarg2);
    90 REGISTER_DEFINITION(Register, j_rarg3);
    91 REGISTER_DEFINITION(Register, j_rarg4);
    92 REGISTER_DEFINITION(Register, j_rarg5);
    94 REGISTER_DEFINITION(XMMRegister, j_farg0);
    95 REGISTER_DEFINITION(XMMRegister, j_farg1);
    96 REGISTER_DEFINITION(XMMRegister, j_farg2);
    97 REGISTER_DEFINITION(XMMRegister, j_farg3);
    98 REGISTER_DEFINITION(XMMRegister, j_farg4);
    99 REGISTER_DEFINITION(XMMRegister, j_farg5);
   100 REGISTER_DEFINITION(XMMRegister, j_farg6);
   101 REGISTER_DEFINITION(XMMRegister, j_farg7);
   103 REGISTER_DEFINITION(Register, rscratch1);
   104 REGISTER_DEFINITION(Register, rscratch2);
   106 REGISTER_DEFINITION(Register, r12_heapbase);
   107 REGISTER_DEFINITION(Register, r15_thread);
   108 #endif // AMD64
   110 REGISTER_DEFINITION(MMXRegister, mmx0 );
   111 REGISTER_DEFINITION(MMXRegister, mmx1 );
   112 REGISTER_DEFINITION(MMXRegister, mmx2 );
   113 REGISTER_DEFINITION(MMXRegister, mmx3 );
   114 REGISTER_DEFINITION(MMXRegister, mmx4 );
   115 REGISTER_DEFINITION(MMXRegister, mmx5 );
   116 REGISTER_DEFINITION(MMXRegister, mmx6 );
   117 REGISTER_DEFINITION(MMXRegister, mmx7 );

mercurial