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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const Register TMP2 = kNoRegister; // No second assembler scratch register. | 179 const Register TMP2 = kNoRegister; // No second assembler scratch register. |
180 const Register CTX = S6; // Location of current context at method entry. | 180 const Register CTX = S6; // Location of current context at method entry. |
181 const Register CODE_REG = S6; | 181 const Register CODE_REG = S6; |
182 const Register PP = S7; // Caches object pool pointer in generated code. | 182 const Register PP = S7; // Caches object pool pointer in generated code. |
183 const Register SPREG = SP; // Stack pointer register. | 183 const Register SPREG = SP; // Stack pointer register. |
184 const Register FPREG = FP; // Frame pointer register. | 184 const Register FPREG = FP; // Frame pointer register. |
185 const Register LRREG = RA; // Link register. | 185 const Register LRREG = RA; // Link register. |
186 const Register ICREG = S5; // IC data register. | 186 const Register ICREG = S5; // IC data register. |
187 const Register ARGS_DESC_REG = S4; | 187 const Register ARGS_DESC_REG = S4; |
188 const Register THR = S3; // Caches current thread in generated code. | 188 const Register THR = S3; // Caches current thread in generated code. |
189 | 189 const Register CALLEE_SAVED_TEMP = S5; |
190 | 190 |
191 // The code that generates a comparison can be far away from the code that | 191 // 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, | 192 // generates the branch that uses the result of that comparison. In this case, |
193 // CMPRES1 and CMPRES2 are used for the results of the comparison. We need two | 193 // CMPRES1 and CMPRES2 are used for the results of the comparison. We need two |
194 // since TMP is clobbered by a far branch. | 194 // since TMP is clobbered by a far branch. |
195 const Register CMPRES1 = T8; | 195 const Register CMPRES1 = T8; |
196 const Register CMPRES2 = T9; | 196 const Register CMPRES2 = T9; |
197 | 197 |
198 // Exception object is passed in this register to the catch handlers when an | 198 // Exception object is passed in this register to the catch handlers when an |
199 // exception is thrown. | 199 // exception is thrown. |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 #endif // defined(DEBUG) | 652 #endif // defined(DEBUG) |
653 | 653 |
654 private: | 654 private: |
655 DISALLOW_ALLOCATION(); | 655 DISALLOW_ALLOCATION(); |
656 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 656 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
657 }; | 657 }; |
658 | 658 |
659 } // namespace dart | 659 } // namespace dart |
660 | 660 |
661 #endif // VM_CONSTANTS_MIPS_H_ | 661 #endif // VM_CONSTANTS_MIPS_H_ |
OLD | NEW |