Revision: 13031
Author:   [email protected]
Date:     Thu Nov 22 00:35:21 2012
Log:      Fix counters in d8.

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/11416135
http://code.google.com/p/v8/source/detail?r=13031

Modified:
 /branches/bleeding_edge/src/d8.cc
 /branches/bleeding_edge/src/d8.h

=======================================
--- /branches/bleeding_edge/src/d8.cc   Tue Nov 20 06:47:56 2012
+++ /branches/bleeding_edge/src/d8.cc   Thu Nov 22 00:35:21 2012
@@ -1269,8 +1269,11 @@
     V8::SetAddHistogramSampleFunction(AddHistogramSample);
   }
 #endif  // V8_SHARED
-  if (options.test_shell) return;
+}

+
+void Shell::InitializeDebugger(Isolate* isolate) {
+  if (options.test_shell) return;
 #ifndef V8_SHARED
   Locker lock;
   HandleScope scope;
@@ -1897,8 +1900,9 @@
   int result = 0;
   Isolate* isolate = Isolate::GetCurrent();
   {
-    Symbols symbols(isolate);
     Initialize(isolate);
+    Symbols symbols(isolate);
+    InitializeDebugger(isolate);

     if (options.stress_opt || options.stress_deopt) {
       Testing::SetStressRunType(options.stress_opt
=======================================
--- /branches/bleeding_edge/src/d8.h    Tue Nov 20 06:47:56 2012
+++ /branches/bleeding_edge/src/d8.h    Thu Nov 22 00:35:21 2012
@@ -384,6 +384,7 @@
   static void InstallUtilityScript();
 #endif  // V8_SHARED
   static void Initialize(Isolate* isolate);
+  static void InitializeDebugger(Isolate* isolate);
   static void RunShell(Isolate* isolate);
   static bool SetOptions(int argc, char* argv[]);
   static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to