Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/parsing/preparser.h

Issue 2672313003: [async await] fix async await desugaring
Patch Set: fmt Created 3 years, 10 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 | « src/parsing/parser-base.h ('k') | test/mjsunit/regress/regress-5896.js » ('j') | no next file with comments »
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_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
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
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
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/mjsunit/regress/regress-5896.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698