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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 F31 = 31, | 124 F31 = 31, |
125 kNumberOfFRegisters = 32, | 125 kNumberOfFRegisters = 32, |
126 kNoFRegister = -1, | 126 kNoFRegister = -1, |
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 const FpuRegister kNoFpuRegister = kNoFRegister; |
134 | 135 |
135 | 136 |
136 // Register aliases. | 137 // Register aliases. |
137 const Register TMP1 = AT; // Used as scratch register by assembler. | 138 const Register TMP1 = AT; // Used as scratch register by assembler. |
138 const Register TMP2 = T9; // Used as scratch register by assembler. | 139 const Register TMP2 = T9; // Used as scratch register by assembler. |
139 const Register TMP = TMP1; // Arch independent flow graph compiler needs a | 140 const Register TMP = TMP1; // Arch independent flow graph compiler needs a |
140 // Register called TMP. | 141 // Register called TMP. |
141 const Register CTX = S6; // Caches current context in generated code. | 142 const Register CTX = S6; // Caches current context in generated code. |
142 const Register PP = S7; // Caches object pool pointer in generated code. | 143 const Register PP = S7; // Caches object pool pointer in generated code. |
143 const Register SPREG = SP; // Stack pointer register. | 144 const Register SPREG = SP; // Stack pointer register. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 401 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
401 | 402 |
402 private: | 403 private: |
403 DISALLOW_ALLOCATION(); | 404 DISALLOW_ALLOCATION(); |
404 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 405 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
405 }; | 406 }; |
406 | 407 |
407 } // namespace dart | 408 } // namespace dart |
408 | 409 |
409 #endif // VM_CONSTANTS_MIPS_H_ | 410 #endif // VM_CONSTANTS_MIPS_H_ |
OLD | NEW |