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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 | 622 |
623 RawGrowableObjectArray* tag_table() const { return tag_table_; } | 623 RawGrowableObjectArray* tag_table() const { return tag_table_; } |
624 void set_tag_table(const GrowableObjectArray& value); | 624 void set_tag_table(const GrowableObjectArray& value); |
625 | 625 |
626 RawUserTag* current_tag() const { return current_tag_; } | 626 RawUserTag* current_tag() const { return current_tag_; } |
627 void set_current_tag(const UserTag& tag); | 627 void set_current_tag(const UserTag& tag); |
628 | 628 |
629 RawUserTag* default_tag() const { return default_tag_; } | 629 RawUserTag* default_tag() const { return default_tag_; } |
630 void set_default_tag(const UserTag& tag); | 630 void set_default_tag(const UserTag& tag); |
631 | 631 |
632 RawGrowableObjectArray* collected_closures() const { | |
633 return collected_closures_; | |
634 } | |
635 void set_collected_closures(const GrowableObjectArray& value); | |
636 | |
637 RawGrowableObjectArray* background_compilation_queue() const { | 632 RawGrowableObjectArray* background_compilation_queue() const { |
638 return background_compilation_queue_; | 633 return background_compilation_queue_; |
639 } | 634 } |
640 void set_background_compilation_queue(const GrowableObjectArray& value); | 635 void set_background_compilation_queue(const GrowableObjectArray& value); |
641 | 636 |
642 Metric* metrics_list_head() { | 637 Metric* metrics_list_head() { |
643 return metrics_list_head_; | 638 return metrics_list_head_; |
644 } | 639 } |
645 | 640 |
646 void set_metrics_list_head(Metric* metric) { | 641 void set_metrics_list_head(Metric* metric) { |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 // Trace buffer support. | 816 // Trace buffer support. |
822 TraceBuffer* trace_buffer_; | 817 TraceBuffer* trace_buffer_; |
823 | 818 |
824 IsolateProfilerData* profiler_data_; | 819 IsolateProfilerData* profiler_data_; |
825 Mutex profiler_data_mutex_; | 820 Mutex profiler_data_mutex_; |
826 | 821 |
827 VMTagCounters vm_tag_counters_; | 822 VMTagCounters vm_tag_counters_; |
828 RawGrowableObjectArray* tag_table_; | 823 RawGrowableObjectArray* tag_table_; |
829 | 824 |
830 | 825 |
831 RawGrowableObjectArray* collected_closures_; | |
832 RawGrowableObjectArray* deoptimized_code_array_; | 826 RawGrowableObjectArray* deoptimized_code_array_; |
833 RawGrowableObjectArray* background_compilation_queue_; | 827 RawGrowableObjectArray* background_compilation_queue_; |
834 | 828 |
835 // We use 6 list entries for each pending service extension calls. | 829 // We use 6 list entries for each pending service extension calls. |
836 enum { | 830 enum { |
837 kPendingHandlerIndex = 0, | 831 kPendingHandlerIndex = 0, |
838 kPendingMethodNameIndex, | 832 kPendingMethodNameIndex, |
839 kPendingKeysIndex, | 833 kPendingKeysIndex, |
840 kPendingValuesIndex, | 834 kPendingValuesIndex, |
841 kPendingReplyPortIndex, | 835 kPendingReplyPortIndex, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 uint8_t* serialized_message_; | 1046 uint8_t* serialized_message_; |
1053 intptr_t serialized_message_len_; | 1047 intptr_t serialized_message_len_; |
1054 Isolate::Flags isolate_flags_; | 1048 Isolate::Flags isolate_flags_; |
1055 bool paused_; | 1049 bool paused_; |
1056 bool errors_are_fatal_; | 1050 bool errors_are_fatal_; |
1057 }; | 1051 }; |
1058 | 1052 |
1059 } // namespace dart | 1053 } // namespace dart |
1060 | 1054 |
1061 #endif // VM_ISOLATE_H_ | 1055 #endif // VM_ISOLATE_H_ |
OLD | NEW |