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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 | 73 |
74 void AstExpressionVisitor::VisitExpressionStatement(ExpressionStatement* stmt) { | 74 void AstExpressionVisitor::VisitExpressionStatement(ExpressionStatement* stmt) { |
75 RECURSE(Visit(stmt->expression())); | 75 RECURSE(Visit(stmt->expression())); |
76 } | 76 } |
77 | 77 |
78 | 78 |
79 void AstExpressionVisitor::VisitEmptyStatement(EmptyStatement* stmt) {} | 79 void AstExpressionVisitor::VisitEmptyStatement(EmptyStatement* stmt) {} |
80 | 80 |
81 | 81 |
| 82 void AstExpressionVisitor::VisitDelegateStatement(DelegateStatement* stmt) { |
| 83 RECURSE(Visit(stmt->statement())); |
| 84 } |
| 85 |
| 86 |
82 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) { | 87 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) { |
83 RECURSE(Visit(stmt->condition())); | 88 RECURSE(Visit(stmt->condition())); |
84 RECURSE(Visit(stmt->then_statement())); | 89 RECURSE(Visit(stmt->then_statement())); |
85 RECURSE(Visit(stmt->else_statement())); | 90 RECURSE(Visit(stmt->else_statement())); |
86 } | 91 } |
87 | 92 |
88 | 93 |
89 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {} | 94 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {} |
90 | 95 |
91 | 96 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 346 |
342 void AstExpressionVisitor::VisitSuperPropertyReference( | 347 void AstExpressionVisitor::VisitSuperPropertyReference( |
343 SuperPropertyReference* expr) {} | 348 SuperPropertyReference* expr) {} |
344 | 349 |
345 | 350 |
346 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} | 351 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} |
347 } | 352 } |
348 | 353 |
349 | 354 |
350 } // namespace v8::internal | 355 } // namespace v8::internal |
OLD | NEW |