| Index: src/deoptimizer.cc
|
| diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
|
| index af0a171db78c430205da155ac54e0c393f2b45d6..f6eafd87589a891c56c5e15ddf41f3e9fcc98df9 100644
|
| --- a/src/deoptimizer.cc
|
| +++ b/src/deoptimizer.cc
|
| @@ -269,7 +269,7 @@ void Deoptimizer::DeoptimizeGlobalObject(JSObject* object) {
|
| void Deoptimizer::VisitAllOptimizedFunctionsForContext(
|
| Context* context, OptimizedFunctionVisitor* visitor) {
|
| Isolate* isolate = context->GetIsolate();
|
| - ZoneScope zone_scope(isolate, DELETE_ON_EXIT);
|
| + ZoneScope zone_scope(isolate->runtime_zone(), DELETE_ON_EXIT);
|
| AssertNoAllocation no_allocation;
|
|
|
| ASSERT(context->IsGlobalContext());
|
| @@ -278,11 +278,11 @@ void Deoptimizer::VisitAllOptimizedFunctionsForContext(
|
|
|
| // Create a snapshot of the optimized functions list. This is needed because
|
| // visitors might remove more than one link from the list at once.
|
| - ZoneList<JSFunction*> snapshot(1, isolate->zone());
|
| + ZoneList<JSFunction*> snapshot(1, isolate->runtime_zone());
|
| Object* element = context->OptimizedFunctionsListHead();
|
| while (!element->IsUndefined()) {
|
| JSFunction* element_function = JSFunction::cast(element);
|
| - snapshot.Add(element_function, isolate->zone());
|
| + snapshot.Add(element_function, isolate->runtime_zone());
|
| element = element_function->next_function_link();
|
| }
|
|
|
|
|