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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 static Dart_FileOpenCallback file_open_callback_; | 812 static Dart_FileOpenCallback file_open_callback_; |
813 static Dart_FileReadCallback file_read_callback_; | 813 static Dart_FileReadCallback file_read_callback_; |
814 static Dart_FileWriteCallback file_write_callback_; | 814 static Dart_FileWriteCallback file_write_callback_; |
815 static Dart_FileCloseCallback file_close_callback_; | 815 static Dart_FileCloseCallback file_close_callback_; |
816 static Dart_EntropySource entropy_source_callback_; | 816 static Dart_EntropySource entropy_source_callback_; |
817 static Dart_IsolateInterruptCallback vmstats_callback_; | 817 static Dart_IsolateInterruptCallback vmstats_callback_; |
818 | 818 |
819 static void WakePauseEventHandler(Dart_Isolate isolate); | 819 static void WakePauseEventHandler(Dart_Isolate isolate); |
820 | 820 |
821 // Manage list of existing isolates. | 821 // Manage list of existing isolates. |
| 822 static Isolate* FindIsolateInList(Dart_Isolate isolate); |
822 static void AddIsolateTolist(Isolate* isolate); | 823 static void AddIsolateTolist(Isolate* isolate); |
823 static void RemoveIsolateFromList(Isolate* isolate); | 824 static void RemoveIsolateFromList(Isolate* isolate); |
824 static void CheckForDuplicateThreadState(InterruptableThreadState* state); | 825 static void CheckForDuplicateThreadState(InterruptableThreadState* state); |
825 | 826 |
826 static Monitor* isolates_list_monitor_; // Protects isolates_list_head_ | 827 static Monitor* isolates_list_monitor_; // Protects isolates_list_head_ |
827 static Isolate* isolates_list_head_; | 828 static Isolate* isolates_list_head_; |
828 | 829 |
829 #define REUSABLE_FRIEND_DECLARATION(name) \ | 830 #define REUSABLE_FRIEND_DECLARATION(name) \ |
830 friend class Reusable##name##HandleScope; | 831 friend class Reusable##name##HandleScope; |
831 REUSABLE_HANDLE_LIST(REUSABLE_FRIEND_DECLARATION) | 832 REUSABLE_HANDLE_LIST(REUSABLE_FRIEND_DECLARATION) |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 uint8_t* serialized_args_; | 964 uint8_t* serialized_args_; |
964 intptr_t serialized_args_len_; | 965 intptr_t serialized_args_len_; |
965 uint8_t* serialized_message_; | 966 uint8_t* serialized_message_; |
966 intptr_t serialized_message_len_; | 967 intptr_t serialized_message_len_; |
967 bool paused_; | 968 bool paused_; |
968 }; | 969 }; |
969 | 970 |
970 } // namespace dart | 971 } // namespace dart |
971 | 972 |
972 #endif // VM_ISOLATE_H_ | 973 #endif // VM_ISOLATE_H_ |
OLD | NEW |