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

Unified Diff: runtime/vm/constants_arm.h

Issue 12381034: Second codegen test passing on ARM (simulated). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/code_patcher_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/constants_arm.h
===================================================================
--- runtime/vm/constants_arm.h (revision 19404)
+++ runtime/vm/constants_arm.h (working copy)
@@ -151,13 +151,31 @@
const RegList kAllCpuRegistersList = 0xFFFF;
-// C++ ABI call registers
-const RegList kAbiArgumentRegs = (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3);
-const RegList kAbiPreservedRegs = (1 << R4) | (1 << R5) | (1 << R6) |
- (1 << R7) | (1 << R8) | (1 << R9) | (1 << 10);
-const int kAbiPreservedRegCount = 7;
+// C++ ABI call registers.
+const RegList kAbiArgumentCpuRegs =
+ (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3);
+const RegList kAbiPreservedCpuRegs =
+ (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) |
+ (1 << R8) | (1 << R9) | (1 << R10);
+const int kAbiPreservedCpuRegCount = 7;
+const DRegister kAbiFirstPreservedFpuReg = D8;
+const DRegister kAbiLastPreservedFpuReg =
+ static_cast<DRegister>(kNumberOfDRegisters - 1);
+// CPU registers available to Dart allocator.
+const RegList kDartAvailableCpuRegs =
+ (1 << R0) | (1 << R1) | (1 << R2) | (1 << R3) |
+ (1 << R4) | (1 << R5) | (1 << R6) | (1 << R7) | (1 << R8);
+// Registers available to Dart that are not preserved by runtime calls.
+const RegList kDartVolatileCpuRegs =
+ kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs;
+const int kDartVolatileCpuRegCount = 4;
+const DRegister kDartFirstVolatileFpuReg = D0;
+const DRegister kDartLastVolatileFpuReg = D7;
+const int kDartVolatileFpuRegCount = 8;
+
+
// Values for the condition field as defined in section A3.2.
enum Condition {
kNoCondition = -1,
« no previous file with comments | « runtime/vm/code_patcher_arm.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698