| 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 int64_t last_reload_timestamp_; | 830 int64_t last_reload_timestamp_; |
| 831 | 831 |
| 832 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \ | 832 #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \ |
| 833 type metric_##variable##_; | 833 type metric_##variable##_; |
| 834 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE); | 834 ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE); |
| 835 #undef ISOLATE_METRIC_VARIABLE | 835 #undef ISOLATE_METRIC_VARIABLE |
| 836 | 836 |
| 837 | 837 |
| 838 static Dart_IsolateCreateCallback create_callback_; | 838 static Dart_IsolateCreateCallback create_callback_; |
| 839 static Dart_IsolateShutdownCallback shutdown_callback_; | 839 static Dart_IsolateShutdownCallback shutdown_callback_; |
| 840 static Dart_IsolateInterruptCallback vmstats_callback_; | |
| 841 | 840 |
| 842 static void WakePauseEventHandler(Dart_Isolate isolate); | 841 static void WakePauseEventHandler(Dart_Isolate isolate); |
| 843 | 842 |
| 844 // Manage list of existing isolates. | 843 // Manage list of existing isolates. |
| 845 static bool AddIsolateToList(Isolate* isolate); | 844 static bool AddIsolateToList(Isolate* isolate); |
| 846 static void RemoveIsolateFromList(Isolate* isolate); | 845 static void RemoveIsolateFromList(Isolate* isolate); |
| 847 | 846 |
| 848 // This monitor protects isolates_list_head_, and creation_enabled_. | 847 // This monitor protects isolates_list_head_, and creation_enabled_. |
| 849 static Monitor* isolates_list_monitor_; | 848 static Monitor* isolates_list_monitor_; |
| 850 static Isolate* isolates_list_head_; | 849 static Isolate* isolates_list_head_; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 intptr_t* spawn_count_; | 990 intptr_t* spawn_count_; |
| 992 | 991 |
| 993 Dart_IsolateFlags isolate_flags_; | 992 Dart_IsolateFlags isolate_flags_; |
| 994 bool paused_; | 993 bool paused_; |
| 995 bool errors_are_fatal_; | 994 bool errors_are_fatal_; |
| 996 }; | 995 }; |
| 997 | 996 |
| 998 } // namespace dart | 997 } // namespace dart |
| 999 | 998 |
| 1000 #endif // VM_ISOLATE_H_ | 999 #endif // VM_ISOLATE_H_ |
| OLD | NEW |