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

Unified Diff: runtime/lib/developer.cc

Issue 2542003002: Add getIsolateID to Service class in dart:developer (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/lib/developer.cc
diff --git a/runtime/lib/developer.cc b/runtime/lib/developer.cc
index 5d6027b8f9f68820cffad471c48f188930de232a..d53185e9471604bde558e5f3a6a8550c312df6e8 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("isolates/%" Pd64 "", port_id);
siva 2016/12/01 00:09:11 isolates or isolate ?
Cutch 2016/12/01 20:41:30 the above code is correct. I've moved the format s
+#endif
+}
+
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698