| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64_H_ | 5 #ifndef VM_CONSTANTS_ARM64_H_ |
| 6 #define VM_CONSTANTS_ARM64_H_ | 6 #define VM_CONSTANTS_ARM64_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 (1 << R18) | (1 << R19) | (1 << R20) | (1 << R21) | | 159 (1 << R18) | (1 << R19) | (1 << R20) | (1 << R21) | |
| 160 (1 << R22) | (1 << R23) | (1 << R24) | (1 << R25) | | 160 (1 << R22) | (1 << R23) | (1 << R24) | (1 << R25) | |
| 161 (1 << R26); | 161 (1 << R26); |
| 162 | 162 |
| 163 // Registers available to Dart that are not preserved by runtime calls. | 163 // Registers available to Dart that are not preserved by runtime calls. |
| 164 const RegList kDartVolatileCpuRegs = | 164 const RegList kDartVolatileCpuRegs = |
| 165 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; | 165 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; |
| 166 const Register kDartFirstVolatileCpuReg = R0; | 166 const Register kDartFirstVolatileCpuReg = R0; |
| 167 const Register kDartLastVolatileCpuReg = R18; | 167 const Register kDartLastVolatileCpuReg = R18; |
| 168 const int kDartVolatileCpuRegCount = 17; // Excluding R16 and R17. | 168 const int kDartVolatileCpuRegCount = 17; // Excluding R16 and R17. |
| 169 const VRegister kDartFirstVolatileFpuReg = V0; | 169 const int kDartVolatileFpuRegCount = 24; |
| 170 const VRegister kDartLastVolatileFpuReg = V7; | |
| 171 const int kDartVolatileFpuRegCount = 8; | |
| 172 | 170 |
| 173 static inline Register ConcreteRegister(Register r) { | 171 static inline Register ConcreteRegister(Register r) { |
| 174 return ((r == ZR) || (r == SP)) ? R31 : r; | 172 return ((r == ZR) || (r == SP)) ? R31 : r; |
| 175 } | 173 } |
| 176 | 174 |
| 177 // Values for the condition field as defined in section A3.2. | 175 // Values for the condition field as defined in section A3.2. |
| 178 enum Condition { | 176 enum Condition { |
| 179 kNoCondition = -1, | 177 kNoCondition = -1, |
| 180 EQ = 0, // equal | 178 EQ = 0, // equal |
| 181 NE = 1, // not equal | 179 NE = 1, // not equal |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 866 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 869 | 867 |
| 870 private: | 868 private: |
| 871 DISALLOW_ALLOCATION(); | 869 DISALLOW_ALLOCATION(); |
| 872 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 870 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 873 }; | 871 }; |
| 874 | 872 |
| 875 } // namespace dart | 873 } // namespace dart |
| 876 | 874 |
| 877 #endif // VM_CONSTANTS_ARM64_H_ | 875 #endif // VM_CONSTANTS_ARM64_H_ |
| OLD | NEW |