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

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

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/objects.cc ('k') | 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier, 670 V8_INLINE void RewriteNonPattern(Type::ExpressionClassifier* classifier,
671 bool* ok); 671 bool* ok);
672 672
673 V8_INLINE Zone* zone() const; 673 V8_INLINE Zone* zone() const;
674 674
675 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const; 675 V8_INLINE ZoneList<Expression*>* GetNonPatternList() const;
676 676
677 Expression* RewriteYieldStar( 677 Expression* RewriteYieldStar(
678 Expression* generator, Expression* expression, int pos); 678 Expression* generator, Expression* expression, int pos);
679 679
680 Expression* RewriteInstanceof(Expression* lhs, Expression* rhs, int pos);
681
682 private: 680 private:
683 Parser* parser_; 681 Parser* parser_;
684 682
685 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, 683 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
686 Maybe<Variable*> input, Variable* output); 684 Maybe<Variable*> input, Variable* output);
687 void BuildIteratorCloseForCompletion( 685 void BuildIteratorCloseForCompletion(
688 ZoneList<Statement*>* statements, Variable* iterator, 686 ZoneList<Statement*>* statements, Variable* iterator,
689 Variable* body_threw); 687 Variable* body_threw);
690 Statement* CheckCallable(Variable* var, Expression* error, int pos); 688 Statement* CheckCallable(Variable* var, Expression* error, int pos);
691 }; 689 };
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 1291
1294 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1292 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1295 return parser_->ParseDoExpression(ok); 1293 return parser_->ParseDoExpression(ok);
1296 } 1294 }
1297 1295
1298 1296
1299 } // namespace internal 1297 } // namespace internal
1300 } // namespace v8 1298 } // namespace v8
1301 1299
1302 #endif // V8_PARSING_PARSER_H_ 1300 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698