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

Unified Diff: src/parser.h

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement handling of arrow functions in the parser Created 6 years, 9 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 | « src/objects-inl.h ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index f49626766eb1dab32ea2bddb5d99289aa91ecd10..d924cdf57db60ad6f0e02b8fe1b3340daa67493a 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -587,7 +587,8 @@ class ParserTraits {
Handle<String> name,
Scanner::Location function_name_location,
bool name_is_strict_reserved,
- bool is_generator,
+ FunctionParsingMode parsing_mode,
+ Expression* params_ast,
int function_token_position,
FunctionLiteral::FunctionType type,
bool* ok);
@@ -732,11 +733,15 @@ class Parser : public ParserBase<ParserTraits> {
Expression* subject,
Statement* body);
+ Vector<VariableProxy*> ParameterListFromExpression(Expression* expression,
+ bool* ok);
+
FunctionLiteral* ParseFunctionLiteral(
Handle<String> name,
Scanner::Location function_name_location,
bool name_is_strict_reserved,
- bool is_generator,
+ FunctionParsingMode parsing_mode,
+ Expression* params_ast,
int function_token_position,
FunctionLiteral::FunctionType type,
bool* ok);
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698