Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: runtime/vm/service.h

Issue 773573005: vmservice: basic object graph serialization. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« runtime/vm/object_graph.cc ('K') | « runtime/vm/scavenger.h ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698