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

Unified Diff: src/preparser.h

Issue 1134453002: Revert of Remove Scope::scope_uses_arguments_ flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 7 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/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index bdc0bdceba89a83beee326da42d0791e1575cc2e..543f82ee56a281dfc5984a7aa9a9be91319cf659 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -2071,6 +2071,7 @@
classifier->RecordExpressionError(scanner()->location(),
"strong_arguments");
}
+ if (this->IsArguments(name)) scope_->RecordArgumentsUsage();
return name;
} else if (is_sloppy(language_mode()) &&
(next == Token::FUTURE_STRICT_RESERVED_WORD ||
@@ -2103,6 +2104,7 @@
}
IdentifierT name = this->GetSymbol(scanner());
+ if (this->IsArguments(name)) scope_->RecordArgumentsUsage();
return name;
}
@@ -2120,6 +2122,7 @@
}
IdentifierT name = this->GetSymbol(scanner());
+ if (this->IsArguments(name)) scope_->RecordArgumentsUsage();
return name;
}
« no previous file with comments | « no previous file | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698