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

Unified Diff: runtime/vm/port.cc

Issue 1998963003: Rework standalone to use a synchronous loader that does not invoke Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/port.h ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port.cc
diff --git a/runtime/vm/port.cc b/runtime/vm/port.cc
index 3df0a632815fba755b48dc89aa32c61216188472..96bd7bbbef35be4f82a6bf0b6347e6e328670041 100644
--- a/runtime/vm/port.cc
+++ b/runtime/vm/port.cc
@@ -326,4 +326,20 @@ void PortMap::PrintPortsForMessageHandler(MessageHandler* handler,
}
}
+
+void PortMap::DebugDumpForMessageHandler(MessageHandler* handler) {
+ SafepointMutexLocker ml(mutex_);
+ Object& msg_handler = Object::Handle();
+ for (intptr_t i = 0; i < capacity_; i++) {
+ if (map_[i].handler == handler) {
+ if (map_[i].state == kLivePort) {
+ OS::Print("Live Port = %" Pd "\n", map_[i].port);
+ msg_handler = DartLibraryCalls::LookupHandler(map_[i].port);
+ OS::Print("Handler = %s\n", msg_handler.ToCString());
+ }
+ }
+ }
+}
+
+
} // namespace dart
« no previous file with comments | « runtime/vm/port.h ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698