| 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); |
| 32 static void HandleRootMessage(const Instance& message); | 33 static void HandleRootMessage(const Instance& message); |
| 33 | 34 |
| 34 // Handles a message which is directed to a particular isolate. | 35 // Handles a message which is directed to a particular isolate. |
| 35 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message); | 36 static void HandleIsolateMessageNew(Isolate* isolate, const Array& message); |
| 36 static void HandleIsolateMessage(Isolate* isolate, const Array& message); | 37 static void HandleIsolateMessage(Isolate* isolate, const Array& message); |
| 37 | 38 |
| 38 static Isolate* GetServiceIsolate(void* callback_data); | 39 static Isolate* GetServiceIsolate(void* callback_data); |
| 39 static bool SendIsolateStartupMessage(); | 40 static bool SendIsolateStartupMessage(); |
| 40 static bool SendIsolateShutdownMessage(); | 41 static bool SendIsolateShutdownMessage(); |
| 41 | 42 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 static bool initializing_; | 119 static bool initializing_; |
| 119 static Isolate* service_isolate_; | 120 static Isolate* service_isolate_; |
| 120 static Dart_Port service_port_; | 121 static Dart_Port service_port_; |
| 121 static Dart_Port load_port_; | 122 static Dart_Port load_port_; |
| 122 static uint32_t event_mask_; | 123 static uint32_t event_mask_; |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace dart | 126 } // namespace dart |
| 126 | 127 |
| 127 #endif // VM_SERVICE_H_ | 128 #endif // VM_SERVICE_H_ |
| OLD | NEW |