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_ARM_H_ | 5 #ifndef VM_CONSTANTS_ARM_H_ |
6 #define VM_CONSTANTS_ARM_H_ | 6 #define VM_CONSTANTS_ARM_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 D30 = 30, | 123 D30 = 30, |
124 D31 = 31, | 124 D31 = 31, |
125 kNumberOfDRegisters = 32, | 125 kNumberOfDRegisters = 32, |
126 #endif | 126 #endif |
127 kNumberOfOverlappingDRegisters = 16, | 127 kNumberOfOverlappingDRegisters = 16, |
128 kNoDRegister = -1, | 128 kNoDRegister = -1, |
129 }; | 129 }; |
130 | 130 |
131 | 131 |
132 // Register aliases for floating point scratch registers. | 132 // Register aliases for floating point scratch registers. |
133 const DRegister DTMP = D0; // Overlaps with STMP. | 133 const DRegister DTMP = D15; // Overlaps with STMP. |
134 const SRegister STMP = S0; | 134 const SRegister STMP = S30; |
135 | 135 |
136 // Architecture independent aliases. | 136 // Architecture independent aliases. |
137 typedef DRegister FpuRegister; | 137 typedef DRegister FpuRegister; |
138 const FpuRegister FpuTMP = DTMP; | 138 const FpuRegister FpuTMP = DTMP; |
139 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 139 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
140 const FpuRegister kNoFpuRegister = kNoDRegister; | 140 const FpuRegister kNoFpuRegister = kNoDRegister; |
141 | 141 |
142 // Register aliases. | 142 // Register aliases. |
143 const Register TMP = IP; // Used as scratch register by assembler. | 143 const Register TMP = IP; // Used as scratch register by assembler. |
144 const Register CTX = R9; // Caches current context in generated code. | 144 const Register CTX = R9; // Caches current context in generated code. |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 581 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
582 | 582 |
583 private: | 583 private: |
584 DISALLOW_ALLOCATION(); | 584 DISALLOW_ALLOCATION(); |
585 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 585 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
586 }; | 586 }; |
587 | 587 |
588 } // namespace dart | 588 } // namespace dart |
589 | 589 |
590 #endif // VM_CONSTANTS_ARM_H_ | 590 #endif // VM_CONSTANTS_ARM_H_ |
OLD | NEW |