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

Unified Diff: runtime/vm/service.h

Issue 584023004: Service isolate rework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.h
diff --git a/runtime/vm/service.h b/runtime/vm/service.h
index a7f8d1ef48140fb458253074c047ae117b39a845..5b6d160a8ca15f02e57d716429d7f84fcbadc6f0 100644
--- a/runtime/vm/service.h
+++ b/runtime/vm/service.h
@@ -8,6 +8,7 @@
#include "include/dart_api.h"
#include "vm/allocation.h"
+#include "vm/os_thread.h"
namespace dart {
@@ -24,6 +25,9 @@ class String;
class Service : public AllStatic {
public:
+ static const char* kServiceIsolateName;
+ static bool IsServiceIsolateName(const char* name);
+
// Handles a message which is not directed to an isolate.
static void HandleRootMessage(const Instance& message);
@@ -42,6 +46,14 @@ class Service : public AllStatic {
port_ = port;
}
+ static Dart_Port WaitForLoadPort();
+ static bool IsServicePort(Dart_Port port) {
+ return (port == port_) || (port == load_port_);
+ }
+ static Dart_Port LoadPort();
+
+ static void SetLoadPort(Dart_Port port);
+
static void SetEventMask(uint32_t mask);
// Is the service interested in debugger events?
@@ -73,6 +85,12 @@ class Service : public AllStatic {
static void SendEchoEvent(Isolate* isolate);
static void SendGraphEvent(Isolate* isolate);
+ static void MaybeInjectVMServiceLibrary(Isolate* isolate);
+
+ static void RunService();
+
+ static void FinishedInitializing();
+
private:
// These must be kept in sync with service/constants.dart
static const int kEventFamilyDebug = 0;
@@ -82,11 +100,13 @@ class Service : public AllStatic {
static void EmbedderHandleMessage(EmbedderServiceHandler* handler,
JSONStream* js);
+
static EmbedderServiceHandler* FindIsolateEmbedderHandler(const char* name);
static EmbedderServiceHandler* FindRootEmbedderHandler(const char* name);
static Dart_Handle GetSource(const char* name);
static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library,
Dart_Handle url);
+
static void SendEvent(intptr_t eventId, const Object& eventMessage);
// Does not take ownership of 'data'.
static void SendEvent(intptr_t eventId,
@@ -98,8 +118,10 @@ class Service : public AllStatic {
static EmbedderServiceHandler* root_service_handler_head_;
static Isolate* service_isolate_;
- static Dart_LibraryTagHandler embedder_provided_handler_;
static Dart_Port port_;
+ static Monitor* monitor_;
+ static bool initializing_;
+ static Dart_Port load_port_;
static uint32_t event_mask_;
};
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698