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

Unified Diff: vm/isolate.cc

Issue 11026011: Add isolate event handler setup in order to be able to propagate isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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
« vm/debugger.h ('K') | « vm/debugger_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate.cc
===================================================================
--- vm/isolate.cc (revision 13083)
+++ vm/isolate.cc (working copy)
@@ -234,6 +234,9 @@
result->set_main_port(PortMap::CreatePort(result->message_handler()));
result->BuildName(name_prefix);
+ // Signal isolate creation event.
+ Debugger::SignalIsolateEvent(Debugger::kIsolateCreated);
+
result->debugger_ = new Debugger();
result->debugger_->Initialize(result);
if (FLAG_trace_isolates) {
@@ -411,6 +414,9 @@
debugger_->Shutdown();
}
+ // Signal isolate shutdown event.
+ Debugger::SignalIsolateEvent(Debugger::kIsolateShutdown);
+
// Close all the ports owned by this isolate.
PortMap::ClosePorts(message_handler());
« vm/debugger.h ('K') | « vm/debugger_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698