| 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 RUNTIME_VM_CONSTANTS_ARM_H_ | 5 #ifndef RUNTIME_VM_CONSTANTS_ARM_H_ |
| 6 #define RUNTIME_VM_CONSTANTS_ARM_H_ | 6 #define RUNTIME_VM_CONSTANTS_ARM_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 | 10 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 #if defined(VFPv3_D32) | 253 #if defined(VFPv3_D32) |
| 254 ASSERT(d < D16); | 254 ASSERT(d < D16); |
| 255 #endif | 255 #endif |
| 256 return static_cast<SRegister>((d * 2) + 1); | 256 return static_cast<SRegister>((d * 2) + 1); |
| 257 } | 257 } |
| 258 | 258 |
| 259 | 259 |
| 260 // Register aliases for floating point scratch registers. | 260 // Register aliases for floating point scratch registers. |
| 261 const QRegister QTMP = Q7; // Overlaps with DTMP, STMP. | 261 const QRegister QTMP = Q7; // Overlaps with DTMP, STMP. |
| 262 const DRegister DTMP = EvenDRegisterOf(QTMP); // Overlaps with STMP. | 262 const DRegister DTMP = EvenDRegisterOf(QTMP); // Overlaps with STMP. |
| 263 const SRegister STMP = EvenSRegisterOf(DTMP); | 263 const SRegister STMP DART_USED = EvenSRegisterOf(DTMP); |
| 264 | 264 |
| 265 // Architecture independent aliases. | 265 // Architecture independent aliases. |
| 266 typedef QRegister FpuRegister; | 266 typedef QRegister FpuRegister; |
| 267 | 267 |
| 268 const FpuRegister FpuTMP = QTMP; | 268 const FpuRegister FpuTMP = QTMP; |
| 269 const int kNumberOfFpuRegisters = kNumberOfQRegisters; | 269 const int kNumberOfFpuRegisters = kNumberOfQRegisters; |
| 270 const FpuRegister kNoFpuRegister = kNoQRegister; | 270 const FpuRegister kNoFpuRegister = kNoQRegister; |
| 271 | 271 |
| 272 // Register aliases. | 272 // Register aliases. |
| 273 const Register TMP = IP; // Used as scratch register by assembler. | 273 const Register TMP = IP; // Used as scratch register by assembler. |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 757 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 758 | 758 |
| 759 private: | 759 private: |
| 760 DISALLOW_ALLOCATION(); | 760 DISALLOW_ALLOCATION(); |
| 761 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 761 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 762 }; | 762 }; |
| 763 | 763 |
| 764 } // namespace dart | 764 } // namespace dart |
| 765 | 765 |
| 766 #endif // RUNTIME_VM_CONSTANTS_ARM_H_ | 766 #endif // RUNTIME_VM_CONSTANTS_ARM_H_ |
| OLD | NEW |