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

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

Issue 14812005: Cleanup deoptimization code to make it architecture independent (in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
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 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; 194 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs;
195 const int kDartVolatileCpuRegCount = 14; 195 const int kDartVolatileCpuRegCount = 14;
196 const Register kDartFirstVolatileCpuReg = R2; 196 const Register kDartFirstVolatileCpuReg = R2;
197 const Register kDartLastVolatileCpuReg = R15; 197 const Register kDartLastVolatileCpuReg = R15;
198 198
199 // FPU registers 0 - 19 are not preserved across calls. 199 // FPU registers 0 - 19 are not preserved across calls.
200 const FRegister kDartFirstVolatileFpuReg = F0; 200 const FRegister kDartFirstVolatileFpuReg = F0;
201 const FRegister kDartLastVolatileFpuReg = F19; 201 const FRegister kDartLastVolatileFpuReg = F19;
202 const int kDartVolatileFpuRegCount = 20; 202 const int kDartVolatileFpuRegCount = 20;
203 203
204
205 // TODO(regis): Move these constants to stack_frame_mips.h.
204 // Dart stack frame layout. 206 // Dart stack frame layout.
205 static const int kLastParamSlotIndex = 3; 207 static const int kLastParamSlotIndex = 3; // From fp.
206 static const int kFirstLocalSlotIndex = -2; 208 static const int kFirstLocalSlotIndex = -2; // From fp.
209 static const int kPcSlotIndexFromSp = -2;
207 210
208 211
209 // Values for the condition field. 212 // Values for the condition field.
210 // There is no condition field on MIPS, but Conditions are used and passed 213 // There is no condition field on MIPS, but Conditions are used and passed
211 // around by the intermediate language, so we need them here, too. 214 // around by the intermediate language, so we need them here, too.
212 enum Condition { 215 enum Condition {
213 EQ, // equal 216 EQ, // equal
214 NE, // not equal 217 NE, // not equal
215 GT, // greater than 218 GT, // greater than
216 GE, // greater equal 219 GE, // greater equal
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 #endif // defined(DEBUG) 548 #endif // defined(DEBUG)
546 549
547 private: 550 private:
548 DISALLOW_ALLOCATION(); 551 DISALLOW_ALLOCATION();
549 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 552 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
550 }; 553 };
551 554
552 } // namespace dart 555 } // namespace dart
553 556
554 #endif // VM_CONSTANTS_MIPS_H_ 557 #endif // VM_CONSTANTS_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698