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_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_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/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 BuildInitializationBlock(DeclarationParsingResult* parsing_result, | 1300 BuildInitializationBlock(DeclarationParsingResult* parsing_result, |
1301 ZoneList<const AstRawString*>* names, bool* ok) { | 1301 ZoneList<const AstRawString*>* names, bool* ok) { |
1302 for (auto declaration : parsing_result->declarations) { | 1302 for (auto declaration : parsing_result->declarations) { |
1303 DeclareAndInitializeVariables(PreParserStatement::Default(), | 1303 DeclareAndInitializeVariables(PreParserStatement::Default(), |
1304 &(parsing_result->descriptor), &declaration, | 1304 &(parsing_result->descriptor), &declaration, |
1305 names, ok); | 1305 names, ok); |
1306 } | 1306 } |
1307 return PreParserStatement::Default(); | 1307 return PreParserStatement::Default(); |
1308 } | 1308 } |
1309 | 1309 |
1310 V8_INLINE PreParserStatement | 1310 V8_INLINE PreParserStatement InitializeForEachStatement( |
1311 InitializeForEachStatement(PreParserStatement stmt, PreParserExpression each, | 1311 PreParserStatement stmt, PreParserExpression each, |
1312 PreParserExpression subject, | 1312 PreParserExpression subject, PreParserStatement body) { |
1313 PreParserStatement body, int each_keyword_pos) { | |
1314 MarkExpressionAsAssigned(each); | 1313 MarkExpressionAsAssigned(each); |
1315 return stmt; | 1314 return stmt; |
1316 } | 1315 } |
1317 | 1316 |
1318 V8_INLINE PreParserStatement InitializeForOfStatement( | 1317 V8_INLINE PreParserStatement InitializeForOfStatement( |
1319 PreParserStatement stmt, PreParserExpression each, | 1318 PreParserStatement stmt, PreParserExpression each, |
1320 PreParserExpression iterable, PreParserStatement body, bool finalize, | 1319 PreParserExpression iterable, PreParserStatement body, bool finalize, |
1321 IteratorType type, int next_result_pos = kNoSourcePosition) { | 1320 IteratorType type, int next_result_pos = kNoSourcePosition) { |
1322 MarkExpressionAsAssigned(each); | 1321 MarkExpressionAsAssigned(each); |
1323 return stmt; | 1322 return stmt; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, | 1710 PreParserExpression PreParser::CloseTemplateLiteral(TemplateLiteralState* state, |
1712 int start, | 1711 int start, |
1713 PreParserExpression tag) { | 1712 PreParserExpression tag) { |
1714 return EmptyExpression(); | 1713 return EmptyExpression(); |
1715 } | 1714 } |
1716 | 1715 |
1717 } // namespace internal | 1716 } // namespace internal |
1718 } // namespace v8 | 1717 } // namespace v8 |
1719 | 1718 |
1720 #endif // V8_PARSING_PREPARSER_H | 1719 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |