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

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

Issue 1564083002: Add spread rewriting (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase (just see comments) Created 4 years, 11 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 Expression* SpreadCall(Expression* function, 1006 Expression* SpreadCall(Expression* function,
1007 ZoneList<v8::internal::Expression*>* args, int pos); 1007 ZoneList<v8::internal::Expression*>* args, int pos);
1008 Expression* SpreadCallNew(Expression* function, 1008 Expression* SpreadCallNew(Expression* function,
1009 ZoneList<v8::internal::Expression*>* args, int pos); 1009 ZoneList<v8::internal::Expression*>* args, int pos);
1010 1010
1011 void SetLanguageMode(Scope* scope, LanguageMode mode); 1011 void SetLanguageMode(Scope* scope, LanguageMode mode);
1012 void RaiseLanguageMode(LanguageMode mode); 1012 void RaiseLanguageMode(LanguageMode mode);
1013 1013
1014 V8_INLINE void RewriteDestructuringAssignments(); 1014 V8_INLINE void RewriteDestructuringAssignments();
1015 1015
1016 friend class NonPatternRewriter;
1017 V8_INLINE Expression* RewriteSpreads(ArrayLiteral* lit);
1018
1016 V8_INLINE Expression* RewriteNonPattern( 1019 V8_INLINE Expression* RewriteNonPattern(
1017 Expression* expr, const ExpressionClassifier* classifier, bool* ok); 1020 Expression* expr, const ExpressionClassifier* classifier, bool* ok);
1018 V8_INLINE ZoneList<Expression*>* RewriteNonPatternArguments( 1021 V8_INLINE ZoneList<Expression*>* RewriteNonPatternArguments(
1019 ZoneList<Expression*>* args, const ExpressionClassifier* classifier, 1022 ZoneList<Expression*>* args, const ExpressionClassifier* classifier,
1020 bool* ok); 1023 bool* ok);
1021 V8_INLINE ObjectLiteralProperty* RewriteNonPatternObjectLiteralProperty( 1024 V8_INLINE ObjectLiteralProperty* RewriteNonPatternObjectLiteralProperty(
1022 ObjectLiteralProperty* property, const ExpressionClassifier* classifier, 1025 ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
1023 bool* ok); 1026 bool* ok);
1024 1027
1025 friend class InitializerRewriter; 1028 friend class InitializerRewriter;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 1214
1212 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1215 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1213 return parser_->ParseDoExpression(ok); 1216 return parser_->ParseDoExpression(ok);
1214 } 1217 }
1215 1218
1216 1219
1217 } // namespace internal 1220 } // namespace internal
1218 } // namespace v8 1221 } // namespace v8
1219 1222
1220 #endif // V8_PARSING_PARSER_H_ 1223 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698