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

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

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor cleanup per Adam Created 4 years, 5 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
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/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 typedef int AstProperties; 596 typedef int AstProperties;
597 597
598 typedef v8::internal::ExpressionClassifier<PreParserTraits> 598 typedef v8::internal::ExpressionClassifier<PreParserTraits>
599 ExpressionClassifier; 599 ExpressionClassifier;
600 600
601 // Return types for traversing functions. 601 // Return types for traversing functions.
602 typedef PreParserIdentifier Identifier; 602 typedef PreParserIdentifier Identifier;
603 typedef PreParserExpression Expression; 603 typedef PreParserExpression Expression;
604 typedef PreParserExpression YieldExpression; 604 typedef PreParserExpression YieldExpression;
605 typedef PreParserExpression FunctionLiteral; 605 typedef PreParserExpression FunctionLiteral;
606 typedef PreParserExpression ClassLiteral;
607 typedef PreParserExpression ObjectLiteralProperty; 606 typedef PreParserExpression ObjectLiteralProperty;
608 typedef PreParserExpression Literal; 607 typedef PreParserExpression Literal;
609 typedef PreParserExpressionList ExpressionList; 608 typedef PreParserExpressionList ExpressionList;
610 typedef PreParserExpressionList PropertyList; 609 typedef PreParserExpressionList PropertyList;
611 typedef PreParserIdentifier FormalParameter; 610 typedef PreParserIdentifier FormalParameter;
612 typedef PreParserFormalParameters FormalParameters; 611 typedef PreParserFormalParameters FormalParameters;
613 typedef PreParserStatementList StatementList; 612 typedef PreParserStatementList StatementList;
614 613
615 // For constructing objects returned by the traversing functions. 614 // For constructing objects returned by the traversing functions.
616 typedef PreParserFactory Factory; 615 typedef PreParserFactory Factory;
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 const PreParserFormalParameters& parameters, FunctionKind kind, 1261 const PreParserFormalParameters& parameters, FunctionKind kind,
1263 FunctionLiteral::FunctionType function_type, bool* ok) { 1262 FunctionLiteral::FunctionType function_type, bool* ok) {
1264 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters, 1263 return pre_parser_->ParseEagerFunctionBody(function_name, pos, parameters,
1265 kind, function_type, ok); 1264 kind, function_type, ok);
1266 } 1265 }
1267 1266
1268 } // namespace internal 1267 } // namespace internal
1269 } // namespace v8 1268 } // namespace v8
1270 1269
1271 #endif // V8_PARSING_PREPARSER_H 1270 #endif // V8_PARSING_PREPARSER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698