| 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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 V8_INLINE PreParserExpression BuildIteratorResult(PreParserExpression value, | 1266 V8_INLINE PreParserExpression BuildIteratorResult(PreParserExpression value, |
| 1267 bool done) { | 1267 bool done) { |
| 1268 return PreParserExpression::Default(); | 1268 return PreParserExpression::Default(); |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 V8_INLINE PreParserStatement | 1271 V8_INLINE PreParserStatement |
| 1272 BuildInitializationBlock(DeclarationParsingResult* parsing_result, | 1272 BuildInitializationBlock(DeclarationParsingResult* parsing_result, |
| 1273 ZoneList<const AstRawString*>* names, bool* ok) { | 1273 ZoneList<const AstRawString*>* names, bool* ok) { |
| 1274 for (auto declaration : parsing_result->declarations) { |
| 1275 DeclareAndInitializeVariables(PreParserStatement::Default(), |
| 1276 &(parsing_result->descriptor), &declaration, |
| 1277 names, ok); |
| 1278 } |
| 1274 return PreParserStatement::Default(); | 1279 return PreParserStatement::Default(); |
| 1275 } | 1280 } |
| 1276 | 1281 |
| 1277 V8_INLINE PreParserStatement | 1282 V8_INLINE PreParserStatement |
| 1278 InitializeForEachStatement(PreParserStatement stmt, PreParserExpression each, | 1283 InitializeForEachStatement(PreParserStatement stmt, PreParserExpression each, |
| 1279 PreParserExpression subject, | 1284 PreParserExpression subject, |
| 1280 PreParserStatement body, int each_keyword_pos) { | 1285 PreParserStatement body, int each_keyword_pos) { |
| 1281 MarkExpressionAsAssigned(each); | 1286 MarkExpressionAsAssigned(each); |
| 1282 return stmt; | 1287 return stmt; |
| 1283 } | 1288 } |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 function_state_->NextMaterializedLiteralIndex(); | 1638 function_state_->NextMaterializedLiteralIndex(); |
| 1634 function_state_->NextMaterializedLiteralIndex(); | 1639 function_state_->NextMaterializedLiteralIndex(); |
| 1635 } | 1640 } |
| 1636 return EmptyExpression(); | 1641 return EmptyExpression(); |
| 1637 } | 1642 } |
| 1638 | 1643 |
| 1639 } // namespace internal | 1644 } // namespace internal |
| 1640 } // namespace v8 | 1645 } // namespace v8 |
| 1641 | 1646 |
| 1642 #endif // V8_PARSING_PREPARSER_H | 1647 #endif // V8_PARSING_PREPARSER_H |
| OLD | NEW |