| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 static void RegisterRootEmbedderCallback( | 64 static void RegisterRootEmbedderCallback( |
| 65 const char* name, | 65 const char* name, |
| 66 Dart_ServiceRequestCallback callback, | 66 Dart_ServiceRequestCallback callback, |
| 67 void* user_data); | 67 void* user_data); |
| 68 | 68 |
| 69 static bool IsServiceIsolate(Isolate* isolate) { | 69 static bool IsServiceIsolate(Isolate* isolate) { |
| 70 return isolate == service_isolate_; | 70 return isolate == service_isolate_; |
| 71 } | 71 } |
| 72 | 72 |
| 73 static void SendEchoEvent(Isolate* isolate); | 73 static void SendEchoEvent(Isolate* isolate); |
| 74 static void SendGraphEvent(Isolate* isolate); |
| 74 | 75 |
| 75 private: | 76 private: |
| 76 // These must be kept in sync with service/constants.dart | 77 // These must be kept in sync with service/constants.dart |
| 77 static const int kEventFamilyDebug = 0; | 78 static const int kEventFamilyDebug = 0; |
| 78 static const int kEventFamilyGC = 1; | 79 static const int kEventFamilyGC = 1; |
| 79 static const uint32_t kEventFamilyDebugMask = (1 << kEventFamilyDebug); | 80 static const uint32_t kEventFamilyDebugMask = (1 << kEventFamilyDebug); |
| 80 static const uint32_t kEventFamilyGCMask = (1 << kEventFamilyGC); | 81 static const uint32_t kEventFamilyGCMask = (1 << kEventFamilyGC); |
| 81 | 82 |
| 82 static void EmbedderHandleMessage(EmbedderServiceHandler* handler, | 83 static void EmbedderHandleMessage(EmbedderServiceHandler* handler, |
| 83 JSONStream* js); | 84 JSONStream* js); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 98 | 99 |
| 99 static Isolate* service_isolate_; | 100 static Isolate* service_isolate_; |
| 100 static Dart_LibraryTagHandler embedder_provided_handler_; | 101 static Dart_LibraryTagHandler embedder_provided_handler_; |
| 101 static Dart_Port port_; | 102 static Dart_Port port_; |
| 102 static uint32_t event_mask_; | 103 static uint32_t event_mask_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace dart | 106 } // namespace dart |
| 106 | 107 |
| 107 #endif // VM_SERVICE_H_ | 108 #endif // VM_SERVICE_H_ |
| OLD | NEW |