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

Unified Diff: src/ast/scopes.cc

Issue 2405813002: Allow lazy parsing of functions nested in eager compiled functions (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « no previous file | src/compiler.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 20a29d3788d1b3e46ec6b958c45c836c6bd2ab4c..22661ec2b0bd91e90efc2fc27a1083417dcba83f 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -1119,9 +1119,7 @@ bool Scope::AllowsLazyParsingWithoutUnresolvedVariables() const {
// inner scopes to find out how to allocate variables on the block scope. At
// this point, declarations may not have yet been parsed.
for (const Scope* s = this; s != nullptr; s = s->outer_scope_) {
- if (s->is_block_scope()) return false;
- // TODO(marja): Refactor parsing modes: also add s->is_function_scope()
- // here.
+ if (s->is_block_scope() || s->is_function_scope()) return false;
}
return true;
}
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698