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

Side by Side Diff: src/ast-literal-reindexer.cc

Issue 1315503002: Revert of Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 3 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/ast.h ('k') | src/ast-numbering.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/ast-literal-reindexer.h" 5 #include "src/ast-literal-reindexer.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 Visit(node->left()); 167 Visit(node->left());
168 Visit(node->right()); 168 Visit(node->right());
169 } 169 }
170 170
171 171
172 void AstLiteralReindexer::VisitSpread(Spread* node) { 172 void AstLiteralReindexer::VisitSpread(Spread* node) {
173 Visit(node->expression()); 173 Visit(node->expression());
174 } 174 }
175 175
176 176
177 void AstLiteralReindexer::VisitEmptyParentheses(EmptyParentheses* node) {}
178
179
180 void AstLiteralReindexer::VisitForInStatement(ForInStatement* node) { 177 void AstLiteralReindexer::VisitForInStatement(ForInStatement* node) {
181 Visit(node->each()); 178 Visit(node->each());
182 Visit(node->enumerable()); 179 Visit(node->enumerable());
183 Visit(node->body()); 180 Visit(node->body());
184 } 181 }
185 182
186 183
187 void AstLiteralReindexer::VisitForOfStatement(ForOfStatement* node) { 184 void AstLiteralReindexer::VisitForOfStatement(ForOfStatement* node) {
188 Visit(node->assign_iterator()); 185 Visit(node->assign_iterator());
189 Visit(node->next_result()); 186 Visit(node->next_result());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { 302 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) {
306 // We don't recurse into the declarations or body of the function literal: 303 // We don't recurse into the declarations or body of the function literal:
307 } 304 }
308 305
309 306
310 void AstLiteralReindexer::Reindex(Expression* pattern) { 307 void AstLiteralReindexer::Reindex(Expression* pattern) {
311 pattern->Accept(this); 308 pattern->Accept(this);
312 } 309 }
313 } 310 }
314 } // namespace v8::internal 311 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698