| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 7ce8e3d91aa4628d1d5dde2474ac10cc9164bab7..0543b9f559998ace89799e9eae125684da64cfb7 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -91,17 +91,16 @@ PreParserExpression PreParserTraits::ParseV8Intrinsic(bool* ok) {
|
|
|
|
|
| PreParserExpression PreParserTraits::ParseFunctionLiteral(
|
| - PreParserIdentifier name,
|
| - Scanner::Location function_name_location,
|
| - bool name_is_strict_reserved,
|
| - bool is_generator,
|
| - int function_token_position,
|
| - FunctionLiteral::FunctionType type,
|
| - FunctionLiteral::ArityRestriction arity_restriction,
|
| - bool* ok) {
|
| + PreParserIdentifier name, Scanner::Location function_name_location,
|
| + bool name_is_strict_reserved, FunctionLiteral::IsGeneratorFlag is_generator,
|
| + FunctionLiteral::IsArrowFlag is_arrow,
|
| + FunctionLiteral::IsConciseMethodFlag is_concise_method,
|
| + int function_token_position, FunctionLiteral::FunctionType type,
|
| + FunctionLiteral::ArityRestriction arity_restriction, bool* ok) {
|
| return pre_parser_->ParseFunctionLiteral(
|
| name, function_name_location, name_is_strict_reserved, is_generator,
|
| - function_token_position, type, arity_restriction, ok);
|
| + is_arrow, is_concise_method, function_token_position, type,
|
| + arity_restriction, ok);
|
| }
|
|
|
|
|
| @@ -329,14 +328,12 @@ PreParser::Statement PreParser::ParseFunctionDeclaration(bool* ok) {
|
| bool is_strict_reserved = false;
|
| Identifier name = ParseIdentifierOrStrictReservedWord(
|
| &is_strict_reserved, CHECK_OK);
|
| - ParseFunctionLiteral(name,
|
| - scanner()->location(),
|
| - is_strict_reserved,
|
| - is_generator,
|
| - pos,
|
| - FunctionLiteral::DECLARATION,
|
| - FunctionLiteral::NORMAL_ARITY,
|
| - CHECK_OK);
|
| + ParseFunctionLiteral(
|
| + name, scanner()->location(), is_strict_reserved,
|
| + is_generator ? FunctionLiteral::kIsGenerator
|
| + : FunctionLiteral::kNotGenerator,
|
| + FunctionLiteral::kNotArrow, FunctionLiteral::kNotConciseMethod, pos,
|
| + FunctionLiteral::DECLARATION, FunctionLiteral::NORMAL_ARITY, CHECK_OK);
|
| return Statement::FunctionDeclaration();
|
| }
|
|
|
| @@ -794,14 +791,12 @@ PreParser::Statement PreParser::ParseDebuggerStatement(bool* ok) {
|
|
|
|
|
| PreParser::Expression PreParser::ParseFunctionLiteral(
|
| - Identifier function_name,
|
| - Scanner::Location function_name_location,
|
| - bool name_is_strict_reserved,
|
| - bool is_generator,
|
| - int function_token_pos,
|
| - FunctionLiteral::FunctionType function_type,
|
| - FunctionLiteral::ArityRestriction arity_restriction,
|
| - bool* ok) {
|
| + Identifier function_name, Scanner::Location function_name_location,
|
| + bool name_is_strict_reserved, FunctionLiteral::IsGeneratorFlag is_generator,
|
| + FunctionLiteral::IsArrowFlag is_arrow,
|
| + FunctionLiteral::IsConciseMethodFlag is_concise_method,
|
| + int function_token_pos, FunctionLiteral::FunctionType function_type,
|
| + FunctionLiteral::ArityRestriction arity_restriction, bool* ok) {
|
| // Function ::
|
| // '(' FormalParameterList? ')' '{' FunctionBody '}'
|
|
|
|
|