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

Unified Diff: src/ast/scopes.cc

Issue 2386623002: Mark param as used when we force context allocation due to implement access through arguments (Closed)
Patch Set: Update Created 4 years, 3 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 | test/mjsunit/regress/regress-abort-context-allocate-params.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 ad0df2b33e7a6d3e5848dc99ac4de97f790bb86e..3402188648f928c5b35a63d1d7645f8f6705370e 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -1743,6 +1743,7 @@ void DeclarationScope::AllocateParameterLocals() {
DCHECK(!has_rest_ || var != rest_parameter());
DCHECK_EQ(this, var->scope());
if (uses_sloppy_arguments) {
+ var->set_is_used();
var->ForceContextAllocation();
}
AllocateParameter(var, i);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-abort-context-allocate-params.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698