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

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

Issue 2094253002: Fix behavior of throw on yield*. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 676
677 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; 677 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const;
678 678
679 Expression* RewriteYieldStar( 679 Expression* RewriteYieldStar(
680 Expression* generator, Expression* expression, int pos); 680 Expression* generator, Expression* expression, int pos);
681 681
682 private: 682 private:
683 Parser* parser_; 683 Parser* parser_;
684 684
685 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, 685 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
686 Maybe<Variable*> input, Variable* output); 686 Variable* input, Variable* output);
687 void BuildIteratorCloseForCompletion( 687 void BuildIteratorCloseForCompletion(ZoneList<Statement*>* statements,
688 ZoneList<Statement*>* statements, Variable* iterator, 688 Variable* iterator,
689 Variable* body_threw); 689 Expression* completion);
690 Statement* CheckCallable(Variable* var, Expression* error, int pos); 690 Statement* CheckCallable(Variable* var, Expression* error, int pos);
691 }; 691 };
692 692
693 693
694 class Parser : public ParserBase<ParserTraits> { 694 class Parser : public ParserBase<ParserTraits> {
695 public: 695 public:
696 explicit Parser(ParseInfo* info); 696 explicit Parser(ParseInfo* info);
697 ~Parser() { 697 ~Parser() {
698 delete reusable_preparser_; 698 delete reusable_preparser_;
699 reusable_preparser_ = NULL; 699 reusable_preparser_ = NULL;
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 1295
1296 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1296 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1297 return parser_->ParseDoExpression(ok); 1297 return parser_->ParseDoExpression(ok);
1298 } 1298 }
1299 1299
1300 1300
1301 } // namespace internal 1301 } // namespace internal
1302 } // namespace v8 1302 } // namespace v8
1303 1303
1304 #endif // V8_PARSING_PARSER_H_ 1304 #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