| Index: src/debug/debug-scopes.cc
|
| diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc
|
| index de96034abd8e5dd5b614a7a7470424031454a9bd..a2f6e39b93eaf9432e47a202fcdc49f7c07ee9ee 100644
|
| --- a/src/debug/debug-scopes.cc
|
| +++ b/src/debug/debug-scopes.cc
|
| @@ -86,12 +86,11 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector,
|
|
|
| // Reparse the code and analyze the scopes.
|
| // Check whether we are in global, eval or function code.
|
| - Zone zone(isolate->allocator(), ZONE_NAME);
|
| std::unique_ptr<ParseInfo> info;
|
| if (scope_info->scope_type() != FUNCTION_SCOPE) {
|
| // Global or eval code.
|
| Handle<Script> script(Script::cast(shared_info->script()));
|
| - info.reset(new ParseInfo(&zone, script));
|
| + info.reset(new ParseInfo(script));
|
| if (scope_info->scope_type() == EVAL_SCOPE) {
|
| info->set_eval();
|
| if (!function->context()->IsNativeContext()) {
|
| @@ -107,7 +106,7 @@ ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector,
|
| }
|
| } else {
|
| // Inner function.
|
| - info.reset(new ParseInfo(&zone, shared_info));
|
| + info.reset(new ParseInfo(shared_info));
|
| }
|
| if (parsing::ParseAny(info.get()) && Rewriter::Rewrite(info.get())) {
|
| DeclarationScope* scope = info->literal()->scope();
|
|
|