| 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 |
| 35 protected: | 38 protected: |
| 36 static void SetServicePort(Dart_Port port); | 39 static void SetServicePort(Dart_Port port); |
| 37 static void SetServiceIsolate(Isolate* isolate); | 40 static void SetServiceIsolate(Isolate* isolate); |
| 38 static void SetLoadPort(Dart_Port port); | 41 static void SetLoadPort(Dart_Port port); |
| 39 static void ConstructExitMessageAndCache(Isolate* isolate); | 42 static void ConstructExitMessageAndCache(Isolate* isolate); |
| 40 static void FinishedExiting(); | 43 static void FinishedExiting(); |
| 41 static void FinishedInitializing(); | 44 static void FinishedInitializing(); |
| 42 static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 45 static void MaybeInjectVMServiceLibrary(Isolate* isolate); |
| 43 static Dart_IsolateCreateCallback create_callback() { | 46 static Dart_IsolateCreateCallback create_callback() { |
| 44 return create_callback_; | 47 return create_callback_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 60 static Dart_Port origin_; | 63 static Dart_Port origin_; |
| 61 | 64 |
| 62 friend class Dart; | 65 friend class Dart; |
| 63 friend class RunServiceTask; | 66 friend class RunServiceTask; |
| 64 friend class ServiceIsolateNatives; | 67 friend class ServiceIsolateNatives; |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 } // namespace dart | 70 } // namespace dart |
| 68 | 71 |
| 69 #endif // VM_SERVICE_ISOLATE_H_ | 72 #endif // VM_SERVICE_ISOLATE_H_ |
| OLD | NEW |