Index: runtime/vm/service.h |
diff --git a/runtime/vm/service.h b/runtime/vm/service.h |
index 1df8a94628b4f964eae8bc6034b4fe9d6414b0a8..c3cdce955197214b8a5ffc9eb1f15c020f397df2 100644 |
--- a/runtime/vm/service.h |
+++ b/runtime/vm/service.h |
@@ -40,6 +40,10 @@ class Service : public AllStatic { |
Dart_ServiceRequestCallback callback, |
void* user_data); |
+ static bool IsServiceIsolate(Isolate* isolate) { |
+ return isolate == service_isolate_; |
+ } |
+ |
private: |
static void EmbedderHandleMessage(EmbedderServiceHandler* handler, |
JSONStream* js); |