Index: src/debug/debug-scopes.cc |
diff --git a/src/debug/debug-scopes.cc b/src/debug/debug-scopes.cc |
index 0e81498c5d8be7cd2a5d35f36a8a238b4f8eca95..c5beb7cfe8c4701946014f5807ad5a456280d201 100644 |
--- a/src/debug/debug-scopes.cc |
+++ b/src/debug/debug-scopes.cc |
@@ -87,12 +87,11 @@ |
// 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()) { |
@@ -108,7 +107,7 @@ |
} |
} 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(); |