| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 | 158 |
| 159 void AstLiteralReindexer::VisitProperty(Property* node) { | 159 void AstLiteralReindexer::VisitProperty(Property* node) { |
| 160 Visit(node->key()); | 160 Visit(node->key()); |
| 161 Visit(node->obj()); | 161 Visit(node->obj()); |
| 162 } | 162 } |
| 163 | 163 |
| 164 | 164 |
| 165 void AstLiteralReindexer::VisitAssignment(Assignment* node) { | 165 void AstLiteralReindexer::VisitAssignment(Assignment* node) { |
| 166 RETURN_IF_VISIT_NODE(node->destructuring_assignment()); |
| 166 Visit(node->target()); | 167 Visit(node->target()); |
| 167 Visit(node->value()); | 168 Visit(node->value()); |
| 168 } | 169 } |
| 169 | 170 |
| 170 | 171 |
| 171 void AstLiteralReindexer::VisitBinaryOperation(BinaryOperation* node) { | 172 void AstLiteralReindexer::VisitBinaryOperation(BinaryOperation* node) { |
| 172 Visit(node->left()); | 173 Visit(node->left()); |
| 173 Visit(node->right()); | 174 Visit(node->right()); |
| 174 } | 175 } |
| 175 | 176 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { | 317 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { |
| 317 // We don't recurse into the declarations or body of the function literal: | 318 // We don't recurse into the declarations or body of the function literal: |
| 318 } | 319 } |
| 319 | 320 |
| 320 | 321 |
| 321 void AstLiteralReindexer::Reindex(Expression* pattern) { | 322 void AstLiteralReindexer::Reindex(Expression* pattern) { |
| 322 pattern->Accept(this); | 323 pattern->Accept(this); |
| 323 } | 324 } |
| 324 } // namespace internal | 325 } // namespace internal |
| 325 } // namespace v8 | 326 } // namespace v8 |
| OLD | NEW |