hotspot/src/cpu/x86/vm/register_x86.hpp
author xlu
Wed, 24 Dec 2008 13:06:09 -0800
changeset 1888 bbf498fb4354
parent 1 489c9b5090e2
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
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2007 Sun Microsystems, Inc.  All Rights Reserved.
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
class VMRegImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
typedef VMRegImpl* VMReg;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
// Use Register as shortcut
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
class RegisterImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
typedef RegisterImpl* Register;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
// The implementation of integer registers for the ia32 architecture
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
inline Register as_Register(int encoding) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
  return (Register)(intptr_t) encoding;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
class RegisterImpl: public AbstractRegisterImpl {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
#ifndef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
    number_of_registers      = 8,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
    number_of_byte_registers = 4
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
    number_of_registers      = 16,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
    number_of_byte_registers = 16
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  // derived registers, offsets, and addresses
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  Register successor() const                          { return as_Register(encoding() + 1); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  // construction
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  inline friend Register as_Register(int encoding);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  VMReg as_VMReg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
  // accessors
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
  int   encoding() const                         { assert(is_valid(), "invalid register"); return (intptr_t)this; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
  bool  is_valid() const                         { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
  bool  has_byte_register() const                { return 0 <= (intptr_t)this && (intptr_t)this < number_of_byte_registers; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
  const char* name() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
// The integer registers of the ia32/amd64 architecture
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
CONSTANT_REGISTER_DECLARATION(Register, noreg, (-1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
CONSTANT_REGISTER_DECLARATION(Register, rax,    (0));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
CONSTANT_REGISTER_DECLARATION(Register, rcx,    (1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
CONSTANT_REGISTER_DECLARATION(Register, rdx,    (2));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
CONSTANT_REGISTER_DECLARATION(Register, rbx,    (3));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
CONSTANT_REGISTER_DECLARATION(Register, rsp,    (4));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
CONSTANT_REGISTER_DECLARATION(Register, rbp,    (5));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
CONSTANT_REGISTER_DECLARATION(Register, rsi,    (6));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
CONSTANT_REGISTER_DECLARATION(Register, rdi,    (7));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
CONSTANT_REGISTER_DECLARATION(Register, r8,     (8));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
CONSTANT_REGISTER_DECLARATION(Register, r9,     (9));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
CONSTANT_REGISTER_DECLARATION(Register, r10,   (10));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
CONSTANT_REGISTER_DECLARATION(Register, r11,   (11));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
CONSTANT_REGISTER_DECLARATION(Register, r12,   (12));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
CONSTANT_REGISTER_DECLARATION(Register, r13,   (13));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
CONSTANT_REGISTER_DECLARATION(Register, r14,   (14));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
CONSTANT_REGISTER_DECLARATION(Register, r15,   (15));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
// Use FloatRegister as shortcut
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
class FloatRegisterImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
typedef FloatRegisterImpl* FloatRegister;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
inline FloatRegister as_FloatRegister(int encoding) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  return (FloatRegister)(intptr_t) encoding;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
// The implementation of floating point registers for the ia32 architecture
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
class FloatRegisterImpl: public AbstractRegisterImpl {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
    number_of_registers = 8
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  // construction
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  inline friend FloatRegister as_FloatRegister(int encoding);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  VMReg as_VMReg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  // derived registers, offsets, and addresses
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  FloatRegister successor() const                          { return as_FloatRegister(encoding() + 1); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  // accessors
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
  int   encoding() const                          { assert(is_valid(), "invalid register"); return (intptr_t)this; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  const char* name() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
// Use XMMRegister as shortcut
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
class XMMRegisterImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
typedef XMMRegisterImpl* XMMRegister;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
// Use MMXRegister as shortcut
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
class MMXRegisterImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
typedef MMXRegisterImpl* MMXRegister;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
inline XMMRegister as_XMMRegister(int encoding) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  return (XMMRegister)(intptr_t)encoding;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
inline MMXRegister as_MMXRegister(int encoding) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  return (MMXRegister)(intptr_t)encoding;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
// The implementation of XMM registers for the IA32 architecture
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
class XMMRegisterImpl: public AbstractRegisterImpl {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
#ifndef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
    number_of_registers = 8
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
#else
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
    number_of_registers = 16
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  // construction
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  friend XMMRegister as_XMMRegister(int encoding);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  VMReg as_VMReg();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
  // derived registers, offsets, and addresses
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
  XMMRegister successor() const                          { return as_XMMRegister(encoding() + 1); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  // accessors
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  int   encoding() const                          { assert(is_valid(), "invalid register"); return (intptr_t)this; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  const char* name() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
// The XMM registers, for P3 and up chips
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
CONSTANT_REGISTER_DECLARATION(XMMRegister, xnoreg , (-1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm0 , ( 0));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm1 , ( 1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm2 , ( 2));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm3 , ( 3));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm4 , ( 4));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm5 , ( 5));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm6 , ( 6));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm7 , ( 7));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm8,      (8));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm9,      (9));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm10,    (10));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm11,    (11));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm12,    (12));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm13,    (13));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm14,    (14));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
CONSTANT_REGISTER_DECLARATION(XMMRegister, xmm15,    (15));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
// Only used by the 32bit stubGenerator. These can't be described by vmreg and hence
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
// can't be described in oopMaps and therefore can't be used by the compilers (at least
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
// were deopt might wan't to see them).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
// The MMX registers, for P3 and up chips
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
CONSTANT_REGISTER_DECLARATION(MMXRegister, mnoreg , (-1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx0 , ( 0));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx1 , ( 1));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx2 , ( 2));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx3 , ( 3));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx4 , ( 4));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx5 , ( 5));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx6 , ( 6));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
CONSTANT_REGISTER_DECLARATION(MMXRegister, mmx7 , ( 7));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
// Need to know the total number of registers of all sorts for SharedInfo.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
// Define a class that exports it.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
class ConcreteRegisterImpl : public AbstractRegisterImpl {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  // A big enough number for C2: all the registers plus flags
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  // This number must be large enough to cover REG_COUNT (defined by c2) registers.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  // There is no requirement that any ordering here matches any ordering c2 gives
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  // it's optoregs.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
    number_of_registers =      RegisterImpl::number_of_registers +
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
                               RegisterImpl::number_of_registers +  // "H" half of a 64bit register
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
                           2 * FloatRegisterImpl::number_of_registers +
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
                           2 * XMMRegisterImpl::number_of_registers +
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
                           1 // eflags
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  };
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  static const int max_gpr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  static const int max_fpr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  static const int max_xmm;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
};