| 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 10 matching lines...) Expand all  Loading... | 
| 21   static bool IsRunning(); | 21   static bool IsRunning(); | 
| 22   static bool IsServiceIsolate(Isolate* isolate); | 22   static bool IsServiceIsolate(Isolate* isolate); | 
| 23   static Dart_Port Port(); | 23   static Dart_Port Port(); | 
| 24 | 24 | 
| 25   static Dart_Port WaitForLoadPort(); | 25   static Dart_Port WaitForLoadPort(); | 
| 26   static Dart_Port LoadPort(); | 26   static Dart_Port LoadPort(); | 
| 27 | 27 | 
| 28   static void Run(); | 28   static void Run(); | 
| 29   static bool SendIsolateStartupMessage(); | 29   static bool SendIsolateStartupMessage(); | 
| 30   static bool SendIsolateShutdownMessage(); | 30   static bool SendIsolateShutdownMessage(); | 
|  | 31   static void SendServiceExitMessage(); | 
|  | 32   static void Shutdown(); | 
| 31 | 33 | 
| 32  protected: | 34  protected: | 
| 33   static void SetServicePort(Dart_Port port); | 35   static void SetServicePort(Dart_Port port); | 
| 34   static void SetServiceIsolate(Isolate* isolate); | 36   static void SetServiceIsolate(Isolate* isolate); | 
| 35   static void SetLoadPort(Dart_Port port); | 37   static void SetLoadPort(Dart_Port port); | 
|  | 38   static void ConstructExitMessageAndCache(Isolate* isolate); | 
|  | 39   static void FinishedExiting(); | 
| 36   static void FinishedInitializing(); | 40   static void FinishedInitializing(); | 
| 37   static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 41   static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 
| 38   static Dart_IsolateCreateCallback create_callback() { | 42   static Dart_IsolateCreateCallback create_callback() { | 
| 39     return create_callback_; | 43     return create_callback_; | 
| 40   } | 44   } | 
| 41 | 45 | 
| 42   static Dart_Handle GetSource(const char* name); | 46   static Dart_Handle GetSource(const char* name); | 
| 43   static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, | 47   static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, | 
| 44                                        Dart_Handle url); | 48                                        Dart_Handle url); | 
| 45 | 49 | 
| 46   static Dart_IsolateCreateCallback create_callback_; | 50   static Dart_IsolateCreateCallback create_callback_; | 
|  | 51   static uint8_t* exit_message_; | 
|  | 52   static intptr_t exit_message_length_; | 
| 47   static Monitor* monitor_; | 53   static Monitor* monitor_; | 
| 48   static bool initializing_; | 54   static bool initializing_; | 
|  | 55   static bool shutting_down_; | 
| 49   static Isolate* isolate_; | 56   static Isolate* isolate_; | 
| 50   static Dart_Port port_; | 57   static Dart_Port port_; | 
| 51   static Dart_Port load_port_; | 58   static Dart_Port load_port_; | 
| 52 | 59 | 
| 53   friend class Dart; | 60   friend class Dart; | 
| 54   friend class RunServiceTask; | 61   friend class RunServiceTask; | 
| 55   friend class ServiceIsolateNatives; | 62   friend class ServiceIsolateNatives; | 
| 56 }; | 63 }; | 
| 57 | 64 | 
| 58 }  // namespace dart | 65 }  // namespace dart | 
| 59 | 66 | 
| 60 #endif  // VM_SERVICE_ISOLATE_H_ | 67 #endif  // VM_SERVICE_ISOLATE_H_ | 
| OLD | NEW | 
|---|