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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/ast-expression-visitor.h" | 7 #include "src/ast-expression-visitor.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 void AstExpressionVisitor::VisitSpread(Spread* expr) { | 371 void AstExpressionVisitor::VisitSpread(Spread* expr) { |
372 VisitExpression(expr); | 372 VisitExpression(expr); |
373 RECURSE_EXPRESSION(Visit(expr->expression())); | 373 RECURSE_EXPRESSION(Visit(expr->expression())); |
374 } | 374 } |
375 | 375 |
376 | 376 |
377 void AstExpressionVisitor::VisitEmptyParentheses(EmptyParentheses* expr) {} | 377 void AstExpressionVisitor::VisitEmptyParentheses(EmptyParentheses* expr) {} |
378 | 378 |
379 | 379 |
380 void AstExpressionVisitor::VisitSuperPropertyReference( | 380 void AstExpressionVisitor::VisitSuperPropertyReference( |
381 SuperPropertyReference* expr) {} | 381 SuperPropertyReference* expr) { |
| 382 VisitExpression(expr); |
| 383 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); |
| 384 RECURSE_EXPRESSION(Visit(expr->home_object())); |
| 385 } |
382 | 386 |
383 | 387 |
384 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} | 388 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) { |
| 389 VisitExpression(expr); |
| 390 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_var())); |
| 391 RECURSE_EXPRESSION(VisitVariableProxy(expr->new_target_var())); |
| 392 RECURSE_EXPRESSION(VisitVariableProxy(expr->this_function_var())); |
| 393 } |
385 | 394 |
386 | 395 |
387 } // namespace internal | 396 } // namespace internal |
388 } // namespace v8 | 397 } // namespace v8 |
OLD | NEW |