| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 // Architecture independent aliases. | 170 // Architecture independent aliases. |
| 171 typedef DRegister FpuRegister; | 171 typedef DRegister FpuRegister; |
| 172 const FpuRegister FpuTMP = DTMP; | 172 const FpuRegister FpuTMP = DTMP; |
| 173 const int kNumberOfFpuRegisters = kNumberOfDRegisters; | 173 const int kNumberOfFpuRegisters = kNumberOfDRegisters; |
| 174 const FpuRegister kNoFpuRegister = kNoDRegister; | 174 const FpuRegister kNoFpuRegister = kNoDRegister; |
| 175 | 175 |
| 176 | 176 |
| 177 // Register aliases. | 177 // Register aliases. |
| 178 const Register TMP = AT; // Used as scratch register by assembler. | 178 const Register TMP = AT; // Used as scratch register by assembler. |
| 179 const Register TMP2 = kNoRegister; // No second assembler scratch register. |
| 179 const Register CTX = S6; // Caches current context in generated code. | 180 const Register CTX = S6; // Caches current context in generated code. |
| 180 const Register PP = S7; // Caches object pool pointer in generated code. | 181 const Register PP = S7; // Caches object pool pointer in generated code. |
| 181 const Register SPREG = SP; // Stack pointer register. | 182 const Register SPREG = SP; // Stack pointer register. |
| 182 const Register FPREG = FP; // Frame pointer register. | 183 const Register FPREG = FP; // Frame pointer register. |
| 183 const Register ICREG = S5; // IC data register. | 184 const Register ICREG = S5; // IC data register. |
| 184 | 185 |
| 185 // The code that generates a comparison can be far away from the code that | 186 // The code that generates a comparison can be far away from the code that |
| 186 // generates the branch that uses the result of that comparison. In this case, | 187 // generates the branch that uses the result of that comparison. In this case, |
| 187 // CMPRES1 and CMPRES2 are used for the results of the comparison. We need two | 188 // CMPRES1 and CMPRES2 are used for the results of the comparison. We need two |
| 188 // since TMP is clobbered by a far branch. | 189 // since TMP is clobbered by a far branch. |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 #endif // defined(DEBUG) | 613 #endif // defined(DEBUG) |
| 613 | 614 |
| 614 private: | 615 private: |
| 615 DISALLOW_ALLOCATION(); | 616 DISALLOW_ALLOCATION(); |
| 616 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 617 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 617 }; | 618 }; |
| 618 | 619 |
| 619 } // namespace dart | 620 } // namespace dart |
| 620 | 621 |
| 621 #endif // VM_CONSTANTS_MIPS_H_ | 622 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |