| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Unfortunately we can't make this private in a struct. | 143 // Unfortunately we can't make this private in a struct. |
| 144 int reg_code; | 144 int reg_code; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 | 147 |
| 148 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R}; | 148 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R}; |
| 149 GENERAL_REGISTERS(DECLARE_REGISTER) | 149 GENERAL_REGISTERS(DECLARE_REGISTER) |
| 150 #undef DECLARE_REGISTER | 150 #undef DECLARE_REGISTER |
| 151 const Register no_reg = {Register::kCode_no_reg}; | 151 const Register no_reg = {Register::kCode_no_reg}; |
| 152 | 152 |
| 153 static const bool kSimpleFPAliasing = true; |
| 154 |
| 153 struct XMMRegister { | 155 struct XMMRegister { |
| 154 enum Code { | 156 enum Code { |
| 155 #define REGISTER_CODE(R) kCode_##R, | 157 #define REGISTER_CODE(R) kCode_##R, |
| 156 DOUBLE_REGISTERS(REGISTER_CODE) | 158 DOUBLE_REGISTERS(REGISTER_CODE) |
| 157 #undef REGISTER_CODE | 159 #undef REGISTER_CODE |
| 158 kAfterLast, | 160 kAfterLast, |
| 159 kCode_no_reg = -1 | 161 kCode_no_reg = -1 |
| 160 }; | 162 }; |
| 161 | 163 |
| 162 static const int kMaxNumRegisters = Code::kAfterLast; | 164 static const int kMaxNumRegisters = Code::kAfterLast; |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 Assembler* assembler_; | 1611 Assembler* assembler_; |
| 1610 #ifdef DEBUG | 1612 #ifdef DEBUG |
| 1611 int space_before_; | 1613 int space_before_; |
| 1612 #endif | 1614 #endif |
| 1613 }; | 1615 }; |
| 1614 | 1616 |
| 1615 } // namespace internal | 1617 } // namespace internal |
| 1616 } // namespace v8 | 1618 } // namespace v8 |
| 1617 | 1619 |
| 1618 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1620 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |