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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Unfortunately we can't make this private in a struct. | 141 // Unfortunately we can't make this private in a struct. |
142 int reg_code; | 142 int reg_code; |
143 }; | 143 }; |
144 | 144 |
145 | 145 |
146 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R}; | 146 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R}; |
147 GENERAL_REGISTERS(DECLARE_REGISTER) | 147 GENERAL_REGISTERS(DECLARE_REGISTER) |
148 #undef DECLARE_REGISTER | 148 #undef DECLARE_REGISTER |
149 const Register no_reg = {Register::kCode_no_reg}; | 149 const Register no_reg = {Register::kCode_no_reg}; |
150 | 150 |
| 151 static const bool kSimpleFPAliasing = true; |
| 152 |
151 struct X87Register { | 153 struct X87Register { |
152 enum Code { | 154 enum Code { |
153 #define REGISTER_CODE(R) kCode_##R, | 155 #define REGISTER_CODE(R) kCode_##R, |
154 DOUBLE_REGISTERS(REGISTER_CODE) | 156 DOUBLE_REGISTERS(REGISTER_CODE) |
155 #undef REGISTER_CODE | 157 #undef REGISTER_CODE |
156 kAfterLast, | 158 kAfterLast, |
157 kCode_no_reg = -1 | 159 kCode_no_reg = -1 |
158 }; | 160 }; |
159 | 161 |
160 static const int kMaxNumRegisters = Code::kAfterLast; | 162 static const int kMaxNumRegisters = Code::kAfterLast; |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 Assembler* assembler_; | 1116 Assembler* assembler_; |
1115 #ifdef DEBUG | 1117 #ifdef DEBUG |
1116 int space_before_; | 1118 int space_before_; |
1117 #endif | 1119 #endif |
1118 }; | 1120 }; |
1119 | 1121 |
1120 } // namespace internal | 1122 } // namespace internal |
1121 } // namespace v8 | 1123 } // namespace v8 |
1122 | 1124 |
1123 #endif // V8_X87_ASSEMBLER_X87_H_ | 1125 #endif // V8_X87_ASSEMBLER_X87_H_ |
OLD | NEW |