| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 const DwVfpRegister d7 = { 7 }; | 293 const DwVfpRegister d7 = { 7 }; |
| 294 const DwVfpRegister d8 = { 8 }; | 294 const DwVfpRegister d8 = { 8 }; |
| 295 const DwVfpRegister d9 = { 9 }; | 295 const DwVfpRegister d9 = { 9 }; |
| 296 const DwVfpRegister d10 = { 10 }; | 296 const DwVfpRegister d10 = { 10 }; |
| 297 const DwVfpRegister d11 = { 11 }; | 297 const DwVfpRegister d11 = { 11 }; |
| 298 const DwVfpRegister d12 = { 12 }; | 298 const DwVfpRegister d12 = { 12 }; |
| 299 const DwVfpRegister d13 = { 13 }; | 299 const DwVfpRegister d13 = { 13 }; |
| 300 const DwVfpRegister d14 = { 14 }; | 300 const DwVfpRegister d14 = { 14 }; |
| 301 const DwVfpRegister d15 = { 15 }; | 301 const DwVfpRegister d15 = { 15 }; |
| 302 | 302 |
| 303 // Aliases for double registers. | 303 // Aliases for double registers. Defined using #define instead of |
| 304 static const DwVfpRegister& kFirstCalleeSavedDoubleReg = d8; | 304 // "static const DwVfpRegister&" because Clang complains otherwise when a |
| 305 static const DwVfpRegister& kLastCalleeSavedDoubleReg = d15; | 305 // compilation unit that includes this header doesn't use the variables. |
| 306 static const DwVfpRegister& kDoubleRegZero = d14; | 306 #define kFirstCalleeSavedDoubleReg d8 |
| 307 static const DwVfpRegister& kScratchDoubleReg = d15; | 307 #define kLastCalleeSavedDoubleReg d15 |
| 308 #define kDoubleRegZero d14 |
| 309 #define kScratchDoubleReg d15 |
| 308 | 310 |
| 309 | 311 |
| 310 // Coprocessor register | 312 // Coprocessor register |
| 311 struct CRegister { | 313 struct CRegister { |
| 312 bool is_valid() const { return 0 <= code_ && code_ < 16; } | 314 bool is_valid() const { return 0 <= code_ && code_ < 16; } |
| 313 bool is(CRegister creg) const { return code_ == creg.code_; } | 315 bool is(CRegister creg) const { return code_ == creg.code_; } |
| 314 int code() const { | 316 int code() const { |
| 315 ASSERT(is_valid()); | 317 ASSERT(is_valid()); |
| 316 return code_; | 318 return code_; |
| 317 } | 319 } |
| (...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 public: | 1413 public: |
| 1412 explicit EnsureSpace(Assembler* assembler) { | 1414 explicit EnsureSpace(Assembler* assembler) { |
| 1413 assembler->CheckBuffer(); | 1415 assembler->CheckBuffer(); |
| 1414 } | 1416 } |
| 1415 }; | 1417 }; |
| 1416 | 1418 |
| 1417 | 1419 |
| 1418 } } // namespace v8::internal | 1420 } } // namespace v8::internal |
| 1419 | 1421 |
| 1420 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1422 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
| OLD | NEW |