Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: src/ast/scopes.cc

Issue 2108193003: [modules] AST and parser rework. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@anonymous-declarations
Patch Set: Rebase. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/ast/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index 772a223ef32998a685972f7961fb56c0cd0d2379..e12c2f9b3ce9ba2b2d94c8854abae1e6b401c6b4 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -90,8 +90,9 @@ Scope::Scope(Zone* zone, Scope* outer_scope, ScopeType scope_type,
params_(4, zone),
unresolved_(16, zone),
decls_(4, zone),
- module_descriptor_(
- scope_type == MODULE_SCOPE ? ModuleDescriptor::New(zone) : NULL),
+ module_descriptor_(scope_type == MODULE_SCOPE ? new (zone)
+ ModuleDescriptor(zone)
+ : NULL),
sloppy_block_function_map_(zone),
already_resolved_(false),
ast_value_factory_(ast_value_factory),
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/ast/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698