annotate src/hotspot/cpu/x86/register_definitions_x86.cpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents f94d179a730b
children
rev   line source
duke@1 1 /*
goetz@40071 2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
duke@1 7 * published by the Free Software Foundation.
duke@1 8 *
duke@1 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 * accompanied this code).
duke@1 14 *
duke@1 15 * You should have received a copy of the GNU General Public License version
duke@1 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 *
trims@5547 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@5547 20 * or visit www.oracle.com if you need additional information or have any
trims@5547 21 * questions.
duke@1 22 *
duke@1 23 */
duke@1 24
stefank@7397 25 #include "precompiled.hpp"
stefank@7397 26 #include "asm/assembler.hpp"
stefank@7397 27 #include "asm/register.hpp"
stefank@7397 28 #include "register_x86.hpp"
goetz@40010 29 #include "interp_masm_x86.hpp"
duke@1 30
duke@1 31 REGISTER_DEFINITION(Register, noreg);
duke@1 32 REGISTER_DEFINITION(Register, rax);
duke@1 33 REGISTER_DEFINITION(Register, rcx);
duke@1 34 REGISTER_DEFINITION(Register, rdx);
duke@1 35 REGISTER_DEFINITION(Register, rbx);
duke@1 36 REGISTER_DEFINITION(Register, rsp);
duke@1 37 REGISTER_DEFINITION(Register, rbp);
duke@1 38 REGISTER_DEFINITION(Register, rsi);
duke@1 39 REGISTER_DEFINITION(Register, rdi);
duke@1 40 #ifdef AMD64
duke@1 41 REGISTER_DEFINITION(Register, r8);
duke@1 42 REGISTER_DEFINITION(Register, r9);
duke@1 43 REGISTER_DEFINITION(Register, r10);
duke@1 44 REGISTER_DEFINITION(Register, r11);
duke@1 45 REGISTER_DEFINITION(Register, r12);
duke@1 46 REGISTER_DEFINITION(Register, r13);
duke@1 47 REGISTER_DEFINITION(Register, r14);
duke@1 48 REGISTER_DEFINITION(Register, r15);
duke@1 49 #endif // AMD64
duke@1 50
goetz@40071 51 REGISTER_DEFINITION(FloatRegister, fnoreg);
goetz@40071 52
kvn@11427 53 REGISTER_DEFINITION(XMMRegister, xnoreg);
duke@1 54 REGISTER_DEFINITION(XMMRegister, xmm0 );
duke@1 55 REGISTER_DEFINITION(XMMRegister, xmm1 );
duke@1 56 REGISTER_DEFINITION(XMMRegister, xmm2 );
duke@1 57 REGISTER_DEFINITION(XMMRegister, xmm3 );
duke@1 58 REGISTER_DEFINITION(XMMRegister, xmm4 );
duke@1 59 REGISTER_DEFINITION(XMMRegister, xmm5 );
duke@1 60 REGISTER_DEFINITION(XMMRegister, xmm6 );
duke@1 61 REGISTER_DEFINITION(XMMRegister, xmm7 );
duke@1 62 #ifdef AMD64
duke@1 63 REGISTER_DEFINITION(XMMRegister, xmm8);
duke@1 64 REGISTER_DEFINITION(XMMRegister, xmm9);
duke@1 65 REGISTER_DEFINITION(XMMRegister, xmm10);
duke@1 66 REGISTER_DEFINITION(XMMRegister, xmm11);
duke@1 67 REGISTER_DEFINITION(XMMRegister, xmm12);
duke@1 68 REGISTER_DEFINITION(XMMRegister, xmm13);
duke@1 69 REGISTER_DEFINITION(XMMRegister, xmm14);
duke@1 70 REGISTER_DEFINITION(XMMRegister, xmm15);
kvn@30624 71 REGISTER_DEFINITION(XMMRegister, xmm16);
kvn@30624 72 REGISTER_DEFINITION(XMMRegister, xmm17);
kvn@30624 73 REGISTER_DEFINITION(XMMRegister, xmm18);
kvn@30624 74 REGISTER_DEFINITION(XMMRegister, xmm19);
kvn@30624 75 REGISTER_DEFINITION(XMMRegister, xmm20);
kvn@30624 76 REGISTER_DEFINITION(XMMRegister, xmm21);
kvn@30624 77 REGISTER_DEFINITION(XMMRegister, xmm22);
kvn@30624 78 REGISTER_DEFINITION(XMMRegister, xmm23);
kvn@30624 79 REGISTER_DEFINITION(XMMRegister, xmm24);
kvn@30624 80 REGISTER_DEFINITION(XMMRegister, xmm25);
kvn@30624 81 REGISTER_DEFINITION(XMMRegister, xmm26);
kvn@30624 82 REGISTER_DEFINITION(XMMRegister, xmm27);
kvn@30624 83 REGISTER_DEFINITION(XMMRegister, xmm28);
kvn@30624 84 REGISTER_DEFINITION(XMMRegister, xmm29);
kvn@30624 85 REGISTER_DEFINITION(XMMRegister, xmm30);
kvn@30624 86 REGISTER_DEFINITION(XMMRegister, xmm31);
duke@1 87
duke@1 88 REGISTER_DEFINITION(Register, c_rarg0);
duke@1 89 REGISTER_DEFINITION(Register, c_rarg1);
duke@1 90 REGISTER_DEFINITION(Register, c_rarg2);
duke@1 91 REGISTER_DEFINITION(Register, c_rarg3);
duke@1 92
duke@1 93 REGISTER_DEFINITION(XMMRegister, c_farg0);
duke@1 94 REGISTER_DEFINITION(XMMRegister, c_farg1);
duke@1 95 REGISTER_DEFINITION(XMMRegister, c_farg2);
duke@1 96 REGISTER_DEFINITION(XMMRegister, c_farg3);
duke@1 97
duke@1 98 // Non windows OS's have a few more argument registers
duke@1 99 #ifndef _WIN64
duke@1 100 REGISTER_DEFINITION(Register, c_rarg4);
duke@1 101 REGISTER_DEFINITION(Register, c_rarg5);
duke@1 102
duke@1 103 REGISTER_DEFINITION(XMMRegister, c_farg4);
duke@1 104 REGISTER_DEFINITION(XMMRegister, c_farg5);
duke@1 105 REGISTER_DEFINITION(XMMRegister, c_farg6);
duke@1 106 REGISTER_DEFINITION(XMMRegister, c_farg7);
duke@1 107 #endif /* _WIN64 */
duke@1 108
duke@1 109 REGISTER_DEFINITION(Register, j_rarg0);
duke@1 110 REGISTER_DEFINITION(Register, j_rarg1);
duke@1 111 REGISTER_DEFINITION(Register, j_rarg2);
duke@1 112 REGISTER_DEFINITION(Register, j_rarg3);
duke@1 113 REGISTER_DEFINITION(Register, j_rarg4);
duke@1 114 REGISTER_DEFINITION(Register, j_rarg5);
duke@1 115
duke@1 116 REGISTER_DEFINITION(XMMRegister, j_farg0);
duke@1 117 REGISTER_DEFINITION(XMMRegister, j_farg1);
duke@1 118 REGISTER_DEFINITION(XMMRegister, j_farg2);
duke@1 119 REGISTER_DEFINITION(XMMRegister, j_farg3);
duke@1 120 REGISTER_DEFINITION(XMMRegister, j_farg4);
duke@1 121 REGISTER_DEFINITION(XMMRegister, j_farg5);
duke@1 122 REGISTER_DEFINITION(XMMRegister, j_farg6);
duke@1 123 REGISTER_DEFINITION(XMMRegister, j_farg7);
duke@1 124
duke@1 125 REGISTER_DEFINITION(Register, rscratch1);
duke@1 126 REGISTER_DEFINITION(Register, rscratch2);
duke@1 127
coleenp@360 128 REGISTER_DEFINITION(Register, r12_heapbase);
duke@1 129 REGISTER_DEFINITION(Register, r15_thread);
duke@1 130 #endif // AMD64
duke@1 131
kvn@11427 132 REGISTER_DEFINITION(MMXRegister, mnoreg );
duke@1 133 REGISTER_DEFINITION(MMXRegister, mmx0 );
duke@1 134 REGISTER_DEFINITION(MMXRegister, mmx1 );
duke@1 135 REGISTER_DEFINITION(MMXRegister, mmx2 );
duke@1 136 REGISTER_DEFINITION(MMXRegister, mmx3 );
duke@1 137 REGISTER_DEFINITION(MMXRegister, mmx4 );
duke@1 138 REGISTER_DEFINITION(MMXRegister, mmx5 );
duke@1 139 REGISTER_DEFINITION(MMXRegister, mmx6 );
duke@1 140 REGISTER_DEFINITION(MMXRegister, mmx7 );
twisti@5687 141
kvn@30624 142 REGISTER_DEFINITION(KRegister, knoreg);
kvn@30624 143 REGISTER_DEFINITION(KRegister, k0);
kvn@30624 144 REGISTER_DEFINITION(KRegister, k1);
kvn@30624 145 REGISTER_DEFINITION(KRegister, k2);
kvn@30624 146 REGISTER_DEFINITION(KRegister, k3);
kvn@30624 147 REGISTER_DEFINITION(KRegister, k4);
kvn@30624 148 REGISTER_DEFINITION(KRegister, k5);
kvn@30624 149 REGISTER_DEFINITION(KRegister, k6);
kvn@30624 150 REGISTER_DEFINITION(KRegister, k7);
kvn@30624 151
twisti@5687 152 // JSR 292
twisti@5687 153 REGISTER_DEFINITION(Register, rbp_mh_SP_save);