| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // Register aliases. | 169 // Register aliases. |
| 170 const Register TMP1 = AT; // Used as scratch register by assembler. | 170 const Register TMP1 = AT; // Used as scratch register by assembler. |
| 171 const Register TMP = TMP1; // Arch independent flow graph compiler needs a | 171 const Register TMP = TMP1; // Arch independent flow graph compiler needs a |
| 172 // Register called TMP. | 172 // Register called TMP. |
| 173 const Register CTX = S6; // Caches current context in generated code. | 173 const Register CTX = S6; // Caches current context in generated code. |
| 174 const Register PP = S7; // Caches object pool pointer in generated code. | 174 const Register PP = S7; // Caches object pool pointer in generated code. |
| 175 const Register SPREG = SP; // Stack pointer register. | 175 const Register SPREG = SP; // Stack pointer register. |
| 176 const Register FPREG = FP; // Frame pointer register. | 176 const Register FPREG = FP; // Frame pointer register. |
| 177 | 177 |
| 178 const Register ICREG = S5; // IC data register. |
| 179 |
| 178 // The code that generates a comparison can be far away from the code that | 180 // The code that generates a comparison can be far away from the code that |
| 179 // generates the branch that uses the result of that comparison. In this case, | 181 // generates the branch that uses the result of that comparison. In this case, |
| 180 // CMPRES is used for the result of the comparison. | 182 // CMPRES is used for the result of the comparison. |
| 181 const Register CMPRES = T9; | 183 const Register CMPRES = T9; |
| 182 | 184 |
| 183 // Exception object is passed in this register to the catch handlers when an | 185 // Exception object is passed in this register to the catch handlers when an |
| 184 // exception is thrown. | 186 // exception is thrown. |
| 185 const Register kExceptionObjectReg = V0; | 187 const Register kExceptionObjectReg = V0; |
| 186 | 188 |
| 187 // Stack trace object is passed in this register to the catch handlers when | 189 // Stack trace object is passed in this register to the catch handlers when |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 #endif // defined(DEBUG) | 592 #endif // defined(DEBUG) |
| 591 | 593 |
| 592 private: | 594 private: |
| 593 DISALLOW_ALLOCATION(); | 595 DISALLOW_ALLOCATION(); |
| 594 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 596 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 595 }; | 597 }; |
| 596 | 598 |
| 597 } // namespace dart | 599 } // namespace dart |
| 598 | 600 |
| 599 #endif // VM_CONSTANTS_MIPS_H_ | 601 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |