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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #endif | 126 #endif |
127 kNumberOfOverlappingDRegisters = 16, | 127 kNumberOfOverlappingDRegisters = 16, |
128 kNoDRegister = -1, | 128 kNoDRegister = -1, |
129 }; | 129 }; |
130 | 130 |
131 | 131 |
132 // Architecture independent aliases. | 132 // Architecture independent aliases. |
133 typedef DRegister FpuRegister; | 133 typedef DRegister FpuRegister; |
134 const FpuRegister FpuTMP = D0; | 134 const FpuRegister FpuTMP = D0; |
135 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 135 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
| 136 const FpuRegister kNoFpuRegister = kNoDRegister; |
136 | 137 |
137 | 138 |
138 // Register aliases. | 139 // Register aliases. |
139 const Register TMP = IP; // Used as scratch register by assembler. | 140 const Register TMP = IP; // Used as scratch register by assembler. |
140 const Register CTX = R9; // Caches current context in generated code. | 141 const Register CTX = R9; // Caches current context in generated code. |
141 const Register PP = R10; // Caches object pool pointer in generated code. | 142 const Register PP = R10; // Caches object pool pointer in generated code. |
142 const Register SPREG = SP; // Stack pointer register. | 143 const Register SPREG = SP; // Stack pointer register. |
143 const Register FPREG = FP; // Frame pointer register. | 144 const Register FPREG = FP; // Frame pointer register. |
144 | 145 |
145 | 146 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 564 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
564 | 565 |
565 private: | 566 private: |
566 DISALLOW_ALLOCATION(); | 567 DISALLOW_ALLOCATION(); |
567 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 568 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
568 }; | 569 }; |
569 | 570 |
570 } // namespace dart | 571 } // namespace dart |
571 | 572 |
572 #endif // VM_CONSTANTS_ARM_H_ | 573 #endif // VM_CONSTANTS_ARM_H_ |
OLD | NEW |