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_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 return object_id_ring_; | 566 return object_id_ring_; |
567 } | 567 } |
568 | 568 |
569 void set_trace_buffer(TraceBuffer* buffer) { | 569 void set_trace_buffer(TraceBuffer* buffer) { |
570 trace_buffer_ = buffer; | 570 trace_buffer_ = buffer; |
571 } | 571 } |
572 TraceBuffer* trace_buffer() { | 572 TraceBuffer* trace_buffer() { |
573 return trace_buffer_; | 573 return trace_buffer_; |
574 } | 574 } |
575 | 575 |
576 void SetTimelineEventRecorder(TimelineEventRecorder* timeline_event_recorder); | |
577 | |
578 TimelineEventRecorder* timeline_event_recorder() const { | |
579 return timeline_event_recorder_; | |
580 } | |
581 | |
582 void RemoveTimelineEventRecorder(); | |
583 | |
584 DeoptContext* deopt_context() const { return deopt_context_; } | 576 DeoptContext* deopt_context() const { return deopt_context_; } |
585 void set_deopt_context(DeoptContext* value) { | 577 void set_deopt_context(DeoptContext* value) { |
586 ASSERT(value == NULL || deopt_context_ == NULL); | 578 ASSERT(value == NULL || deopt_context_ == NULL); |
587 deopt_context_ = value; | 579 deopt_context_ = value; |
588 } | 580 } |
589 | 581 |
590 int32_t edge_counter_increment_size() const { | 582 int32_t edge_counter_increment_size() const { |
591 return edge_counter_increment_size_; | 583 return edge_counter_increment_size_; |
592 } | 584 } |
593 void set_edge_counter_increment_size(int32_t size) { | 585 void set_edge_counter_increment_size(int32_t size) { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 // Timestamps of last operation via service. | 842 // Timestamps of last operation via service. |
851 int64_t last_allocationprofile_accumulator_reset_timestamp_; | 843 int64_t last_allocationprofile_accumulator_reset_timestamp_; |
852 int64_t last_allocationprofile_gc_timestamp_; | 844 int64_t last_allocationprofile_gc_timestamp_; |
853 | 845 |
854 // Ring buffer of objects assigned an id. | 846 // Ring buffer of objects assigned an id. |
855 ObjectIdRing* object_id_ring_; | 847 ObjectIdRing* object_id_ring_; |
856 | 848 |
857 // Trace buffer support. | 849 // Trace buffer support. |
858 TraceBuffer* trace_buffer_; | 850 TraceBuffer* trace_buffer_; |
859 | 851 |
860 // TimelineEvent buffer. | |
861 TimelineEventRecorder* timeline_event_recorder_; | |
862 | |
863 IsolateProfilerData* profiler_data_; | 852 IsolateProfilerData* profiler_data_; |
864 Mutex profiler_data_mutex_; | 853 Mutex profiler_data_mutex_; |
865 | 854 |
866 VMTagCounters vm_tag_counters_; | 855 VMTagCounters vm_tag_counters_; |
867 uword user_tag_; | 856 uword user_tag_; |
868 RawGrowableObjectArray* tag_table_; | 857 RawGrowableObjectArray* tag_table_; |
869 RawUserTag* current_tag_; | 858 RawUserTag* current_tag_; |
870 RawUserTag* default_tag_; | 859 RawUserTag* default_tag_; |
871 | 860 |
872 RawGrowableObjectArray* collected_closures_; | 861 RawGrowableObjectArray* collected_closures_; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 uint8_t* serialized_message_; | 1075 uint8_t* serialized_message_; |
1087 intptr_t serialized_message_len_; | 1076 intptr_t serialized_message_len_; |
1088 Isolate::Flags isolate_flags_; | 1077 Isolate::Flags isolate_flags_; |
1089 bool paused_; | 1078 bool paused_; |
1090 bool errors_are_fatal_; | 1079 bool errors_are_fatal_; |
1091 }; | 1080 }; |
1092 | 1081 |
1093 } // namespace dart | 1082 } // namespace dart |
1094 | 1083 |
1095 #endif // VM_ISOLATE_H_ | 1084 #endif // VM_ISOLATE_H_ |
OLD | NEW |