diff options
Diffstat (limited to 'deps/v8/test/cctest/test-lockers.cc')
-rw-r--r-- | deps/v8/test/cctest/test-lockers.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/deps/v8/test/cctest/test-lockers.cc b/deps/v8/test/cctest/test-lockers.cc index ed01d6ed21..571b0000eb 100644 --- a/deps/v8/test/cctest/test-lockers.cc +++ b/deps/v8/test/cctest/test-lockers.cc @@ -58,7 +58,6 @@ class DeoptimizeCodeThread : public v8::base::Thread { v8::Local<v8::Context> context = v8::Local<v8::Context>::New(isolate_, context_); v8::Context::Scope context_scope(context); - CHECK_EQ(isolate_, v8::Isolate::GetCurrent()); // This code triggers deoptimization of some function that will be // used in a different thread. CompileRun(source_); @@ -73,7 +72,7 @@ class DeoptimizeCodeThread : public v8::base::Thread { }; void UnlockForDeoptimization(const v8::FunctionCallbackInfo<v8::Value>& args) { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); + v8::Isolate* isolate = args.GetIsolate(); // Gets the pointer to the thread that will trigger the deoptimization of the // code. DeoptimizeCodeThread* deoptimizer = @@ -94,7 +93,7 @@ void UnlockForDeoptimization(const v8::FunctionCallbackInfo<v8::Value>& args) { void UnlockForDeoptimizationIfReady( const v8::FunctionCallbackInfo<v8::Value>& args) { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); + v8::Isolate* isolate = args.GetIsolate(); bool* ready_to_deoptimize = reinterpret_cast<bool*>(isolate->GetData(1)); if (*ready_to_deoptimize) { // The test should enter here only once, so put the flag back to false. @@ -297,7 +296,6 @@ class KangarooThread : public v8::base::Thread { { v8::Locker locker(isolate_); v8::Isolate::Scope isolate_scope(isolate_); - CHECK_EQ(isolate_, v8::Isolate::GetCurrent()); v8::HandleScope scope(isolate_); v8::Local<v8::Context> context = v8::Local<v8::Context>::New(isolate_, context_); @@ -338,7 +336,6 @@ TEST(KangarooIsolates) { v8::HandleScope handle_scope(isolate); v8::Local<v8::Context> context = v8::Context::New(isolate); v8::Context::Scope context_scope(context); - CHECK_EQ(isolate, v8::Isolate::GetCurrent()); CompileRun("function getValue() { return 30; }"); thread1.reset(new KangarooThread(isolate, context)); } @@ -416,7 +413,6 @@ class IsolateLockingThreadWithLocalContext : public JoinableThread { v8::Isolate::Scope isolate_scope(isolate_); v8::HandleScope handle_scope(isolate_); LocalContext local_context(isolate_); - CHECK_EQ(isolate_, v8::Isolate::GetCurrent()); CalcFibAndCheck(local_context.local()); } private: |