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

Side by Side Diff: src/parsing/parser.h

Issue 1917993004: [es8] Initial set of changes to support syntactic tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 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.h ('k') | src/parsing/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_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok); 913 CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok);
914 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels, 914 Statement* ParseSwitchStatement(ZoneList<const AstRawString*>* labels,
915 bool* ok); 915 bool* ok);
916 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels, 916 DoWhileStatement* ParseDoWhileStatement(ZoneList<const AstRawString*>* labels,
917 bool* ok); 917 bool* ok);
918 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels, 918 WhileStatement* ParseWhileStatement(ZoneList<const AstRawString*>* labels,
919 bool* ok); 919 bool* ok);
920 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok); 920 Statement* ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok);
921 Statement* ParseThrowStatement(bool* ok); 921 Statement* ParseThrowStatement(bool* ok);
922 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value); 922 Expression* MakeCatchContext(Handle<String> id, VariableProxy* value);
923 class DontCollectExpressionsInTailPositionScope;
924 class CollectExpressionsInTailPositionToListScope;
925 TryStatement* ParseTryStatement(bool* ok); 923 TryStatement* ParseTryStatement(bool* ok);
926 DebuggerStatement* ParseDebuggerStatement(bool* ok); 924 DebuggerStatement* ParseDebuggerStatement(bool* ok);
927 // Parse a SubStatement in strict mode, or with an extra block scope in 925 // Parse a SubStatement in strict mode, or with an extra block scope in
928 // sloppy mode to handle 926 // sloppy mode to handle
929 // ES#sec-functiondeclarations-in-ifstatement-statement-clauses 927 // ES#sec-functiondeclarations-in-ifstatement-statement-clauses
930 // The legacy parameter indicates whether function declarations are 928 // The legacy parameter indicates whether function declarations are
931 // banned by the ES2015 specification in this location, and they are being 929 // banned by the ES2015 specification in this location, and they are being
932 // permitted here to match previous V8 behavior. 930 // permitted here to match previous V8 behavior.
933 Statement* ParseScopedStatement(ZoneList<const AstRawString*>* labels, 931 Statement* ParseScopedStatement(ZoneList<const AstRawString*>* labels,
934 bool legacy, bool* ok); 932 bool legacy, bool* ok);
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 1247
1250 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1248 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1251 return parser_->ParseDoExpression(ok); 1249 return parser_->ParseDoExpression(ok);
1252 } 1250 }
1253 1251
1254 1252
1255 } // namespace internal 1253 } // namespace internal
1256 } // namespace v8 1254 } // namespace v8
1257 1255
1258 #endif // V8_PARSING_PARSER_H_ 1256 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698