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

Unified Diff: test/cctest/cctest.cc

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.cc
===================================================================
--- test/cctest/cctest.cc (revision 3427)
+++ test/cctest/cctest.cc (working copy)
@@ -29,10 +29,22 @@
#include "cctest.h"
#include "debug.h"
-
+v8::AllowSeveralV8InstancesInProcess v8_please;
CcTest* CcTest::last_ = NULL;
+void CcTest::Run() {
+ const int kAdditionalParallelThreads = 0;
+ V8Runner** runners = new V8Runner*[kAdditionalParallelThreads];
+ for (int i = 0; i < kAdditionalParallelThreads; ++i) {
+ (runners[i] = new V8Runner(callback_))->Start();
+ }
+ callback_();
+ for (int i = 0; i < kAdditionalParallelThreads; ++i) {
+ runners[i]->Join();
+ }
+}
+
CcTest::CcTest(TestFunction* callback, const char* file, const char* name,
const char* dependency, bool enabled)
: callback_(callback), name_(name), dependency_(dependency), prev_(last_) {
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698