| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 static Dart_Port WaitForLoadPort(); | 26 static Dart_Port WaitForLoadPort(); |
| 27 static Dart_Port LoadPort(); | 27 static Dart_Port LoadPort(); |
| 28 | 28 |
| 29 static void Run(); | 29 static void Run(); |
| 30 static bool SendIsolateStartupMessage(); | 30 static bool SendIsolateStartupMessage(); |
| 31 static bool SendIsolateShutdownMessage(); | 31 static bool SendIsolateShutdownMessage(); |
| 32 static void SendServiceExitMessage(); | 32 static void SendServiceExitMessage(); |
| 33 static void Shutdown(); | 33 static void Shutdown(); |
| 34 | 34 |
| 35 private: | |
| 36 static void KillServiceIsolate(); | |
| 37 | |
| 38 protected: | 35 protected: |
| 39 static void SetServicePort(Dart_Port port); | 36 static void SetServicePort(Dart_Port port); |
| 40 static void SetServiceIsolate(Isolate* isolate); | 37 static void SetServiceIsolate(Isolate* isolate); |
| 41 static void SetLoadPort(Dart_Port port); | 38 static void SetLoadPort(Dart_Port port); |
| 42 static void ConstructExitMessageAndCache(Isolate* isolate); | 39 static void ConstructExitMessageAndCache(Isolate* isolate); |
| 43 static void FinishedExiting(); | 40 static void FinishedExiting(); |
| 44 static void FinishedInitializing(); | 41 static void FinishedInitializing(); |
| 45 static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 42 static void MaybeInjectVMServiceLibrary(Isolate* isolate); |
| 46 static Dart_IsolateCreateCallback create_callback() { | 43 static Dart_IsolateCreateCallback create_callback() { |
| 47 return create_callback_; | 44 return create_callback_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 63 static Dart_Port origin_; | 60 static Dart_Port origin_; |
| 64 | 61 |
| 65 friend class Dart; | 62 friend class Dart; |
| 66 friend class RunServiceTask; | 63 friend class RunServiceTask; |
| 67 friend class ServiceIsolateNatives; | 64 friend class ServiceIsolateNatives; |
| 68 }; | 65 }; |
| 69 | 66 |
| 70 } // namespace dart | 67 } // namespace dart |
| 71 | 68 |
| 72 #endif // VM_SERVICE_ISOLATE_H_ | 69 #endif // VM_SERVICE_ISOLATE_H_ |
| OLD | NEW |