Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index 4e8b7324d46639420b193eec8cae48db282b579f..f3961a4adc5a4752234b58891e2f25eaa15c89c6 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -213,6 +213,7 @@ static inline v8::Local<v8::Value> CompileRun(const char* source) { |
return v8::Script::Compile(v8::String::New(source))->Run(); |
} |
+ |
// Helper function that compiles and runs the source with given origin. |
static inline v8::Local<v8::Value> CompileRunWithOrigin(const char* source, |
const char* origin_url, |
@@ -225,4 +226,11 @@ static inline v8::Local<v8::Value> CompileRunWithOrigin(const char* source, |
} |
+// Pick a slightly different port to allow tests to be run in parallel. |
+static inline int FlagDependentPortOffset() { |
+ return ::v8::internal::FLAG_crankshaft == false ? 100 : |
+ ::v8::internal::FLAG_always_opt ? 200 : 0; |
+} |
+ |
+ |
#endif // ifndef CCTEST_H_ |