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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 // Registers available to Dart that are not preserved by runtime calls. | 172 // Registers available to Dart that are not preserved by runtime calls. |
173 const RegList kDartVolatileCpuRegs = | 173 const RegList kDartVolatileCpuRegs = |
174 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; | 174 kDartAvailableCpuRegs & ~kAbiPreservedCpuRegs; |
175 const int kDartVolatileCpuRegCount = 4; | 175 const int kDartVolatileCpuRegCount = 4; |
176 const DRegister kDartFirstVolatileFpuReg = D0; | 176 const DRegister kDartFirstVolatileFpuReg = D0; |
177 const DRegister kDartLastVolatileFpuReg = D7; | 177 const DRegister kDartLastVolatileFpuReg = D7; |
178 const int kDartVolatileFpuRegCount = 8; | 178 const int kDartVolatileFpuRegCount = 8; |
179 | 179 |
180 | 180 |
| 181 // Dart stack frame layout. |
| 182 static const int kLastParamSlotIndex = 3; |
| 183 static const int kFirstLocalSlotIndex = -2; |
| 184 |
| 185 |
181 // Values for the condition field as defined in section A3.2. | 186 // Values for the condition field as defined in section A3.2. |
182 enum Condition { | 187 enum Condition { |
183 kNoCondition = -1, | 188 kNoCondition = -1, |
184 EQ = 0, // equal | 189 EQ = 0, // equal |
185 NE = 1, // not equal | 190 NE = 1, // not equal |
186 CS = 2, // carry set/unsigned higher or same | 191 CS = 2, // carry set/unsigned higher or same |
187 CC = 3, // carry clear/unsigned lower | 192 CC = 3, // carry clear/unsigned lower |
188 MI = 4, // minus/negative | 193 MI = 4, // minus/negative |
189 PL = 5, // plus/positive or zero | 194 PL = 5, // plus/positive or zero |
190 VS = 6, // overflow | 195 VS = 6, // overflow |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 563 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
559 | 564 |
560 private: | 565 private: |
561 DISALLOW_ALLOCATION(); | 566 DISALLOW_ALLOCATION(); |
562 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 567 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
563 }; | 568 }; |
564 | 569 |
565 } // namespace dart | 570 } // namespace dart |
566 | 571 |
567 #endif // VM_CONSTANTS_ARM_H_ | 572 #endif // VM_CONSTANTS_ARM_H_ |
OLD | NEW |