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

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

Issue 1692713005: ES6: Desugaring of instanceof to support @@hasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@blah
Patch Set: Fixed todos. 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
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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // Rewrite expressions that are not used as patterns 652 // Rewrite expressions that are not used as patterns
653 V8_INLINE Expression* RewriteNonPattern( 653 V8_INLINE Expression* RewriteNonPattern(
654 Expression* expr, const ExpressionClassifier* classifier, bool* ok); 654 Expression* expr, const ExpressionClassifier* classifier, bool* ok);
655 V8_INLINE ObjectLiteralProperty* RewriteNonPatternObjectLiteralProperty( 655 V8_INLINE ObjectLiteralProperty* RewriteNonPatternObjectLiteralProperty(
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 Expression* RewriteInstanceof(Expression* lhs, Expression* rhs, int pos);
663
662 private: 664 private:
663 Parser* parser_; 665 Parser* parser_;
664 666
665 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator, 667 void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator,
666 Maybe<Variable*> input, Maybe<Variable*> output); 668 Maybe<Variable*> input, Maybe<Variable*> output);
667 }; 669 };
668 670
669 671
670 class Parser : public ParserBase<ParserTraits> { 672 class Parser : public ParserBase<ParserTraits> {
671 public: 673 public:
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 1220
1219 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1221 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1220 return parser_->ParseDoExpression(ok); 1222 return parser_->ParseDoExpression(ok);
1221 } 1223 }
1222 1224
1223 1225
1224 } // namespace internal 1226 } // namespace internal
1225 } // namespace v8 1227 } // namespace v8
1226 1228
1227 #endif // V8_PARSING_PARSER_H_ 1229 #endif // V8_PARSING_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698