| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 9c3a91e740dc082b2a17f449b4f63ad5edd98366..4204116aca69766bf791e454f8a259c9ed0b6eae 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -9342,8 +9342,7 @@ void ApiTestFuzzer::Setup(PartOfTest part) {
|
| int end = (count * (part + 1) / (LAST_PART + 1)) - 1;
|
| active_tests_ = tests_being_run_ = end - start + 1;
|
| for (int i = 0; i < tests_being_run_; i++) {
|
| - RegisterThreadedTest::nth(i)->fuzzer_ = new ApiTestFuzzer(
|
| - i::Isolate::Current(), i + start);
|
| + RegisterThreadedTest::nth(i)->fuzzer_ = new ApiTestFuzzer(i + start);
|
| }
|
| for (int i = 0; i < active_tests_; i++) {
|
| RegisterThreadedTest::nth(i)->fuzzer_->Start();
|
| @@ -10459,7 +10458,7 @@ class RegExpInterruptTest {
|
| gc_during_regexp_ = 0;
|
| regexp_success_ = false;
|
| gc_success_ = false;
|
| - GCThread gc_thread(i::Isolate::Current(), this);
|
| + GCThread gc_thread(this);
|
| gc_thread.Start();
|
| v8::Locker::StartPreemption(1);
|
|
|
| @@ -10479,8 +10478,8 @@ class RegExpInterruptTest {
|
|
|
| class GCThread : public i::Thread {
|
| public:
|
| - explicit GCThread(i::Isolate* isolate, RegExpInterruptTest* test)
|
| - : Thread(isolate, "GCThread"), test_(test) {}
|
| + explicit GCThread(RegExpInterruptTest* test)
|
| + : Thread("GCThread"), test_(test) {}
|
| virtual void Run() {
|
| test_->CollectGarbage();
|
| }
|
| @@ -10582,7 +10581,7 @@ class ApplyInterruptTest {
|
| gc_during_apply_ = 0;
|
| apply_success_ = false;
|
| gc_success_ = false;
|
| - GCThread gc_thread(i::Isolate::Current(), this);
|
| + GCThread gc_thread(this);
|
| gc_thread.Start();
|
| v8::Locker::StartPreemption(1);
|
|
|
| @@ -10602,8 +10601,8 @@ class ApplyInterruptTest {
|
|
|
| class GCThread : public i::Thread {
|
| public:
|
| - explicit GCThread(i::Isolate* isolate, ApplyInterruptTest* test)
|
| - : Thread(isolate, "GCThread"), test_(test) {}
|
| + explicit GCThread(ApplyInterruptTest* test)
|
| + : Thread("GCThread"), test_(test) {}
|
| virtual void Run() {
|
| test_->CollectGarbage();
|
| }
|
| @@ -10877,7 +10876,7 @@ class RegExpStringModificationTest {
|
| NONE,
|
| i::kNonStrictMode)->ToObjectChecked();
|
|
|
| - MorphThread morph_thread(i::Isolate::Current(), this);
|
| + MorphThread morph_thread(this);
|
| morph_thread.Start();
|
| v8::Locker::StartPreemption(1);
|
| LongRunningRegExp();
|
| @@ -10897,9 +10896,8 @@ class RegExpStringModificationTest {
|
|
|
| class MorphThread : public i::Thread {
|
| public:
|
| - explicit MorphThread(i::Isolate* isolate,
|
| - RegExpStringModificationTest* test)
|
| - : Thread(isolate, "MorphThread"), test_(test) {}
|
| + explicit MorphThread(RegExpStringModificationTest* test)
|
| + : Thread("MorphThread"), test_(test) {}
|
| virtual void Run() {
|
| test_->MorphString();
|
| }
|
| @@ -13716,8 +13714,8 @@ static int CalcFibonacci(v8::Isolate* isolate, int limit) {
|
|
|
| class IsolateThread : public v8::internal::Thread {
|
| public:
|
| - explicit IsolateThread(v8::Isolate* isolate, int fib_limit)
|
| - : Thread(NULL, "IsolateThread"),
|
| + IsolateThread(v8::Isolate* isolate, int fib_limit)
|
| + : Thread("IsolateThread"),
|
| isolate_(isolate),
|
| fib_limit_(fib_limit),
|
| result_(0) { }
|
| @@ -13797,7 +13795,7 @@ class InitDefaultIsolateThread : public v8::internal::Thread {
|
| };
|
|
|
| explicit InitDefaultIsolateThread(TestCase testCase)
|
| - : Thread(NULL, "InitDefaultIsolateThread"),
|
| + : Thread("InitDefaultIsolateThread"),
|
| testCase_(testCase),
|
| result_(false) { }
|
|
|
|
|