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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 void set_profiler_data(IsolateProfilerData* profiler_data) { | 626 void set_profiler_data(IsolateProfilerData* profiler_data) { |
627 profiler_data_ = profiler_data; | 627 profiler_data_ = profiler_data; |
628 } | 628 } |
629 | 629 |
630 IsolateProfilerData* profiler_data() const { | 630 IsolateProfilerData* profiler_data() const { |
631 return profiler_data_; | 631 return profiler_data_; |
632 } | 632 } |
633 | 633 |
634 void PrintJSON(JSONStream* stream, bool ref = true); | 634 void PrintJSON(JSONStream* stream, bool ref = true); |
635 | 635 |
636 void set_thread_state(InterruptableThreadState* state) { | |
637 ASSERT((thread_state_ == NULL) || (state == NULL)); | |
638 thread_state_ = state; | |
639 } | |
640 | |
641 InterruptableThreadState* thread_state() const { | 636 InterruptableThreadState* thread_state() const { |
642 return thread_state_; | 637 return (mutator_thread_ == NULL) ? NULL : mutator_thread_->thread_state(); |
643 } | 638 } |
644 | 639 |
645 CompilerStats* compiler_stats() { | 640 CompilerStats* compiler_stats() { |
646 return compiler_stats_; | 641 return compiler_stats_; |
647 } | 642 } |
648 | 643 |
649 // Returns the number of sampled threads. | 644 // Returns the number of sampled threads. |
650 intptr_t ProfileInterrupt(); | 645 intptr_t ProfileInterrupt(); |
651 | 646 |
652 VMTagCounters* vm_tag_counters() { | 647 VMTagCounters* vm_tag_counters() { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 ObjectIdRing* object_id_ring_; | 839 ObjectIdRing* object_id_ring_; |
845 | 840 |
846 // Trace buffer support. | 841 // Trace buffer support. |
847 TraceBuffer* trace_buffer_; | 842 TraceBuffer* trace_buffer_; |
848 | 843 |
849 // TimelineEvent buffer. | 844 // TimelineEvent buffer. |
850 TimelineEventRecorder* timeline_event_recorder_; | 845 TimelineEventRecorder* timeline_event_recorder_; |
851 | 846 |
852 IsolateProfilerData* profiler_data_; | 847 IsolateProfilerData* profiler_data_; |
853 Mutex profiler_data_mutex_; | 848 Mutex profiler_data_mutex_; |
854 InterruptableThreadState* thread_state_; | |
855 | 849 |
856 VMTagCounters vm_tag_counters_; | 850 VMTagCounters vm_tag_counters_; |
857 uword user_tag_; | 851 uword user_tag_; |
858 RawGrowableObjectArray* tag_table_; | 852 RawGrowableObjectArray* tag_table_; |
859 RawUserTag* current_tag_; | 853 RawUserTag* current_tag_; |
860 RawUserTag* default_tag_; | 854 RawUserTag* default_tag_; |
861 | 855 |
862 RawGrowableObjectArray* collected_closures_; | 856 RawGrowableObjectArray* collected_closures_; |
863 RawGrowableObjectArray* deoptimized_code_array_; | 857 RawGrowableObjectArray* deoptimized_code_array_; |
864 | 858 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 uint8_t* serialized_message_; | 1070 uint8_t* serialized_message_; |
1077 intptr_t serialized_message_len_; | 1071 intptr_t serialized_message_len_; |
1078 Isolate::Flags isolate_flags_; | 1072 Isolate::Flags isolate_flags_; |
1079 bool paused_; | 1073 bool paused_; |
1080 bool errors_are_fatal_; | 1074 bool errors_are_fatal_; |
1081 }; | 1075 }; |
1082 | 1076 |
1083 } // namespace dart | 1077 } // namespace dart |
1084 | 1078 |
1085 #endif // VM_ISOLATE_H_ | 1079 #endif // VM_ISOLATE_H_ |
OLD | NEW |