| 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 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 typedef DRegister FpuRegister; | 172 typedef DRegister FpuRegister; |
| 173 const FpuRegister FpuTMP = DTMP; | 173 const FpuRegister FpuTMP = DTMP; |
| 174 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 174 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
| 175 const FpuRegister kNoFpuRegister = kNoDRegister; | 175 const FpuRegister kNoFpuRegister = kNoDRegister; |
| 176 | 176 |
| 177 | 177 |
| 178 // Register aliases. | 178 // Register aliases. |
| 179 const Register TMP = AT; // Used as scratch register by assembler. | 179 const Register TMP = AT; // Used as scratch register by assembler. |
| 180 const Register TMP2 = kNoRegister; // No second assembler scratch register. | 180 const Register TMP2 = kNoRegister; // No second assembler scratch register. |
| 181 const Register CTX = S6; // Location of current context at method entry. | 181 const Register CTX = S6; // Location of current context at method entry. |
| 182 const Register CODE_REG = S6; | |
| 183 const Register PP = S7; // Caches object pool pointer in generated code. | 182 const Register PP = S7; // Caches object pool pointer in generated code. |
| 184 const Register SPREG = SP; // Stack pointer register. | 183 const Register SPREG = SP; // Stack pointer register. |
| 185 const Register FPREG = FP; // Frame pointer register. | 184 const Register FPREG = FP; // Frame pointer register. |
| 186 const Register LRREG = RA; // Link register. | 185 const Register LRREG = RA; // Link register. |
| 187 const Register ICREG = S5; // IC data register. | 186 const Register ICREG = S5; // IC data register. |
| 188 const Register ARGS_DESC_REG = S4; | 187 const Register ARGS_DESC_REG = S4; |
| 189 const Register THR = S3; // Caches current thread in generated code. | 188 const Register THR = S3; // Caches current thread in generated code. |
| 190 | 189 |
| 191 // The code that generates a comparison can be far away from the code that | 190 // The code that generates a comparison can be far away from the code that |
| 192 // generates the branch that uses the result of that comparison. In this case, | 191 // generates the branch that uses the result of that comparison. In this case, |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 #endif // defined(DEBUG) | 640 #endif // defined(DEBUG) |
| 642 | 641 |
| 643 private: | 642 private: |
| 644 DISALLOW_ALLOCATION(); | 643 DISALLOW_ALLOCATION(); |
| 645 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 644 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 646 }; | 645 }; |
| 647 | 646 |
| 648 } // namespace dart | 647 } // namespace dart |
| 649 | 648 |
| 650 #endif // VM_CONSTANTS_MIPS_H_ | 649 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |