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" |
11 #include "vm/deferred_objects.h" | 11 #include "vm/deferred_objects.h" |
12 #include "vm/growable_array.h" | 12 #include "vm/growable_array.h" |
13 #include "vm/locations.h" | 13 #include "vm/locations.h" |
14 #include "vm/object.h" | 14 #include "vm/object.h" |
15 #include "vm/thread.h" | 15 #include "vm/thread.h" |
16 | 16 |
17 namespace dart { | 17 namespace dart { |
18 | 18 |
19 class Location; | 19 class Location; |
20 class Value; | 20 class Value; |
21 class MaterializeObjectInstr; | 21 class MaterializeObjectInstr; |
22 class StackFrame; | 22 class StackFrame; |
| 23 class TimelineEvent; |
23 | 24 |
24 // Holds all data relevant for execution of deoptimization instructions. | 25 // Holds all data relevant for execution of deoptimization instructions. |
25 class DeoptContext { | 26 class DeoptContext { |
26 public: | 27 public: |
27 enum DestFrameOptions { | 28 enum DestFrameOptions { |
28 kDestIsOriginalFrame, // Replace the original frame with deopt frame. | 29 kDestIsOriginalFrame, // Replace the original frame with deopt frame. |
29 kDestIsAllocated // Write deopt frame to a buffer. | 30 kDestIsAllocated // Write deopt frame to a buffer. |
30 }; | 31 }; |
31 | 32 |
32 DeoptContext(const StackFrame* frame, | 33 DeoptContext(const StackFrame* frame, |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 bool source_frame_is_allocated_; | 214 bool source_frame_is_allocated_; |
214 intptr_t* source_frame_; | 215 intptr_t* source_frame_; |
215 intptr_t source_frame_size_; | 216 intptr_t source_frame_size_; |
216 intptr_t* cpu_registers_; | 217 intptr_t* cpu_registers_; |
217 fpu_register_t* fpu_registers_; | 218 fpu_register_t* fpu_registers_; |
218 intptr_t num_args_; | 219 intptr_t num_args_; |
219 ICData::DeoptReasonId deopt_reason_; | 220 ICData::DeoptReasonId deopt_reason_; |
220 uint32_t deopt_flags_; | 221 uint32_t deopt_flags_; |
221 intptr_t caller_fp_; | 222 intptr_t caller_fp_; |
222 Thread* thread_; | 223 Thread* thread_; |
| 224 TimelineEvent* timeline_event_; |
223 | 225 |
224 DeferredSlot* deferred_slots_; | 226 DeferredSlot* deferred_slots_; |
225 | 227 |
226 intptr_t deferred_objects_count_; | 228 intptr_t deferred_objects_count_; |
227 DeferredObject** deferred_objects_; | 229 DeferredObject** deferred_objects_; |
228 | 230 |
229 DISALLOW_COPY_AND_ASSIGN(DeoptContext); | 231 DISALLOW_COPY_AND_ASSIGN(DeoptContext); |
230 }; | 232 }; |
231 | 233 |
232 | 234 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 class ReasonField : public BitField<ICData::DeoptReasonId, 0, 8> { }; | 535 class ReasonField : public BitField<ICData::DeoptReasonId, 0, 8> { }; |
534 class FlagsField : public BitField<uint32_t, 8, 8> { }; | 536 class FlagsField : public BitField<uint32_t, 8, 8> { }; |
535 | 537 |
536 private: | 538 private: |
537 static const intptr_t kEntrySize = 3; | 539 static const intptr_t kEntrySize = 3; |
538 }; | 540 }; |
539 | 541 |
540 } // namespace dart | 542 } // namespace dart |
541 | 543 |
542 #endif // VM_DEOPT_INSTRUCTIONS_H_ | 544 #endif // VM_DEOPT_INSTRUCTIONS_H_ |
OLD | NEW |