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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // cp is assumed to be a callee saved register. | 316 // cp is assumed to be a callee saved register. |
317 // Defined using #define instead of "static const Register&" because Clang | 317 // Defined using #define instead of "static const Register&" because Clang |
318 // complains otherwise when a compilation unit that includes this header | 318 // complains otherwise when a compilation unit that includes this header |
319 // doesn't use the variables. | 319 // doesn't use the variables. |
320 #define kRootRegister s6 | 320 #define kRootRegister s6 |
321 #define cp s7 | 321 #define cp s7 |
322 #define kLithiumScratchReg s3 | 322 #define kLithiumScratchReg s3 |
323 #define kLithiumScratchReg2 s4 | 323 #define kLithiumScratchReg2 s4 |
324 #define kLithiumScratchDouble f30 | 324 #define kLithiumScratchDouble f30 |
325 #define kDoubleRegZero f28 | 325 #define kDoubleRegZero f28 |
| 326 // Used on mips64r6 for compare operations. |
| 327 #define kDoubleCompareReg f31 |
326 | 328 |
327 // FPU (coprocessor 1) control registers. | 329 // FPU (coprocessor 1) control registers. |
328 // Currently only FCSR (#31) is implemented. | 330 // Currently only FCSR (#31) is implemented. |
329 struct FPUControlRegister { | 331 struct FPUControlRegister { |
330 bool is_valid() const { return code_ == kFCSRRegister; } | 332 bool is_valid() const { return code_ == kFCSRRegister; } |
331 bool is(FPUControlRegister creg) const { return code_ == creg.code_; } | 333 bool is(FPUControlRegister creg) const { return code_ == creg.code_; } |
332 int code() const { | 334 int code() const { |
333 DCHECK(is_valid()); | 335 DCHECK(is_valid()); |
334 return code_; | 336 return code_; |
335 } | 337 } |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 class EnsureSpace BASE_EMBEDDED { | 1414 class EnsureSpace BASE_EMBEDDED { |
1413 public: | 1415 public: |
1414 explicit EnsureSpace(Assembler* assembler) { | 1416 explicit EnsureSpace(Assembler* assembler) { |
1415 assembler->CheckBuffer(); | 1417 assembler->CheckBuffer(); |
1416 } | 1418 } |
1417 }; | 1419 }; |
1418 | 1420 |
1419 } } // namespace v8::internal | 1421 } } // namespace v8::internal |
1420 | 1422 |
1421 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1423 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |