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

Side by Side Diff: src/parser.h

Issue 1084983002: [strong] Implement static restrictions on switch statement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback 3 Created 5 years, 8 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 | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »
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" // TODO(titzer): remove this include dependency 10 #include "src/compiler.h" // TODO(titzer): remove this include dependency
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
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* ParseStatementAsUnlabelled(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...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698