Revision: 10580
Author:   [email protected]
Date:     Wed Feb  1 08:47:06 2012
Log: Allow d8 to run a script multiple times, each time with a new context.

BUG=
TEST=

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

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

=======================================
--- /branches/bleeding_edge/src/d8.cc   Tue Jan 24 07:48:16 2012
+++ /branches/bleeding_edge/src/d8.cc   Wed Feb  1 08:47:06 2012
@@ -1485,6 +1485,12 @@
     }
     printf("======== Full Deoptimization =======\n");
     Testing::DeoptimizeAll();
+  } else if (i::FLAG_stress_runs > 0) {
+    int stress_runs = i::FLAG_stress_runs;
+    for (int i = 0; i < stress_runs && result == 0; i++) {
+      printf("============ Run %d/%d ============\n", i + 1, stress_runs);
+      result = RunMain(argc, argv);
+    }
   } else {
     result = RunMain(argc, argv);
   }

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

Reply via email to