| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |