Index: runtime/bin/main.cc |
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc |
index b70226ff372d71acd9ce43816b644ec2b83f005a..fa40b2464cad280f8aff96ad0547e530336eccda 100644 |
--- a/runtime/bin/main.cc |
+++ b/runtime/bin/main.cc |
@@ -11,6 +11,7 @@ |
#include "bin/builtin.h" |
#include "bin/dartutils.h" |
+#include "bin/eventhandler.h" |
#include "bin/file.h" |
#include "bin/platform.h" |
@@ -381,6 +382,9 @@ int main(int argc, char** argv) { |
Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); |
+ // Initialize event handler. |
+ EventHandler::Initialize(); |
+ |
// Initialize the Dart VM. |
Dart_Initialize(CreateIsolateAndSetup, NULL); |
@@ -504,5 +508,8 @@ int main(int argc, char** argv) { |
DumpPprofSymbolInfo(); |
// Shutdown the isolate. |
Dart_ShutdownIsolate(); |
+ // Terminate event handler. |
+ EventHandler::Terminate(); |
+ |
return 0; |
} |