| 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_SERVICE_ISOLATE_H_ | 5 #ifndef VM_SERVICE_ISOLATE_H_ |
| 6 #define VM_SERVICE_ISOLATE_H_ | 6 #define VM_SERVICE_ISOLATE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 static void FinishedInitializing(); | 41 static void FinishedInitializing(); |
| 42 static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 42 static void MaybeInjectVMServiceLibrary(Isolate* isolate); |
| 43 static Dart_IsolateCreateCallback create_callback() { | 43 static Dart_IsolateCreateCallback create_callback() { |
| 44 return create_callback_; | 44 return create_callback_; |
| 45 } | 45 } |
| 46 | 46 |
| 47 static Dart_Handle GetSource(const char* name); | 47 static Dart_Handle GetSource(const char* name); |
| 48 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, | 48 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, |
| 49 Dart_Handle url); | 49 Dart_Handle url); |
| 50 | 50 |
| 51 static void KillAllIsolates(); |
| 52 |
| 51 static Dart_IsolateCreateCallback create_callback_; | 53 static Dart_IsolateCreateCallback create_callback_; |
| 52 static uint8_t* exit_message_; | 54 static uint8_t* exit_message_; |
| 53 static intptr_t exit_message_length_; | 55 static intptr_t exit_message_length_; |
| 54 static Monitor* monitor_; | 56 static Monitor* monitor_; |
| 55 static bool initializing_; | 57 static bool initializing_; |
| 56 static bool shutting_down_; | 58 static bool shutting_down_; |
| 57 static Isolate* isolate_; | 59 static Isolate* isolate_; |
| 58 static Dart_Port port_; | 60 static Dart_Port port_; |
| 59 static Dart_Port load_port_; | 61 static Dart_Port load_port_; |
| 60 static Dart_Port origin_; | 62 static Dart_Port origin_; |
| 61 | 63 |
| 62 friend class Dart; | 64 friend class Dart; |
| 63 friend class RunServiceTask; | 65 friend class RunServiceTask; |
| 64 friend class ServiceIsolateNatives; | 66 friend class ServiceIsolateNatives; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 } // namespace dart | 69 } // namespace dart |
| 68 | 70 |
| 69 #endif // VM_SERVICE_ISOLATE_H_ | 71 #endif // VM_SERVICE_ISOLATE_H_ |
| OLD | NEW |