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

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

Issue 1566053002: Clean up FunctionLiteral AST node cruft (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 const Runtime::Function* function, 520 const Runtime::Function* function,
521 PreParserExpressionList arguments, 521 PreParserExpressionList arguments,
522 int pos) { 522 int pos) {
523 return PreParserExpression::Default(); 523 return PreParserExpression::Default();
524 } 524 }
525 PreParserStatement NewReturnStatement(PreParserExpression expression, 525 PreParserStatement NewReturnStatement(PreParserExpression expression,
526 int pos) { 526 int pos) {
527 return PreParserStatement::Default(); 527 return PreParserStatement::Default();
528 } 528 }
529 PreParserExpression NewFunctionLiteral( 529 PreParserExpression NewFunctionLiteral(
530 PreParserIdentifier name, AstValueFactory* ast_value_factory, 530 PreParserIdentifier name, Scope* scope, PreParserStatementList body,
531 Scope* scope, PreParserStatementList body, int materialized_literal_count, 531 int materialized_literal_count, int expected_property_count,
532 int expected_property_count, int parameter_count, 532 int parameter_count,
533 FunctionLiteral::ParameterFlag has_duplicate_parameters, 533 FunctionLiteral::ParameterFlag has_duplicate_parameters,
534 FunctionLiteral::FunctionType function_type, 534 FunctionLiteral::FunctionType function_type,
535 FunctionLiteral::IsFunctionFlag is_function,
536 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind, 535 FunctionLiteral::EagerCompileHint eager_compile_hint, FunctionKind kind,
537 int position) { 536 int position) {
538 return PreParserExpression::Default(); 537 return PreParserExpression::Default();
539 } 538 }
540 539
541 PreParserExpression NewSpread(PreParserExpression expression, int pos) { 540 PreParserExpression NewSpread(PreParserExpression expression, int pos) {
542 return PreParserExpression::Spread(expression); 541 return PreParserExpression::Spread(expression);
543 } 542 }
544 543
545 PreParserExpression NewEmptyParentheses(int pos) { 544 PreParserExpression NewEmptyParentheses(int pos) {
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 const PreParserFormalParameters& parameters, FunctionKind kind, 1125 const PreParserFormalParameters& parameters, FunctionKind kind,
1127 FunctionLiteral::FunctionType function_type, bool* ok) { 1126 FunctionLiteral::FunctionType function_type, bool* ok) {
1128 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1127 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1129 kind, function_type, ok); 1128 kind, function_type, ok);
1130 } 1129 }
1131 1130
1132 } // namespace internal 1131 } // namespace internal
1133 } // namespace v8 1132 } // namespace v8
1134 1133
1135 #endif // V8_PARSING_PREPARSER_H 1134 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698