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

Side by Side Diff: src/parser.h

Issue 934323004: Teach ModuleDescriptor about basic local exports (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handled review comments, added message tests Created 5 years, 10 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_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 // for failure at the call sites. 704 // for failure at the call sites.
705 void* ParseStatementList(ZoneList<Statement*>* body, int end_token, 705 void* ParseStatementList(ZoneList<Statement*>* body, int end_token,
706 bool is_eval, Scope** ad_hoc_eval_scope, bool* ok); 706 bool is_eval, Scope** ad_hoc_eval_scope, bool* ok);
707 Statement* ParseStatementListItem(bool* ok); 707 Statement* ParseStatementListItem(bool* ok);
708 Statement* ParseModule(bool* ok); 708 Statement* ParseModule(bool* ok);
709 Statement* ParseModuleItem(bool* ok); 709 Statement* ParseModuleItem(bool* ok);
710 Literal* ParseModuleSpecifier(bool* ok); 710 Literal* ParseModuleSpecifier(bool* ok);
711 Statement* ParseImportDeclaration(bool* ok); 711 Statement* ParseImportDeclaration(bool* ok);
712 Statement* ParseExportDeclaration(bool* ok); 712 Statement* ParseExportDeclaration(bool* ok);
713 Statement* ParseExportDefault(bool* ok); 713 Statement* ParseExportDefault(bool* ok);
714 void* ParseExportClause(ZoneList<const AstRawString*>* names, 714 void* ParseExportClause(ZoneList<const AstRawString*>* export_names,
715 ZoneList<Scanner::Location>* export_locations,
716 ZoneList<const AstRawString*>* local_names,
715 Scanner::Location* reserved_loc, bool* ok); 717 Scanner::Location* reserved_loc, bool* ok);
716 void* ParseNamedImports(ZoneList<const AstRawString*>* names, bool* ok); 718 void* ParseNamedImports(ZoneList<const AstRawString*>* names, bool* ok);
717 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); 719 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok);
718 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); 720 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok);
719 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, 721 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names,
720 bool* ok); 722 bool* ok);
721 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, 723 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names,
722 bool* ok); 724 bool* ok);
723 Statement* ParseNativeDeclaration(bool* ok); 725 Statement* ParseNativeDeclaration(bool* ok);
724 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); 726 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 } 949 }
948 950
949 951
950 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 952 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
951 int start, Expression* tag) { 953 int start, Expression* tag) {
952 return parser_->CloseTemplateLiteral(state, start, tag); 954 return parser_->CloseTemplateLiteral(state, start, tag);
953 } 955 }
954 } } // namespace v8::internal 956 } } // namespace v8::internal
955 957
956 #endif // V8_PARSER_H_ 958 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/modules.cc ('k') | src/parser.cc » ('j') | test/message/export-duplicate.out » ('J')

Powered by Google App Engine
This is Rietveld 408576698