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/parsing/parser.h

Issue 1740293002: Remove duplicated ForOfStatement init code code from RewriteSpreads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 9 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 | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')
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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 DebuggerStatement* ParseDebuggerStatement(bool* ok); 921 DebuggerStatement* ParseDebuggerStatement(bool* ok);
922 922
923 // !%_IsJSReceiver(result = iterator.next()) && 923 // !%_IsJSReceiver(result = iterator.next()) &&
924 // %ThrowIteratorResultNotAnObject(result) 924 // %ThrowIteratorResultNotAnObject(result)
925 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, 925 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result,
926 int pos); 926 int pos);
927 927
928 928
929 // Initialize the components of a for-in / for-of statement. 929 // Initialize the components of a for-in / for-of statement.
930 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, 930 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each,
931 Expression* subject, Statement* body, 931 Expression* subject, Statement* body);
932 bool is_destructuring); 932 void InitializeForOfStatement(ForOfStatement* stmt, Expression* each,
933 Expression* subject, Statement* body,
934 bool use_position_hack = false);
933 Statement* DesugarLexicalBindingsInForStatement( 935 Statement* DesugarLexicalBindingsInForStatement(
934 Scope* inner_scope, VariableMode mode, 936 Scope* inner_scope, VariableMode mode,
935 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init, 937 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init,
936 Expression* cond, Statement* next, Statement* body, bool* ok); 938 Expression* cond, Statement* next, Statement* body, bool* ok);
937 939
938 void RewriteDoExpression(Expression* expr, bool* ok); 940 void RewriteDoExpression(Expression* expr, bool* ok);
939 941
940 FunctionLiteral* ParseFunctionLiteral( 942 FunctionLiteral* ParseFunctionLiteral(
941 const AstRawString* name, Scanner::Location function_name_location, 943 const AstRawString* name, Scanner::Location function_name_location,
942 FunctionNameValidity function_name_validity, FunctionKind kind, 944 FunctionNameValidity function_name_validity, FunctionKind kind,
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 1230
1229 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1231 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1230 return parser_->ParseDoExpression(ok); 1232 return parser_->ParseDoExpression(ok);
1231 } 1233 }
1232 1234
1233 1235
1234 } // namespace internal 1236 } // namespace internal
1235 } // namespace v8 1237 } // namespace v8
1236 1238
1237 #endif // V8_PARSING_PARSER_H_ 1239 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698