Commit 832d5f97 authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[parser] Remove unused BlockState arg from ParseStandardForLoop()

Change-Id: I612b7500556eb9763d6668716b1b7331e31f3079
Reviewed-on: https://chromium-review.googlesource.com/614399Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47349}
parent 3bae8d6c
......@@ -1231,7 +1231,7 @@ class ParserBase {
// Parse a C-style for loop: 'for (<init>; <cond>; <step>) { ... }'
StatementT ParseStandardForLoop(int stmt_pos, StatementT init,
bool bound_names_are_lexical,
ForInfo* for_info, BlockState* for_state,
ForInfo* for_info,
ZoneList<const AstRawString*>* labels,
bool* ok);
StatementT ParseForAwaitStatement(ZoneList<const AstRawString*>* labels,
......@@ -5594,7 +5594,7 @@ typename ParserBase<Impl>::StatementT ParserBase<Impl>::ParseForStatement(
// Standard 'for' loop, we have parsed the initializer at this point.
return ParseStandardForLoop(stmt_pos, init, bound_names_are_lexical,
&for_info, &for_state, labels, ok);
&for_info, labels, ok);
}
template <typename Impl>
......@@ -5732,8 +5732,7 @@ ParserBase<Impl>::ParseForEachStatementWithoutDeclarations(
template <typename Impl>
typename ParserBase<Impl>::StatementT ParserBase<Impl>::ParseStandardForLoop(
int stmt_pos, StatementT init, bool bound_names_are_lexical,
ForInfo* for_info, BlockState* for_state,
ZoneList<const AstRawString*>* labels, bool* ok) {
ForInfo* for_info, ZoneList<const AstRawString*>* labels, bool* ok) {
auto loop = factory()->NewForStatement(labels, stmt_pos);
typename Types::Target target(this, loop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment