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::VisitSloppyBlockFunctionStatement( |
| 83 SloppyBlockFunctionStatement* stmt) { |
| 84 RECURSE(Visit(stmt->statement())); |
| 85 } |
| 86 |
| 87 |
82 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) { | 88 void AstExpressionVisitor::VisitIfStatement(IfStatement* stmt) { |
83 RECURSE(Visit(stmt->condition())); | 89 RECURSE(Visit(stmt->condition())); |
84 RECURSE(Visit(stmt->then_statement())); | 90 RECURSE(Visit(stmt->then_statement())); |
85 RECURSE(Visit(stmt->else_statement())); | 91 RECURSE(Visit(stmt->else_statement())); |
86 } | 92 } |
87 | 93 |
88 | 94 |
89 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {} | 95 void AstExpressionVisitor::VisitContinueStatement(ContinueStatement* stmt) {} |
90 | 96 |
91 | 97 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 347 |
342 void AstExpressionVisitor::VisitSuperPropertyReference( | 348 void AstExpressionVisitor::VisitSuperPropertyReference( |
343 SuperPropertyReference* expr) {} | 349 SuperPropertyReference* expr) {} |
344 | 350 |
345 | 351 |
346 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} | 352 void AstExpressionVisitor::VisitSuperCallReference(SuperCallReference* expr) {} |
347 } | 353 } |
348 | 354 |
349 | 355 |
350 } // namespace v8::internal | 356 } // namespace v8::internal |
OLD | NEW |