| 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" |
| 11 #include "vm/base_isolate.h" | 11 #include "vm/base_isolate.h" |
| 12 #include "vm/class_table.h" | 12 #include "vm/class_table.h" |
| 13 #include "vm/handles.h" | 13 #include "vm/handles.h" |
| 14 #include "vm/megamorphic_cache_table.h" | 14 #include "vm/megamorphic_cache_table.h" |
| 15 #include "vm/metrics.h" | 15 #include "vm/metrics.h" |
| 16 #include "vm/random.h" | 16 #include "vm/random.h" |
| 17 #include "vm/tags.h" | 17 #include "vm/tags.h" |
| 18 #include "vm/thread.h" | 18 #include "vm/thread.h" |
| 19 #include "vm/os_thread.h" | 19 #include "vm/os_thread.h" |
| 20 #include "vm/timeline.h" | 20 #include "vm/timeline.h" |
| 21 #include "vm/timer.h" | 21 #include "vm/timer.h" |
| 22 #include "vm/trace_buffer.h" | 22 #include "vm/trace_buffer.h" |
| 23 | 23 |
| 24 namespace dart { | 24 namespace dart { |
| 25 | 25 |
| 26 // Forward declarations. | 26 // Forward declarations. |
| 27 class ApiState; | 27 class ApiState; |
| 28 class BackgroundCompiler; | 28 class BackgroundCompiler; |
| 29 class Capability; | 29 class Capability; |
| 30 class CHA; | |
| 31 class CodeIndexTable; | 30 class CodeIndexTable; |
| 32 class CompilerStats; | 31 class CompilerStats; |
| 33 class Debugger; | 32 class Debugger; |
| 34 class DeoptContext; | 33 class DeoptContext; |
| 35 class HandleScope; | 34 class HandleScope; |
| 36 class HandleVisitor; | 35 class HandleVisitor; |
| 37 class Heap; | 36 class Heap; |
| 38 class ICData; | 37 class ICData; |
| 39 class IsolateProfilerData; | 38 class IsolateProfilerData; |
| 40 class IsolateSpawnState; | 39 class IsolateSpawnState; |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 kRegisteredNameIndex = 0, | 843 kRegisteredNameIndex = 0, |
| 845 kRegisteredHandlerIndex, | 844 kRegisteredHandlerIndex, |
| 846 kRegisteredEntrySize | 845 kRegisteredEntrySize |
| 847 }; | 846 }; |
| 848 RawGrowableObjectArray* registered_service_extension_handlers_; | 847 RawGrowableObjectArray* registered_service_extension_handlers_; |
| 849 | 848 |
| 850 Metric* metrics_list_head_; | 849 Metric* metrics_list_head_; |
| 851 | 850 |
| 852 bool compilation_allowed_; | 851 bool compilation_allowed_; |
| 853 | 852 |
| 854 // TODO(23153): Move this out of Isolate/Thread. | |
| 855 CHA* cha_; | |
| 856 | |
| 857 // Isolate list next pointer. | 853 // Isolate list next pointer. |
| 858 Isolate* next_; | 854 Isolate* next_; |
| 859 | 855 |
| 860 // Used to wake the isolate when it is in the pause event loop. | 856 // Used to wake the isolate when it is in the pause event loop. |
| 861 Monitor* pause_loop_monitor_; | 857 Monitor* pause_loop_monitor_; |
| 862 | 858 |
| 863 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \ | 859 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \ |
| 864 type metric_##variable##_; | 860 type metric_##variable##_; |
| 865 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE); | 861 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE); |
| 866 #undef ISOLATE_METRIC_VARIABLE | 862 #undef ISOLATE_METRIC_VARIABLE |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 uint8_t* serialized_message_; | 1045 uint8_t* serialized_message_; |
| 1050 intptr_t serialized_message_len_; | 1046 intptr_t serialized_message_len_; |
| 1051 Isolate::Flags isolate_flags_; | 1047 Isolate::Flags isolate_flags_; |
| 1052 bool paused_; | 1048 bool paused_; |
| 1053 bool errors_are_fatal_; | 1049 bool errors_are_fatal_; |
| 1054 }; | 1050 }; |
| 1055 | 1051 |
| 1056 } // namespace dart | 1052 } // namespace dart |
| 1057 | 1053 |
| 1058 #endif // VM_ISOLATE_H_ | 1054 #endif // VM_ISOLATE_H_ |
| OLD | NEW |