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

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

Issue 2359513002: Remove synthetic unresolved variables from async/await desugaring (Closed)
Patch Set: Fix bug number Created 4 years, 3 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-5405.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/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/parsing/parser-base.h" 9 #include "src/parsing/parser-base.h"
10 10
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 public: 698 public:
699 explicit PreParserTargetScope(ParserBase<PreParser>* preparser) {} 699 explicit PreParserTargetScope(ParserBase<PreParser>* preparser) {}
700 }; 700 };
701 701
702 template <> 702 template <>
703 struct ParserTypes<PreParser> { 703 struct ParserTypes<PreParser> {
704 typedef ParserBase<PreParser> Base; 704 typedef ParserBase<PreParser> Base;
705 typedef PreParser Impl; 705 typedef PreParser Impl;
706 706
707 // PreParser doesn't need to store generator variables. 707 // PreParser doesn't need to store generator variables.
708 typedef void GeneratorVariable; 708 typedef void Variable;
709 709
710 // Return types for traversing functions. 710 // Return types for traversing functions.
711 typedef PreParserIdentifier Identifier; 711 typedef PreParserIdentifier Identifier;
712 typedef PreParserExpression Expression; 712 typedef PreParserExpression Expression;
713 typedef PreParserExpression FunctionLiteral; 713 typedef PreParserExpression FunctionLiteral;
714 typedef PreParserExpression ObjectLiteralProperty; 714 typedef PreParserExpression ObjectLiteralProperty;
715 typedef PreParserExpression ClassLiteralProperty; 715 typedef PreParserExpression ClassLiteralProperty;
716 typedef PreParserExpressionList ExpressionList; 716 typedef PreParserExpressionList ExpressionList;
717 typedef PreParserExpressionList PropertyList; 717 typedef PreParserExpressionList PropertyList;
718 typedef PreParserFormalParameters FormalParameters; 718 typedef PreParserFormalParameters FormalParameters;
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 function_state_->NextMaterializedLiteralIndex(); 1416 function_state_->NextMaterializedLiteralIndex();
1417 function_state_->NextMaterializedLiteralIndex(); 1417 function_state_->NextMaterializedLiteralIndex();
1418 } 1418 }
1419 return EmptyExpression(); 1419 return EmptyExpression();
1420 } 1420 }
1421 1421
1422 } // namespace internal 1422 } // namespace internal
1423 } // namespace v8 1423 } // namespace v8
1424 1424
1425 #endif // V8_PARSING_PREPARSER_H 1425 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/mjsunit/regress/regress-5405.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698