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" // TODO(titzer): remove this include dependency | 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency |
(...skipping 907 matching lines...) Loading... |
918 Statement* ParseImportDeclaration(bool* ok); | 918 Statement* ParseImportDeclaration(bool* ok); |
919 Statement* ParseExportDeclaration(bool* ok); | 919 Statement* ParseExportDeclaration(bool* ok); |
920 Statement* ParseExportDefault(bool* ok); | 920 Statement* ParseExportDefault(bool* ok); |
921 void* ParseExportClause(ZoneList<const AstRawString*>* export_names, | 921 void* ParseExportClause(ZoneList<const AstRawString*>* export_names, |
922 ZoneList<Scanner::Location>* export_locations, | 922 ZoneList<Scanner::Location>* export_locations, |
923 ZoneList<const AstRawString*>* local_names, | 923 ZoneList<const AstRawString*>* local_names, |
924 Scanner::Location* reserved_loc, bool* ok); | 924 Scanner::Location* reserved_loc, bool* ok); |
925 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); | 925 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); |
926 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 926 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
927 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 927 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
| 928 Statement* ParseWrappedStatement(ZoneList<const AstRawString*>* labels, |
| 929 bool* ok); |
928 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, | 930 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
929 bool* ok); | 931 bool* ok); |
930 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 932 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
931 bool* ok); | 933 bool* ok); |
932 Statement* ParseNativeDeclaration(bool* ok); | 934 Statement* ParseNativeDeclaration(bool* ok); |
933 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 935 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
934 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 936 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
935 ZoneList<const AstRawString*>* names, | 937 ZoneList<const AstRawString*>* names, |
936 bool* ok); | 938 bool* ok); |
937 Block* ParseVariableDeclarations(VariableDeclarationContext var_context, | 939 Block* ParseVariableDeclarations(VariableDeclarationContext var_context, |
(...skipping 235 matching lines...) Loading... |
1173 } | 1175 } |
1174 | 1176 |
1175 | 1177 |
1176 Expression* ParserTraits::SpreadCallNew( | 1178 Expression* ParserTraits::SpreadCallNew( |
1177 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { | 1179 Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) { |
1178 return parser_->SpreadCallNew(function, args, pos); | 1180 return parser_->SpreadCallNew(function, args, pos); |
1179 } | 1181 } |
1180 } } // namespace v8::internal | 1182 } } // namespace v8::internal |
1181 | 1183 |
1182 #endif // V8_PARSER_H_ | 1184 #endif // V8_PARSER_H_ |
OLD | NEW |