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

Unified Diff: src/ast/scopes.cc

Issue 2536153002: [scopes] Propagate inner-scope-calls-eval to make sure we context allocate in inserted scopes (Closed)
Patch Set: Created 4 years, 1 month 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/scopes.h ('k') | test/mjsunit/regress/regress-5664.js » ('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 4ce1c0d85f7970f0b1cd5807d0519aac825d88c3..3da598f87b8e9e8a26cb032729a53e37ee90e982 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -795,6 +795,7 @@ void Scope::PropagateUsageFlagsToScope(Scope* other) {
DCHECK(!already_resolved_);
DCHECK(!other->already_resolved_);
if (calls_eval()) other->RecordEvalCall();
+ if (inner_scope_calls_eval_) other->inner_scope_calls_eval_ = true;
}
Variable* Scope::LookupInScopeInfo(const AstRawString* name) {
« no previous file with comments | « src/ast/scopes.h ('k') | test/mjsunit/regress/regress-5664.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698