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 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 V8_INLINE PreParserStatement BuildParameterInitializationBlock( | 1365 V8_INLINE PreParserStatement BuildParameterInitializationBlock( |
1366 const PreParserFormalParameters& parameters, bool* ok) { | 1366 const PreParserFormalParameters& parameters, bool* ok) { |
1367 return PreParserStatement::Default(); | 1367 return PreParserStatement::Default(); |
1368 } | 1368 } |
1369 | 1369 |
1370 V8_INLINE PreParserStatement | 1370 V8_INLINE PreParserStatement |
1371 BuildRejectPromiseOnException(PreParserStatement init_block) { | 1371 BuildRejectPromiseOnException(PreParserStatement init_block) { |
1372 return PreParserStatement::Default(); | 1372 return PreParserStatement::Default(); |
1373 } | 1373 } |
1374 | 1374 |
| 1375 V8_INLINE PreParserStatement |
| 1376 BuildRejectPromiseOnExceptionForParameters(PreParserStatement init_block) { |
| 1377 return PreParserStatement::Default(); |
| 1378 } |
| 1379 |
1375 V8_INLINE void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope) { | 1380 V8_INLINE void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope) { |
1376 scope->HoistSloppyBlockFunctions(nullptr); | 1381 scope->HoistSloppyBlockFunctions(nullptr); |
1377 } | 1382 } |
1378 | 1383 |
1379 V8_INLINE void InsertShadowingVarBindingInitializers( | 1384 V8_INLINE void InsertShadowingVarBindingInitializers( |
1380 PreParserStatement block) {} | 1385 PreParserStatement block) {} |
1381 | 1386 |
1382 V8_INLINE PreParserExpression | 1387 V8_INLINE PreParserExpression |
1383 NewThrowReferenceError(MessageTemplate::Template message, int pos) { | 1388 NewThrowReferenceError(MessageTemplate::Template message, int pos) { |
1384 return PreParserExpression::Default(); | 1389 return PreParserExpression::Default(); |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 function_state_->NextMaterializedLiteralIndex(); | 1698 function_state_->NextMaterializedLiteralIndex(); |
1694 function_state_->NextMaterializedLiteralIndex(); | 1699 function_state_->NextMaterializedLiteralIndex(); |
1695 } | 1700 } |
1696 return EmptyExpression(); | 1701 return EmptyExpression(); |
1697 } | 1702 } |
1698 | 1703 |
1699 } // namespace internal | 1704 } // namespace internal |
1700 } // namespace v8 | 1705 } // namespace v8 |
1701 | 1706 |
1702 #endif // V8_PARSING_PREPARSER_H | 1707 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |