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

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

Issue 23549013: Preserves callee-saved FPU registers on ARM (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 | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/simulator_arm.cc » ('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_ARM_H_ 5 #ifndef VM_CONSTANTS_ARM_H_
6 #define VM_CONSTANTS_ARM_H_ 6 #define VM_CONSTANTS_ARM_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 215
216 // C++ ABI call registers. 216 // C++ ABI call registers.
217 const RegList kAbiArgumentCpuRegs = 217 const RegList kAbiArgumentCpuRegs =
218 (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3); 218 (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3);
219 const RegList kAbiPreservedCpuRegs = 219 const RegList kAbiPreservedCpuRegs =
220 (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) | 220 (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) |
221 (1 << R8) | (1 << R9) | (1 << R10); 221 (1 << R8) | (1 << R9) | (1 << R10);
222 const int kAbiPreservedCpuRegCount = 7; 222 const int kAbiPreservedCpuRegCount = 7;
223 const QRegister kAbiFirstPreservedFpuReg = Q4; 223 const QRegister kAbiFirstPreservedFpuReg = Q4;
224 const QRegister kAbiLastPreservedFpuReg = 224 const QRegister kAbiLastPreservedFpuReg = Q7;
225 static_cast<QRegister>(kNumberOfQRegisters - 1); 225 const int kAbiPreservedFpuRegCount = 4;
226 226
227 // CPU registers available to Dart allocator. 227 // CPU registers available to Dart allocator.
228 const RegList kDartAvailableCpuRegs = 228 const RegList kDartAvailableCpuRegs =
229 (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3) | 229 (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3) |
230 (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) | (1 << R8); 230 (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) | (1 << R8);
231 231
232 // Registers available to Dart that are not preserved by runtime calls. 232 // Registers available to Dart that are not preserved by runtime calls.
233 const RegList kDartVolatileCpuRegs = 233 const RegList kDartVolatileCpuRegs =
234 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; 234 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs;
235 const int kDartVolatileCpuRegCount = 4; 235 const int kDartVolatileCpuRegCount = 4;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } 658 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); }
659 659
660 private: 660 private:
661 DISALLOW_ALLOCATION(); 661 DISALLOW_ALLOCATION();
662 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 662 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
663 }; 663 };
664 664
665 } // namespace dart 665 } // namespace dart
666 666
667 #endif // VM_CONSTANTS_ARM_H_ 667 #endif // VM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698