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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
349 // Register aliases. | 349 // Register aliases. |
350 // cp is assumed to be a callee saved register. | 350 // cp is assumed to be a callee saved register. |
351 constexpr Register kRootRegister = s6; | 351 constexpr Register kRootRegister = s6; |
352 constexpr Register cp = s7; | 352 constexpr Register cp = s7; |
353 constexpr Register kLithiumScratchReg = s3; | 353 constexpr Register kLithiumScratchReg = s3; |
354 constexpr Register kLithiumScratchReg2 = s4; | 354 constexpr Register kLithiumScratchReg2 = s4; |
355 constexpr DoubleRegister kLithiumScratchDouble = f30; | 355 constexpr DoubleRegister kLithiumScratchDouble = f30; |
356 constexpr DoubleRegister kDoubleRegZero = f28; | 356 constexpr DoubleRegister kDoubleRegZero = f28; |
357 // Used on mips32r6 for compare operations. | 357 // Used on mips32r6 for compare operations. |
358 constexpr DoubleRegister kDoubleCompareReg = f26; | 358 constexpr DoubleRegister kDoubleCompareReg = f26; |
359 // MSA zero and scratch regs must have the same numbers as FPU zero and scratch | |
ivica.bogosavljevic
2017/04/06 06:26:14
why?
dusan.simicic
2017/04/06 11:20:17
We are using kSimpleFPAliasing register allocation
| |
360 constexpr Simd128Register kSimd128RegZero = w28; | |
361 constexpr Simd128Register kSimd128ScratchReg = w30; | |
359 | 362 |
360 // FPU (coprocessor 1) control registers. | 363 // FPU (coprocessor 1) control registers. |
361 // Currently only FCSR (#31) is implemented. | 364 // Currently only FCSR (#31) is implemented. |
362 struct FPUControlRegister { | 365 struct FPUControlRegister { |
363 bool is_valid() const { return reg_code == kFCSRRegister; } | 366 bool is_valid() const { return reg_code == kFCSRRegister; } |
364 bool is(FPUControlRegister creg) const { return reg_code == creg.reg_code; } | 367 bool is(FPUControlRegister creg) const { return reg_code == creg.reg_code; } |
365 int code() const { | 368 int code() const { |
366 DCHECK(is_valid()); | 369 DCHECK(is_valid()); |
367 return reg_code; | 370 return reg_code; |
368 } | 371 } |
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2199 public: | 2202 public: |
2200 explicit EnsureSpace(Assembler* assembler) { | 2203 explicit EnsureSpace(Assembler* assembler) { |
2201 assembler->CheckBuffer(); | 2204 assembler->CheckBuffer(); |
2202 } | 2205 } |
2203 }; | 2206 }; |
2204 | 2207 |
2205 } // namespace internal | 2208 } // namespace internal |
2206 } // namespace v8 | 2209 } // namespace v8 |
2207 | 2210 |
2208 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 2211 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |