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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 const FPURegister f25 = { 25 }; | 311 const FPURegister f25 = { 25 }; |
312 const FPURegister f26 = { 26 }; | 312 const FPURegister f26 = { 26 }; |
313 const FPURegister f27 = { 27 }; | 313 const FPURegister f27 = { 27 }; |
314 const FPURegister f28 = { 28 }; | 314 const FPURegister f28 = { 28 }; |
315 const FPURegister f29 = { 29 }; | 315 const FPURegister f29 = { 29 }; |
316 const FPURegister f30 = { 30 }; | 316 const FPURegister f30 = { 30 }; |
317 const FPURegister f31 = { 31 }; | 317 const FPURegister f31 = { 31 }; |
318 | 318 |
319 // Register aliases. | 319 // Register aliases. |
320 // cp is assumed to be a callee saved register. | 320 // cp is assumed to be a callee saved register. |
321 static const Register& kLithiumScratchReg = s3; // Scratch register. | 321 // Defined using #define instead of "static const Register&" because Clang |
322 static const Register& kLithiumScratchReg2 = s4; // Scratch register. | 322 // complains otherwise when a compilation unit that includes this header |
323 static const Register& kRootRegister = s6; // Roots array pointer. | 323 // doesn't use the variables. |
324 static const Register& cp = s7; // JavaScript context pointer. | 324 #define kRootRegister s6 |
325 static const DoubleRegister& kLithiumScratchDouble = f30; | 325 #define cp s7 |
326 static const FPURegister& kDoubleRegZero = f28; | 326 #define kLithiumScratchReg s3 |
| 327 #define kLithiumScratchReg2 s4 |
| 328 #define kLithiumScratchDouble f30 |
| 329 #define kDoubleRegZero f28 |
327 | 330 |
328 // FPU (coprocessor 1) control registers. | 331 // FPU (coprocessor 1) control registers. |
329 // Currently only FCSR (#31) is implemented. | 332 // Currently only FCSR (#31) is implemented. |
330 struct FPUControlRegister { | 333 struct FPUControlRegister { |
331 bool is_valid() const { return code_ == kFCSRRegister; } | 334 bool is_valid() const { return code_ == kFCSRRegister; } |
332 bool is(FPUControlRegister creg) const { return code_ == creg.code_; } | 335 bool is(FPUControlRegister creg) const { return code_ == creg.code_; } |
333 int code() const { | 336 int code() const { |
334 ASSERT(is_valid()); | 337 ASSERT(is_valid()); |
335 return code_; | 338 return code_; |
336 } | 339 } |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 class EnsureSpace BASE_EMBEDDED { | 1288 class EnsureSpace BASE_EMBEDDED { |
1286 public: | 1289 public: |
1287 explicit EnsureSpace(Assembler* assembler) { | 1290 explicit EnsureSpace(Assembler* assembler) { |
1288 assembler->CheckBuffer(); | 1291 assembler->CheckBuffer(); |
1289 } | 1292 } |
1290 }; | 1293 }; |
1291 | 1294 |
1292 } } // namespace v8::internal | 1295 } } // namespace v8::internal |
1293 | 1296 |
1294 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1297 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |