| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_AST_AST_TRAVERSAL_VISITOR_H_ | 5 #ifndef V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| 6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_ | 6 #define V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 | 10 |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 PROCESS_EXPRESSION(expr); | 470 PROCESS_EXPRESSION(expr); |
| 471 } | 471 } |
| 472 | 472 |
| 473 template <class Subclass> | 473 template <class Subclass> |
| 474 void AstTraversalVisitor<Subclass>::VisitGetIterator(GetIterator* expr) { | 474 void AstTraversalVisitor<Subclass>::VisitGetIterator(GetIterator* expr) { |
| 475 PROCESS_EXPRESSION(expr); | 475 PROCESS_EXPRESSION(expr); |
| 476 RECURSE_EXPRESSION(Visit(expr->iterable())); | 476 RECURSE_EXPRESSION(Visit(expr->iterable())); |
| 477 } | 477 } |
| 478 | 478 |
| 479 template <class Subclass> | 479 template <class Subclass> |
| 480 void AstTraversalVisitor<Subclass>::VisitImportCallExpression( |
| 481 ImportCallExpression* expr) { |
| 482 PROCESS_EXPRESSION(expr); |
| 483 RECURSE_EXPRESSION(Visit(expr->argument())); |
| 484 } |
| 485 |
| 486 template <class Subclass> |
| 480 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference( | 487 void AstTraversalVisitor<Subclass>::VisitSuperPropertyReference( |
| 481 SuperPropertyReference* expr) { | 488 SuperPropertyReference* expr) { |
| 482 PROCESS_EXPRESSION(expr); | 489 PROCESS_EXPRESSION(expr); |
| 483 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); | 490 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); |
| 484 RECURSE_EXPRESSION(Visit(expr->home_object())); | 491 RECURSE_EXPRESSION(Visit(expr->home_object())); |
| 485 } | 492 } |
| 486 | 493 |
| 487 template <class Subclass> | 494 template <class Subclass> |
| 488 void AstTraversalVisitor<Subclass>::VisitSuperCallReference( | 495 void AstTraversalVisitor<Subclass>::VisitSuperCallReference( |
| 489 SuperCallReference* expr) { | 496 SuperCallReference* expr) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 502 | 509 |
| 503 #undef PROCESS_NODE | 510 #undef PROCESS_NODE |
| 504 #undef PROCESS_EXPRESSION | 511 #undef PROCESS_EXPRESSION |
| 505 #undef RECURSE_EXPRESSION | 512 #undef RECURSE_EXPRESSION |
| 506 #undef RECURSE | 513 #undef RECURSE |
| 507 | 514 |
| 508 } // namespace internal | 515 } // namespace internal |
| 509 } // namespace v8 | 516 } // namespace v8 |
| 510 | 517 |
| 511 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_ | 518 #endif // V8_AST_AST_TRAVERSAL_VISITOR_H_ |
| OLD | NEW |