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_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/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/base/compiler-specific.h" | 10 #include "src/base/compiler-specific.h" |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 int pos); | 451 int pos); |
452 | 452 |
453 // Initialize the components of a for-in / for-of statement. | 453 // Initialize the components of a for-in / for-of statement. |
454 Statement* InitializeForEachStatement(ForEachStatement* stmt, | 454 Statement* InitializeForEachStatement(ForEachStatement* stmt, |
455 Expression* each, Expression* subject, | 455 Expression* each, Expression* subject, |
456 Statement* body, int each_keyword_pos); | 456 Statement* body, int each_keyword_pos); |
457 Statement* InitializeForOfStatement(ForOfStatement* stmt, Expression* each, | 457 Statement* InitializeForOfStatement(ForOfStatement* stmt, Expression* each, |
458 Expression* iterable, Statement* body, | 458 Expression* iterable, Statement* body, |
459 bool finalize, | 459 bool finalize, |
460 int next_result_pos = kNoSourcePosition); | 460 int next_result_pos = kNoSourcePosition); |
| 461 Statement* InitializeForAwaitOfStatement( |
| 462 ForEachStatement* for_of, Expression* each, Expression* iterable, |
| 463 Statement* body, bool finalize, int next_result_pos = kNoSourcePosition); |
461 Block* RewriteForVarInLegacy(const ForInfo& for_info); | 464 Block* RewriteForVarInLegacy(const ForInfo& for_info); |
462 void DesugarBindingInForEachStatement(ForInfo* for_info, Block** body_block, | 465 void DesugarBindingInForEachStatement(ForInfo* for_info, Block** body_block, |
463 Expression** each_variable, bool* ok); | 466 Expression** each_variable, bool* ok); |
464 Block* CreateForEachStatementTDZ(Block* init_block, const ForInfo& for_info, | 467 Block* CreateForEachStatementTDZ(Block* init_block, const ForInfo& for_info, |
465 bool* ok); | 468 bool* ok); |
466 | 469 |
467 Statement* DesugarLexicalBindingsInForStatement( | 470 Statement* DesugarLexicalBindingsInForStatement( |
468 ForStatement* loop, Statement* init, Expression* cond, Statement* next, | 471 ForStatement* loop, Statement* init, Expression* cond, Statement* next, |
469 Statement* body, Scope* inner_scope, const ForInfo& for_info, bool* ok); | 472 Statement* body, Scope* inner_scope, const ForInfo& for_info, bool* ok); |
470 | 473 |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 | 1177 |
1175 private: | 1178 private: |
1176 ParserTarget** variable_; | 1179 ParserTarget** variable_; |
1177 ParserTarget* previous_; | 1180 ParserTarget* previous_; |
1178 }; | 1181 }; |
1179 | 1182 |
1180 } // namespace internal | 1183 } // namespace internal |
1181 } // namespace v8 | 1184 } // namespace v8 |
1182 | 1185 |
1183 #endif // V8_PARSING_PARSER_H_ | 1186 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |