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

Side by Side Diff: src/parser.h

Issue 1309043004: Revert of Add a separate scope for switch (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/ast-value-factory.h ('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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 ZoneList<const AstRawString*>* labels, bool* ok); 1065 ZoneList<const AstRawString*>* labels, bool* ok);
1066 IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels, 1066 IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels,
1067 bool* ok); 1067 bool* ok);
1068 Statement* ParseContinueStatement(bool* ok); 1068 Statement* ParseContinueStatement(bool* ok);
1069 Statement* ParseBreakStatement(ZoneList<const AstRawString*>* labels, 1069 Statement* ParseBreakStatement(ZoneList<const AstRawString*>* labels,
1070 bool* ok); 1070 bool* ok);
1071 Statement* ParseReturnStatement(bool* ok); 1071 Statement* ParseReturnStatement(bool* ok);
1072 Statement* ParseWithStatement(ZoneList<const AstRawString*>* labels, 1072 Statement* ParseWithStatement(ZoneList<const AstRawString*>* labels,
1073 bool* ok); 1073 bool* ok);
1074 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); 1074 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok);
1075 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, 1075 SwitchStatement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels,
1076 bool* ok); 1076 bool* ok);
1077 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, 1077 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels,
1078 bool* ok); 1078 bool* ok);
1079 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, 1079 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels,
1080 bool* ok); 1080 bool* ok);
1081 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); 1081 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok);
1082 Statement* ParseThrowStatement(bool* ok); 1082 Statement* ParseThrowStatement(bool* ok);
1083 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); 1083 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value);
1084 TryStatement* ParseTryStatement(bool* ok); 1084 TryStatement* ParseTryStatement(bool* ok);
1085 DebuggerStatement* ParseDebuggerStatement(bool* ok); 1085 DebuggerStatement* ParseDebuggerStatement(bool* ok);
1086 1086
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 parser_->BuildParameterInitializationBlock(parameters, ok); 1363 parser_->BuildParameterInitializationBlock(parameters, ok);
1364 if (!*ok) return; 1364 if (!*ok) return;
1365 if (init_block != nullptr) { 1365 if (init_block != nullptr) {
1366 body->Add(init_block, parser_->zone()); 1366 body->Add(init_block, parser_->zone());
1367 } 1367 }
1368 } 1368 }
1369 } 1369 }
1370 } } // namespace v8::internal 1370 } } // namespace v8::internal
1371 1371
1372 #endif // V8_PARSER_H_ 1372 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast-value-factory.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698