| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_CONSTANTS_MIPS_H_ | 5 #ifndef VM_CONSTANTS_MIPS_H_ |
| 6 #define VM_CONSTANTS_MIPS_H_ | 6 #define VM_CONSTANTS_MIPS_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 D10 = 10, // Preserved. | 148 D10 = 10, // Preserved. |
| 149 D11 = 11, // Preserved. | 149 D11 = 11, // Preserved. |
| 150 D12 = 12, // Preserved. | 150 D12 = 12, // Preserved. |
| 151 D13 = 13, // Preserved. | 151 D13 = 13, // Preserved. |
| 152 D14 = 14, // Preserved. | 152 D14 = 14, // Preserved. |
| 153 D15 = 15, // Preserved. | 153 D15 = 15, // Preserved. |
| 154 kNumberOfDRegisters = 16, | 154 kNumberOfDRegisters = 16, |
| 155 kNoDRegister = -1, | 155 kNoDRegister = -1, |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 static inline FRegister EvenFRegisterOf(DRegister d) { |
| 159 return static_cast<FRegister>(d * 2); |
| 160 } |
| 161 |
| 162 static inline FRegister OddFRegisterOf(DRegister d) { |
| 163 return static_cast<FRegister>((d * 2) + 1); |
| 164 } |
| 165 |
| 158 const DRegister DTMP = D9; | 166 const DRegister DTMP = D9; |
| 159 const FRegister STMP1 = F18; | 167 const FRegister STMP1 = F18; |
| 160 const FRegister STMP2 = F19; | 168 const FRegister STMP2 = F19; |
| 161 | 169 |
| 162 // Architecture independent aliases. | 170 // Architecture independent aliases. |
| 163 typedef DRegister FpuRegister; | 171 typedef DRegister FpuRegister; |
| 164 const FpuRegister FpuTMP = DTMP; | 172 const FpuRegister FpuTMP = DTMP; |
| 165 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 173 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
| 166 const FpuRegister kNoFpuRegister = kNoDRegister; | 174 const FpuRegister kNoFpuRegister = kNoDRegister; |
| 167 | 175 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 #endif // defined(DEBUG) | 599 #endif // defined(DEBUG) |
| 592 | 600 |
| 593 private: | 601 private: |
| 594 DISALLOW_ALLOCATION(); | 602 DISALLOW_ALLOCATION(); |
| 595 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 603 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 596 }; | 604 }; |
| 597 | 605 |
| 598 } // namespace dart | 606 } // namespace dart |
| 599 | 607 |
| 600 #endif // VM_CONSTANTS_MIPS_H_ | 608 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |