Commit a701fce8 authored by littledan's avatar littledan Committed by Commit bot

[parser] Cleanup: remove unused parameters to DeclareFunction

R=adamk

Review-Url: https://codereview.chromium.org/2677373002
Cr-Commit-Position: refs/heads/master@{#42976}
parent 0f1c626d
......@@ -3881,7 +3881,6 @@ ParserBase<Impl>::ParseHoistableDeclaration(
!is_async && !(allow_harmony_restrictive_generators() && is_generator);
return impl()->DeclareFunction(variable_name, function, mode, pos,
is_generator, is_async,
is_sloppy_block_function, names, ok);
}
......
......@@ -1481,8 +1481,7 @@ void Parser::DeclareAndInitializeVariables(
Statement* Parser::DeclareFunction(const AstRawString* variable_name,
FunctionLiteral* function, VariableMode mode,
int pos, bool is_generator, bool is_async,
bool is_sloppy_block_function,
int pos, bool is_sloppy_block_function,
ZoneList<const AstRawString*>* names,
bool* ok) {
VariableProxy* proxy =
......
......@@ -351,8 +351,7 @@ class V8_EXPORT_PRIVATE Parser : public NON_EXPORTED_BASE(ParserBase<Parser>) {
Statement* DeclareFunction(const AstRawString* variable_name,
FunctionLiteral* function, VariableMode mode,
int pos, bool is_generator, bool is_async,
bool is_sloppy_block_function,
int pos, bool is_sloppy_block_function,
ZoneList<const AstRawString*>* names, bool* ok);
V8_INLINE Statement* DeclareClass(const AstRawString* variable_name,
Expression* value,
......
......@@ -1104,9 +1104,8 @@ class PreParser : public ParserBase<PreParser> {
V8_INLINE PreParserStatement DeclareFunction(
PreParserIdentifier variable_name, PreParserExpression function,
VariableMode mode, int pos, bool is_generator, bool is_async,
bool is_sloppy_block_function, ZoneList<const AstRawString*>* names,
bool* ok) {
VariableMode mode, int pos, bool is_sloppy_block_function,
ZoneList<const AstRawString*>* names, bool* ok) {
DCHECK_NULL(names);
if (variable_name.string_ != nullptr) {
DCHECK(track_unresolved_variables_);
......
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