| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |