| 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_H_ | 5 #ifndef VM_SERVICE_H_ |
| 6 #define VM_SERVICE_H_ | 6 #define VM_SERVICE_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 11 matching lines...) Expand all Loading... |
| 22 class Object; | 22 class Object; |
| 23 class RawInstance; | 23 class RawInstance; |
| 24 class String; | 24 class String; |
| 25 | 25 |
| 26 class Service : public AllStatic { | 26 class Service : public AllStatic { |
| 27 public: | 27 public: |
| 28 static const char* kIsolateName; | 28 static const char* kIsolateName; |
| 29 static bool IsServiceIsolateName(const char* name); | 29 static bool IsServiceIsolateName(const char* name); |
| 30 | 30 |
| 31 // Handles a message which is not directed to an isolate. | 31 // Handles a message which is not directed to an isolate. |
| 32 static void HandleRootMessageNew(const Array& message); | |
| 33 static void HandleRootMessage(const Instance& message); | 32 static void HandleRootMessage(const Instance& message); |
| 34 | 33 |
| 35 // Handles a message which is directed to a particular isolate. | 34 // Handles a message which is directed to a particular isolate. |
| 36 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message); | |
| 37 static void HandleIsolateMessage(Isolate* isolate, const Array& message); | 35 static void HandleIsolateMessage(Isolate* isolate, const Array& message); |
| 38 | 36 |
| 39 static Isolate* GetServiceIsolate(void* callback_data); | 37 static Isolate* GetServiceIsolate(void* callback_data); |
| 40 static bool SendIsolateStartupMessage(); | 38 static bool SendIsolateStartupMessage(); |
| 41 static bool SendIsolateShutdownMessage(); | 39 static bool SendIsolateShutdownMessage(); |
| 42 | 40 |
| 43 static bool IsRunning(); | 41 static bool IsRunning(); |
| 44 static void SetServicePort(Dart_Port port); | 42 static void SetServicePort(Dart_Port port); |
| 45 static void SetServiceIsolate(Isolate* isolate); | 43 static void SetServiceIsolate(Isolate* isolate); |
| 46 static bool HasServiceIsolate(); | 44 static bool HasServiceIsolate(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 static bool initializing_; | 117 static bool initializing_; |
| 120 static Isolate* service_isolate_; | 118 static Isolate* service_isolate_; |
| 121 static Dart_Port service_port_; | 119 static Dart_Port service_port_; |
| 122 static Dart_Port load_port_; | 120 static Dart_Port load_port_; |
| 123 static uint32_t event_mask_; | 121 static uint32_t event_mask_; |
| 124 }; | 122 }; |
| 125 | 123 |
| 126 } // namespace dart | 124 } // namespace dart |
| 127 | 125 |
| 128 #endif // VM_SERVICE_H_ | 126 #endif // VM_SERVICE_H_ |
| OLD | NEW |