Index: runtime/lib/developer.cc |
diff --git a/runtime/lib/developer.cc b/runtime/lib/developer.cc |
index 5d6027b8f9f68820cffad471c48f188930de232a..e2f5a1ba12ea578e0d136631387bb4cd5a78b445 100644 |
--- a/runtime/lib/developer.cc |
+++ b/runtime/lib/developer.cc |
@@ -172,4 +172,16 @@ DEFINE_NATIVE_ENTRY(Developer_webServerControl, 2) { |
#endif |
} |
+ |
+DEFINE_NATIVE_ENTRY(Developer_getIsolateIDFromSendPort, 1) { |
+#if defined(PRODUCT) |
+ return Object::null(); |
+#else |
+ GET_NON_NULL_NATIVE_ARGUMENT(SendPort, port, arguments->NativeArgAt(0)); |
+ int64_t port_id = port.Id(); |
+ return String::NewFormatted(ISOLATE_SERVICE_ID_FORMAT_STRING, port_id); |
+#endif |
+} |
+ |
+ |
} // namespace dart |