Chromium Code Reviews| 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 OddFRegisterOf(DRegister d) { | |
|
regis
2013/07/22 20:55:11
Implementing only OddFRegisterOf is ... odd.
Why n
srdjan
2013/07/22 21:10:16
Done.
| |
| 159 return static_cast<FRegister>((d * 2) + 1); | |
| 160 } | |
| 161 | |
| 158 const DRegister DTMP = D9; | 162 const DRegister DTMP = D9; |
| 159 const FRegister STMP1 = F18; | 163 const FRegister STMP1 = F18; |
| 160 const FRegister STMP2 = F19; | 164 const FRegister STMP2 = F19; |
| 161 | 165 |
| 162 // Architecture independent aliases. | 166 // Architecture independent aliases. |
| 163 typedef DRegister FpuRegister; | 167 typedef DRegister FpuRegister; |
| 164 const FpuRegister FpuTMP = DTMP; | 168 const FpuRegister FpuTMP = DTMP; |
| 165 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 169 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
| 166 const FpuRegister kNoFpuRegister = kNoDRegister; | 170 const FpuRegister kNoFpuRegister = kNoDRegister; |
| 167 | 171 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 591 #endif // defined(DEBUG) | 595 #endif // defined(DEBUG) |
| 592 | 596 |
| 593 private: | 597 private: |
| 594 DISALLOW_ALLOCATION(); | 598 DISALLOW_ALLOCATION(); |
| 595 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 599 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 596 }; | 600 }; |
| 597 | 601 |
| 598 } // namespace dart | 602 } // namespace dart |
| 599 | 603 |
| 600 #endif // VM_CONSTANTS_MIPS_H_ | 604 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |