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

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

Issue 2685683002: [async-await] (simpler) fix for Return in try/finally in async functions (Closed)
Patch Set: also shrink the bitfield for ReturnStatement::Type 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/es8/async-function-try-finally.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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 } 663 }
664 PreParserExpression NewCallNew(PreParserExpression expression, 664 PreParserExpression NewCallNew(PreParserExpression expression,
665 PreParserExpressionList arguments, 665 PreParserExpressionList arguments,
666 int pos) { 666 int pos) {
667 return PreParserExpression::Default(); 667 return PreParserExpression::Default();
668 } 668 }
669 PreParserStatement NewReturnStatement(PreParserExpression expression, 669 PreParserStatement NewReturnStatement(PreParserExpression expression,
670 int pos) { 670 int pos) {
671 return PreParserStatement::Jump(); 671 return PreParserStatement::Jump();
672 } 672 }
673 PreParserStatement NewAsyncReturnStatement(PreParserExpression expression,
674 int pos) {
675 return PreParserStatement::Jump();
676 }
673 PreParserExpression NewFunctionLiteral( 677 PreParserExpression NewFunctionLiteral(
674 PreParserIdentifier name, Scope* scope, PreParserStatementList body, 678 PreParserIdentifier name, Scope* scope, PreParserStatementList body,
675 int materialized_literal_count, int expected_property_count, 679 int materialized_literal_count, int expected_property_count,
676 int parameter_count, int function_length, 680 int parameter_count, int function_length,
677 FunctionLiteral::ParameterFlag has_duplicate_parameters, 681 FunctionLiteral::ParameterFlag has_duplicate_parameters,
678 FunctionLiteral::FunctionType function_type, 682 FunctionLiteral::FunctionType function_type,
679 FunctionLiteral::EagerCompileHint eager_compile_hint, int position, 683 FunctionLiteral::EagerCompileHint eager_compile_hint, int position,
680 bool has_braces, int function_literal_id) { 684 bool has_braces, int function_literal_id) {
681 return PreParserExpression::Default(); 685 return PreParserExpression::Default();
682 } 686 }
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 function_state_->NextMaterializedLiteralIndex(); 1697 function_state_->NextMaterializedLiteralIndex();
1694 function_state_->NextMaterializedLiteralIndex(); 1698 function_state_->NextMaterializedLiteralIndex();
1695 } 1699 }
1696 return EmptyExpression(); 1700 return EmptyExpression();
1697 } 1701 }
1698 1702
1699 } // namespace internal 1703 } // namespace internal
1700 } // namespace v8 1704 } // namespace v8
1701 1705
1702 #endif // V8_PARSING_PREPARSER_H 1706 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/mjsunit/es8/async-function-try-finally.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698