| 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_DEOPT_INSTRUCTIONS_H_ | 5 #ifndef VM_DEOPT_INSTRUCTIONS_H_ |
| 6 #define VM_DEOPT_INSTRUCTIONS_H_ | 6 #define VM_DEOPT_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // Represents one deopt instruction, e.g, setup return address, store object, | 217 // Represents one deopt instruction, e.g, setup return address, store object, |
| 218 // store register, etc. The target is defined by instruction's position in | 218 // store register, etc. The target is defined by instruction's position in |
| 219 // the deopt-info array. | 219 // the deopt-info array. |
| 220 class DeoptInstr : public ZoneAllocated { | 220 class DeoptInstr : public ZoneAllocated { |
| 221 public: | 221 public: |
| 222 enum Kind { | 222 enum Kind { |
| 223 kRetAddress, | 223 kRetAddress, |
| 224 kConstant, | 224 kConstant, |
| 225 kRegister, | 225 kRegister, |
| 226 kFpuRegister, | 226 kFpuRegister, |
| 227 kInt64RegisterPair, | |
| 228 kFloat32x4FpuRegister, | 227 kFloat32x4FpuRegister, |
| 229 kFloat64x2FpuRegister, | 228 kFloat64x2FpuRegister, |
| 230 kInt32x4FpuRegister, | 229 kInt32x4FpuRegister, |
| 231 kStackSlot, | 230 kStackSlot, |
| 232 kDoubleStackSlot, | 231 kDoubleStackSlot, |
| 233 kInt64StackSlot, | |
| 234 kInt64StackSlotPair, | |
| 235 kFloat32x4StackSlot, | 232 kFloat32x4StackSlot, |
| 236 kFloat64x2StackSlot, | 233 kFloat64x2StackSlot, |
| 237 kInt32x4StackSlot, | 234 kInt32x4StackSlot, |
| 238 kInt64StackSlotRegister, | 235 // Mints are split into low and high words. Each word can be in a register |
| 236 // or stack slot. Note Mints are only used on 32-bit architectures. |
| 237 kMintRegisterPair, |
| 238 kMintStackSlotPair, |
| 239 kMintStackSlotRegister, |
| 239 kPcMarker, | 240 kPcMarker, |
| 240 kPp, | 241 kPp, |
| 241 kCallerFp, | 242 kCallerFp, |
| 242 kCallerPp, | 243 kCallerPp, |
| 243 kCallerPc, | 244 kCallerPc, |
| 244 kSuffix, | 245 kSuffix, |
| 245 kMaterializedObjectRef, | 246 kMaterializedObjectRef, |
| 246 kMaterializeObject | 247 kMaterializeObject |
| 247 }; | 248 }; |
| 248 | 249 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 DeoptInfo* info, | 397 DeoptInfo* info, |
| 397 Smi* reason); | 398 Smi* reason); |
| 398 | 399 |
| 399 private: | 400 private: |
| 400 static const intptr_t kEntrySize = 3; | 401 static const intptr_t kEntrySize = 3; |
| 401 }; | 402 }; |
| 402 | 403 |
| 403 } // namespace dart | 404 } // namespace dart |
| 404 | 405 |
| 405 #endif // VM_DEOPT_INSTRUCTIONS_H_ | 406 #endif // VM_DEOPT_INSTRUCTIONS_H_ |
| OLD | NEW |