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/base_isolate.h" | 10 #include "vm/base_isolate.h" |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 return object_id_ring_; | 546 return object_id_ring_; |
547 } | 547 } |
548 | 548 |
549 void set_trace_buffer(TraceBuffer* buffer) { | 549 void set_trace_buffer(TraceBuffer* buffer) { |
550 trace_buffer_ = buffer; | 550 trace_buffer_ = buffer; |
551 } | 551 } |
552 TraceBuffer* trace_buffer() { | 552 TraceBuffer* trace_buffer() { |
553 return trace_buffer_; | 553 return trace_buffer_; |
554 } | 554 } |
555 | 555 |
556 void SetTimelineEventBuffer(TimelineEventBuffer* timeline_event_buffer); | 556 void SetTimelineEventRecorder(TimelineEventRecorder* timeline_event_recorder); |
557 | 557 |
558 TimelineEventBuffer* timeline_event_buffer() const { | 558 TimelineEventRecorder* timeline_event_recorder() const { |
559 return timeline_event_buffer_; | 559 return timeline_event_recorder_; |
560 } | 560 } |
561 | 561 |
562 void RemoveTimelineEventBuffer(); | 562 void RemoveTimelineEventRecorder(); |
563 | 563 |
564 DeoptContext* deopt_context() const { return deopt_context_; } | 564 DeoptContext* deopt_context() const { return deopt_context_; } |
565 void set_deopt_context(DeoptContext* value) { | 565 void set_deopt_context(DeoptContext* value) { |
566 ASSERT(value == NULL || deopt_context_ == NULL); | 566 ASSERT(value == NULL || deopt_context_ == NULL); |
567 deopt_context_ = value; | 567 deopt_context_ = value; |
568 } | 568 } |
569 | 569 |
570 int32_t edge_counter_increment_size() const { | 570 int32_t edge_counter_increment_size() const { |
571 return edge_counter_increment_size_; | 571 return edge_counter_increment_size_; |
572 } | 572 } |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 int64_t last_allocationprofile_accumulator_reset_timestamp_; | 795 int64_t last_allocationprofile_accumulator_reset_timestamp_; |
796 int64_t last_allocationprofile_gc_timestamp_; | 796 int64_t last_allocationprofile_gc_timestamp_; |
797 | 797 |
798 // Ring buffer of objects assigned an id. | 798 // Ring buffer of objects assigned an id. |
799 ObjectIdRing* object_id_ring_; | 799 ObjectIdRing* object_id_ring_; |
800 | 800 |
801 // Trace buffer support. | 801 // Trace buffer support. |
802 TraceBuffer* trace_buffer_; | 802 TraceBuffer* trace_buffer_; |
803 | 803 |
804 // TimelineEvent buffer. | 804 // TimelineEvent buffer. |
805 TimelineEventBuffer* timeline_event_buffer_; | 805 TimelineEventRecorder* timeline_event_recorder_; |
806 | 806 |
807 IsolateProfilerData* profiler_data_; | 807 IsolateProfilerData* profiler_data_; |
808 Mutex profiler_data_mutex_; | 808 Mutex profiler_data_mutex_; |
809 InterruptableThreadState* thread_state_; | 809 InterruptableThreadState* thread_state_; |
810 | 810 |
811 VMTagCounters vm_tag_counters_; | 811 VMTagCounters vm_tag_counters_; |
812 uword user_tag_; | 812 uword user_tag_; |
813 RawGrowableObjectArray* tag_table_; | 813 RawGrowableObjectArray* tag_table_; |
814 RawUserTag* current_tag_; | 814 RawUserTag* current_tag_; |
815 RawUserTag* default_tag_; | 815 RawUserTag* default_tag_; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 intptr_t serialized_args_len_; | 1013 intptr_t serialized_args_len_; |
1014 uint8_t* serialized_message_; | 1014 uint8_t* serialized_message_; |
1015 intptr_t serialized_message_len_; | 1015 intptr_t serialized_message_len_; |
1016 Isolate::Flags isolate_flags_; | 1016 Isolate::Flags isolate_flags_; |
1017 bool paused_; | 1017 bool paused_; |
1018 }; | 1018 }; |
1019 | 1019 |
1020 } // namespace dart | 1020 } // namespace dart |
1021 | 1021 |
1022 #endif // VM_ISOLATE_H_ | 1022 #endif // VM_ISOLATE_H_ |
OLD | NEW |