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

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

Issue 23671003: Saves callee-saved fpu registers on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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/stack_frame_mips.h » ('j') | no next file with comments »
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 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 (1 << A0) | (1 << A1) | (1 << A2) | (1 << A3); 209 (1 << A0) | (1 << A1) | (1 << A2) | (1 << A3);
210 const RegList kAbiPreservedCpuRegs = 210 const RegList kAbiPreservedCpuRegs =
211 (1 << S0) | (1 << S1) | (1 << S2) | (1 << S3) | 211 (1 << S0) | (1 << S1) | (1 << S2) | (1 << S3) |
212 (1 << S4) | (1 << S5) | (1 << S6) | (1 << S7); 212 (1 << S4) | (1 << S5) | (1 << S6) | (1 << S7);
213 const int kAbiPreservedCpuRegCount = 8; 213 const int kAbiPreservedCpuRegCount = 8;
214 214
215 // FPU registers 20 - 31 are preserved across calls. 215 // FPU registers 20 - 31 are preserved across calls.
216 const FRegister kAbiFirstPreservedFpuReg = F20; 216 const FRegister kAbiFirstPreservedFpuReg = F20;
217 const FRegister kAbiLastPreservedFpuReg = 217 const FRegister kAbiLastPreservedFpuReg =
218 static_cast<FRegister>(kNumberOfFRegisters - 1); 218 static_cast<FRegister>(kNumberOfFRegisters - 1);
219 const int kAbiPreservedFpuRegCount = 12;
219 220
220 // CPU registers available to Dart allocator. 221 // CPU registers available to Dart allocator.
221 const RegList kDartAvailableCpuRegs = 222 const RegList kDartAvailableCpuRegs =
222 (1 << R2) | (1 << R3) | (1 << R4) | (1 << R5) | 223 (1 << R2) | (1 << R3) | (1 << R4) | (1 << R5) |
223 (1 << R6) | (1 << R7) | (1 << R8) | (1 << R9) | 224 (1 << R6) | (1 << R7) | (1 << R8) | (1 << R9) |
224 (1 << R10) | (1 << R11) | (1 << R12) | (1 << R13) | 225 (1 << R10) | (1 << R11) | (1 << R12) | (1 << R13) |
225 (1 << R14) | (1 << R15) | (1 << R16) | (1 << R17) | 226 (1 << R14) | (1 << R15) | (1 << R16) | (1 << R17) |
226 (1 << R18) | (1 << R19) | (1 << R20) | (1 << R21); 227 (1 << R18) | (1 << R19) | (1 << R20) | (1 << R21);
227 const RegList kDartVolatileCpuRegs = 228 const RegList kDartVolatileCpuRegs =
228 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; 229 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs;
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 #endif // defined(DEBUG) 615 #endif // defined(DEBUG)
615 616
616 private: 617 private:
617 DISALLOW_ALLOCATION(); 618 DISALLOW_ALLOCATION();
618 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 619 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
619 }; 620 };
620 621
621 } // namespace dart 622 } // namespace dart
622 623
623 #endif // VM_CONSTANTS_MIPS_H_ 624 #endif // VM_CONSTANTS_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/stack_frame_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698