Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: runtime/vm/constants_mips.h

Issue 14289006: Implements catch on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/exceptions_test.cc » ('j') | runtime/vm/stub_code_mips.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const Register SPREG = SP; // Stack pointer register. 145 const Register SPREG = SP; // Stack pointer register.
146 const Register FPREG = FP; // Frame pointer register. 146 const Register FPREG = FP; // Frame pointer register.
147 147
148 // The code that generates a comparison can be far away from the code that 148 // The code that generates a comparison can be far away from the code that
149 // generates the branch that uses the result of that comparison. In this case, 149 // generates the branch that uses the result of that comparison. In this case,
150 // CMPRES is used for the result of the comparison. 150 // CMPRES is used for the result of the comparison.
151 const Register CMPRES = T8; 151 const Register CMPRES = T8;
152 152
153 // Exception object is passed in this register to the catch handlers when an 153 // Exception object is passed in this register to the catch handlers when an
154 // exception is thrown. 154 // exception is thrown.
155 const Register kExceptionObjectReg = A0; 155 const Register kExceptionObjectReg = V0;
156 156
157 // Stack trace object is passed in this register to the catch handlers when 157 // Stack trace object is passed in this register to the catch handlers when
158 // an exception is thrown. 158 // an exception is thrown.
159 const Register kStackTraceObjectReg = A1; 159 const Register kStackTraceObjectReg = V1;
160 160
161 161
162 typedef uint32_t RegList; 162 typedef uint32_t RegList;
163 const RegList kAllCpuRegistersList = 0xFFFFFFFF; 163 const RegList kAllCpuRegistersList = 0xFFFFFFFF;
164 164
165 165
166 const RegList kAbiArgumentCpuRegs = 166 const RegList kAbiArgumentCpuRegs =
167 (1 << A0) | (1 << A1) | (1 << A2) | (1 << A3); 167 (1 << A0) | (1 << A1) | (1 << A2) | (1 << A3);
168 const RegList kAbiPreservedCpuRegs = 168 const RegList kAbiPreservedCpuRegs =
169 (1 << S0) | (1 << S1) | (1 << S2) | (1 << S3) | 169 (1 << S0) | (1 << S1) | (1 << S2) | (1 << S3) |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } 503 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); }
504 504
505 private: 505 private:
506 DISALLOW_ALLOCATION(); 506 DISALLOW_ALLOCATION();
507 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 507 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
508 }; 508 };
509 509
510 } // namespace dart 510 } // namespace dart
511 511
512 #endif // VM_CONSTANTS_MIPS_H_ 512 #endif // VM_CONSTANTS_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/exceptions_test.cc » ('j') | runtime/vm/stub_code_mips.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698