| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static const int kEventFamilyGC = 1; | 61 static const int kEventFamilyGC = 1; |
| 62 static const uint32_t kEventFamilyDebugMask = (1 << kEventFamilyDebug); | 62 static const uint32_t kEventFamilyDebugMask = (1 << kEventFamilyDebug); |
| 63 static const uint32_t kEventFamilyGCMask = (1 << kEventFamilyGC); | 63 static const uint32_t kEventFamilyGCMask = (1 << kEventFamilyGC); |
| 64 | 64 |
| 65 static void EmbedderHandleMessage(EmbedderServiceHandler* handler, | 65 static void EmbedderHandleMessage(EmbedderServiceHandler* handler, |
| 66 JSONStream* js); | 66 JSONStream* js); |
| 67 | 67 |
| 68 static EmbedderServiceHandler* FindIsolateEmbedderHandler(const char* name); | 68 static EmbedderServiceHandler* FindIsolateEmbedderHandler(const char* name); |
| 69 static EmbedderServiceHandler* FindRootEmbedderHandler(const char* name); | 69 static EmbedderServiceHandler* FindRootEmbedderHandler(const char* name); |
| 70 | 70 |
| 71 static void SendEvent(intptr_t eventId, const Object& eventMessage); | 71 static void SendEvent(intptr_t eventFamilyId, |
| 72 intptr_t eventType, |
| 73 const Object& eventMessage); |
| 72 // Does not take ownership of 'data'. | 74 // Does not take ownership of 'data'. |
| 73 static void SendEvent(intptr_t eventId, | 75 static void SendEvent(intptr_t eventId, |
| 74 const String& meta, | 76 const String& meta, |
| 75 const uint8_t* data, | 77 const uint8_t* data, |
| 76 intptr_t size); | 78 intptr_t size); |
| 77 | 79 |
| 78 static EmbedderServiceHandler* isolate_service_handler_head_; | 80 static EmbedderServiceHandler* isolate_service_handler_head_; |
| 79 static EmbedderServiceHandler* root_service_handler_head_; | 81 static EmbedderServiceHandler* root_service_handler_head_; |
| 80 | 82 |
| 81 static uint32_t event_mask_; | 83 static uint32_t event_mask_; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace dart | 86 } // namespace dart |
| 85 | 87 |
| 86 #endif // VM_SERVICE_H_ | 88 #endif // VM_SERVICE_H_ |
| OLD | NEW |