| OLD | NEW |
| 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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* ParseModuleSpecifier(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); | 757 Statement* ParseExportDefault(bool* ok); |
| 758 void* ParseModuleDeclarationClause(ZoneList<const AstRawString*>* names, | 758 void* ParseExportClause(ZoneList<const AstRawString*>* names, |
| 759 bool* ok); | 759 Scanner::Location* reserved_loc, bool* ok); |
| 760 void* ParseNamedImports(ZoneList<const AstRawString*>* names, bool* ok); |
| 760 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 761 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
| 761 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, | 762 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
| 762 bool* ok); | 763 bool* ok); |
| 763 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 764 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
| 764 bool* ok); | 765 bool* ok); |
| 765 Statement* ParseNativeDeclaration(bool* ok); | 766 Statement* ParseNativeDeclaration(bool* ok); |
| 766 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 767 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
| 767 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 768 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
| 768 ZoneList<const AstRawString*>* names, | 769 ZoneList<const AstRawString*>* names, |
| 769 bool* ok); | 770 bool* ok); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 } | 994 } |
| 994 | 995 |
| 995 | 996 |
| 996 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, | 997 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, |
| 997 int start, Expression* tag) { | 998 int start, Expression* tag) { |
| 998 return parser_->CloseTemplateLiteral(state, start, tag); | 999 return parser_->CloseTemplateLiteral(state, start, tag); |
| 999 } | 1000 } |
| 1000 } } // namespace v8::internal | 1001 } } // namespace v8::internal |
| 1001 | 1002 |
| 1002 #endif // V8_PARSER_H_ | 1003 #endif // V8_PARSER_H_ |
| OLD | NEW |