Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 4aa6f719f3b9361d7cf6a1622f4cc7cc8dd0f908..162dbffe5b237564f8fc4362cb246187371ab053 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -572,14 +572,13 @@ class ParserTraits { |
// Temporary glue; these functions will move to ParserBase. |
Expression* ParseV8Intrinsic(bool* ok); |
FunctionLiteral* ParseFunctionLiteral( |
- const AstRawString* name, |
- Scanner::Location function_name_location, |
+ const AstRawString* 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); |
+ FunctionLiteral::IsGeneratorFlag is_generator, |
marja
2014/08/22 08:22:46
Are these flag mutually exclusive; Afaik an arrow
rossberg
2014/08/22 09:34:31
Generator methods can be concise, too. But that's
arv (Not doing code reviews)
2014/08/22 23:16:02
I initially added kConciseMethod to FunctionLitera
|
+ FunctionLiteral::IsArrowFlag is_arrow, |
+ FunctionLiteral::IsConciseMethodFlag is_concise_method, |
+ int function_token_position, FunctionLiteral::FunctionType type, |
+ FunctionLiteral::ArityRestriction arity_restriction, bool* ok); |
V8_INLINE void SkipLazyFunctionBody(const AstRawString* name, |
int* materialized_literal_count, |
int* expected_property_count, bool* ok); |
@@ -733,14 +732,13 @@ class Parser : public ParserBase<ParserTraits> { |
Statement* body, bool* ok); |
FunctionLiteral* ParseFunctionLiteral( |
- const AstRawString* name, |
- Scanner::Location function_name_location, |
+ const AstRawString* 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); |
+ 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); |
// Magical syntax support. |
Expression* ParseV8Intrinsic(bool* ok); |