| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 305fbfb5c85ec863960a0beb2e65b27d62ed9010..5d4911bb5ade1070e44ca83fc47a700fd45cce98 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -4560,7 +4560,6 @@ Persistent<Context> v8::Context::New(
|
|
|
| // Create the environment.
|
| env = isolate->bootstrapper()->CreateEnvironment(
|
| - isolate,
|
| Utils::OpenHandle(*global_object, true),
|
| proxy_template,
|
| extensions);
|
| @@ -6558,8 +6557,10 @@ void Testing::PrepareStressRun(int run) {
|
| }
|
|
|
|
|
| +// TODO(svenpanne) Deprecate this.
|
| void Testing::DeoptimizeAll() {
|
| - i::HandleScope scope;
|
| + i::Isolate* isolate = i::Isolate::Current();
|
| + i::HandleScope scope(isolate);
|
| internal::Deoptimizer::DeoptimizeAll();
|
| }
|
|
|
|
|