Fix dumping of counters in d8.
authorMichael Starzinger <mstarzinger@chromium.org>
Thu, 13 Nov 2014 15:39:10 +0000 (16:39 +0100)
committerMichael Starzinger <mstarzinger@chromium.org>
Thu, 13 Nov 2014 15:39:18 +0000 (15:39 +0000)
R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/721193002

Cr-Commit-Position: refs/heads/master@{#25334}

src/d8.cc

index fb24bcc..8b4adf0 100644 (file)
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1746,6 +1746,7 @@ int Shell::Main(int argc, char* argv[]) {
       RunShell(isolate);
     }
   }
+  OnExit();
 #ifndef V8_SHARED
   // Dump basic block profiling data.
   if (i::BasicBlockProfiler* profiler =
@@ -1759,8 +1760,6 @@ int Shell::Main(int argc, char* argv[]) {
   V8::ShutdownPlatform();
   delete platform;
 
-  OnExit();
-
   return result;
 }