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

Side by Side Diff: src/parsing/preparser.h

Issue 1564083002: Add spread rewriting (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase (just see comments) Created 4 years, 11 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 unified diff | Download patch
« src/parsing/parser.cc ('K') | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 PreParserIdentifier name, Scope* scope, PreParserStatementList body, 543 PreParserIdentifier name, Scope* scope, PreParserStatementList body,
544 int materialized_literal_count, int expected_property_count, 544 int materialized_literal_count, int expected_property_count,
545 int parameter_count, 545 int parameter_count,
546 FunctionLiteral::ParameterFlag has_duplicate_parameters, 546 FunctionLiteral::ParameterFlag has_duplicate_parameters,
547 FunctionLiteral::FunctionType function_type, 547 FunctionLiteral::FunctionType function_type,
548 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind, 548 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind,
549 int position) { 549 int position) {
550 return PreParserExpression::Default(); 550 return PreParserExpression::Default();
551 } 551 }
552 552
553 PreParserExpression NewSpread(PreParserExpression expression, int pos) { 553 PreParserExpression NewSpread(PreParserExpression expression, int pos,
554 int expr_pos) {
554 return PreParserExpression::Spread(expression); 555 return PreParserExpression::Spread(expression);
555 } 556 }
556 557
557 PreParserExpression NewEmptyParentheses(int pos) { 558 PreParserExpression NewEmptyParentheses(int pos) {
558 return PreParserExpression::Default(); 559 return PreParserExpression::Default();
559 } 560 }
560 561
561 // Return the object itself as AstVisitor and implement the needed 562 // Return the object itself as AstVisitor and implement the needed
562 // dummy method right in this class. 563 // dummy method right in this class.
563 PreParserFactory* visitor() { return this; } 564 PreParserFactory* visitor() { return this; }
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 const PreParserFormalParameters& parameters, FunctionKind kind, 1167 const PreParserFormalParameters& parameters, FunctionKind kind,
1167 FunctionLiteral::FunctionType function_type, bool* ok) { 1168 FunctionLiteral::FunctionType function_type, bool* ok) {
1168 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1169 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1169 kind, function_type, ok); 1170 kind, function_type, ok);
1170 } 1171 }
1171 1172
1172 } // namespace internal 1173 } // namespace internal
1173 } // namespace v8 1174 } // namespace v8
1174 1175
1175 #endif // V8_PARSING_PREPARSER_H 1176 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« src/parsing/parser.cc ('K') | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698