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

Side by Side Diff: src/parser.h

Issue 882893002: Implement ParseExportDeclaration per latest ES6 spec draft (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')
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_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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 744
745 // All ParseXXX functions take as the last argument an *ok parameter 745 // All ParseXXX functions take as the last argument an *ok parameter
746 // which is set to false if parsing failed; it is unchanged otherwise. 746 // which is set to false if parsing failed; it is unchanged otherwise.
747 // By making the 'exception handling' explicit, we are forced to check 747 // By making the 'exception handling' explicit, we are forced to check
748 // for failure at the call sites. 748 // for failure at the call sites.
749 void* ParseStatementList(ZoneList<Statement*>* processor, int end_token, 749 void* ParseStatementList(ZoneList<Statement*>* processor, int end_token,
750 bool is_eval, Scope** ad_hoc_eval_scope, bool* ok); 750 bool is_eval, Scope** ad_hoc_eval_scope, bool* ok);
751 Statement* ParseStatementListItem(bool* ok); 751 Statement* ParseStatementListItem(bool* ok);
752 Module* ParseModule(bool* ok); 752 Module* ParseModule(bool* ok);
753 Statement* ParseModuleItem(bool* ok); 753 Statement* ParseModuleItem(bool* ok);
754 Module* ParseModuleUrl(bool* ok); 754 Module* ParseModuleSpecifier(bool* ok);
755 Statement* ParseImportDeclaration(bool* ok); 755 Statement* ParseImportDeclaration(bool* ok);
756 Statement* ParseExportDeclaration(bool* ok); 756 Statement* ParseExportDeclaration(bool* ok);
757 Statement* ParseExportDefault(bool* ok);
758 void* ParseModuleDeclarationClause(ZoneList<const AstRawString*>* names,
759 bool* ok);
757 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); 760 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok);
758 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, 761 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names,
759 bool* ok); 762 bool* ok);
760 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, 763 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names,
761 bool* ok); 764 bool* ok);
762 Statement* ParseNativeDeclaration(bool* ok); 765 Statement* ParseNativeDeclaration(bool* ok);
763 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); 766 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok);
764 Block* ParseVariableStatement(VariableDeclarationContext var_context, 767 Block* ParseVariableStatement(VariableDeclarationContext var_context,
765 ZoneList<const AstRawString*>* names, 768 ZoneList<const AstRawString*>* names,
766 bool* ok); 769 bool* ok);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } 993 }
991 994
992 995
993 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 996 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
994 int start, Expression* tag) { 997 int start, Expression* tag) {
995 return parser_->CloseTemplateLiteral(state, start, tag); 998 return parser_->CloseTemplateLiteral(state, start, tag);
996 } 999 }
997 } } // namespace v8::internal 1000 } } // namespace v8::internal
998 1001
999 #endif // V8_PARSER_H_ 1002 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698