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

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

Issue 1667503004: Fix embarrassing bug in last-minute-change to yield* CL. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « no previous file | src/parsing/parser.cc » ('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_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 ObjectLiteralProperty* property, const ExpressionClassifier* classifier, 656 ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
657 bool* ok); 657 bool* ok);
658 658
659 Expression* RewriteYieldStar( 659 Expression* RewriteYieldStar(
660 Expression* generator, Expression* expression, int pos); 660 Expression* generator, Expression* expression, int pos);
661 661
662 private: 662 private:
663 Parser* parser_; 663 Parser* parser_;
664 664
665 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, 665 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
666 Maybe<Variable*> input); 666 Maybe<Variable*> input, Maybe<Variable*> output);
667 }; 667 };
668 668
669 669
670 class Parser : public ParserBase<ParserTraits> { 670 class Parser : public ParserBase<ParserTraits> {
671 public: 671 public:
672 explicit Parser(ParseInfo* info); 672 explicit Parser(ParseInfo* info);
673 ~Parser() { 673 ~Parser() {
674 delete reusable_preparser_; 674 delete reusable_preparser_;
675 reusable_preparser_ = NULL; 675 reusable_preparser_ = NULL;
676 delete cached_parse_data_; 676 delete cached_parse_data_;
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 1219
1220 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1220 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1221 return parser_->ParseDoExpression(ok); 1221 return parser_->ParseDoExpression(ok);
1222 } 1222 }
1223 1223
1224 1224
1225 } // namespace internal 1225 } // namespace internal
1226 } // namespace v8 1226 } // namespace v8
1227 1227
1228 #endif // V8_PARSING_PARSER_H_ 1228 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698