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

Unified Diff: src/ast/scopes.cc

Issue 2428533002: Simplify should-eager-compile handling (Closed)
Patch Set: 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 | « src/ast/ast.cc ('k') | no next file » | 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 ae5d972a72f9d326ca6e6a96aed4dd311ebc8ca6..55fd739d62a95c26f4e5dc8181ffd3636aa889de 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -310,12 +310,11 @@ bool Scope::HasSimpleParameters() {
}
bool DeclarationScope::ShouldEagerCompile() const {
- if (!AllowsLazyCompilation()) return true;
- return !is_lazily_parsed_ && should_eager_compile_;
+ return force_eager_compilation_ || should_eager_compile_;
}
void DeclarationScope::set_should_eager_compile() {
- should_eager_compile_ = true;
+ should_eager_compile_ = !is_lazily_parsed_;
jochen (gone - plz use gerrit) 2016/10/17 11:23:37 when is is_lazily_parsed_ true here?
Toon Verwaest 2016/10/17 11:28:35 If we preparsed the function for example. E.g.,:
}
void DeclarationScope::set_asm_module() {
« no previous file with comments | « src/ast/ast.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698