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 namespace dart { | 8 namespace dart { |
9 | 9 |
10 enum Register { | 10 enum Register { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 }; | 127 }; |
128 | 128 |
129 | 129 |
130 // Architecture independent aliases. | 130 // Architecture independent aliases. |
131 typedef FRegister FpuRegister; | 131 typedef FRegister FpuRegister; |
132 const FpuRegister FpuTMP = F0; | 132 const FpuRegister FpuTMP = F0; |
133 const int kNumberOfFpuRegisters = kNumberOfFRegisters; | 133 const int kNumberOfFpuRegisters = kNumberOfFRegisters; |
134 | 134 |
135 | 135 |
136 // Register aliases. | 136 // Register aliases. |
137 const Register TMP = AT; // Used as scratch register by assembler. | 137 const Register TMP1 = AT; // Used as scratch register by assembler. |
| 138 const Register TMP2 = T9; // Used as scratch register by assembler. |
| 139 const Register TMP = TMP1; // Arch independent flow graph compiler needs a |
| 140 // Register called TMP. |
138 const Register CTX = S6; // Caches current context in generated code. | 141 const Register CTX = S6; // Caches current context in generated code. |
139 const Register PP = S7; // Caches object pool pointer in generated code. | 142 const Register PP = S7; // Caches object pool pointer in generated code. |
140 const Register SPREG = SP; // Stack pointer register. | 143 const Register SPREG = SP; // Stack pointer register. |
141 const Register FPREG = FP; // Frame pointer register. | 144 const Register FPREG = FP; // Frame pointer register. |
142 | 145 |
143 | 146 |
144 typedef uint32_t RegList; | 147 typedef uint32_t RegList; |
145 const RegList kAllCpuRegistersList = 0xFFFFFFFF; | 148 const RegList kAllCpuRegistersList = 0xFFFFFFFF; |
146 | 149 |
147 | 150 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 400 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
398 | 401 |
399 private: | 402 private: |
400 DISALLOW_ALLOCATION(); | 403 DISALLOW_ALLOCATION(); |
401 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 404 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
402 }; | 405 }; |
403 | 406 |
404 } // namespace dart | 407 } // namespace dart |
405 | 408 |
406 #endif // VM_CONSTANTS_MIPS_H_ | 409 #endif // VM_CONSTANTS_MIPS_H_ |
OLD | NEW |