| 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/ast-expression-visitor.h" | 7 #include "src/ast/ast-expression-visitor.h" |
| 8 | 8 |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 | 165 |
| 166 void AstExpressionVisitor::VisitForInStatement(ForInStatement* stmt) { | 166 void AstExpressionVisitor::VisitForInStatement(ForInStatement* stmt) { |
| 167 RECURSE(Visit(stmt->enumerable())); | 167 RECURSE(Visit(stmt->enumerable())); |
| 168 RECURSE(Visit(stmt->body())); | 168 RECURSE(Visit(stmt->body())); |
| 169 } | 169 } |
| 170 | 170 |
| 171 | 171 |
| 172 void AstExpressionVisitor::VisitForOfStatement(ForOfStatement* stmt) { | 172 void AstExpressionVisitor::VisitForOfStatement(ForOfStatement* stmt) { |
| 173 RECURSE(Visit(stmt->iterable())); | 173 RECURSE(Visit(stmt->iterable())); |
| 174 // TODO(nikolaos): Decide; if the next five should not be here, they |
| 175 // can go to a VisitForOfStatement in parameter-initializer-rewriter.cc. |
| 176 RECURSE(Visit(stmt->each())); |
| 177 RECURSE(Visit(stmt->assign_iterator())); |
| 178 RECURSE(Visit(stmt->next_result())); |
| 179 RECURSE(Visit(stmt->result_done())); |
| 180 RECURSE(Visit(stmt->assign_each())); |
| 174 RECURSE(Visit(stmt->body())); | 181 RECURSE(Visit(stmt->body())); |
| 175 } | 182 } |
| 176 | 183 |
| 177 | 184 |
| 178 void AstExpressionVisitor::VisitTryCatchStatement(TryCatchStatement* stmt) { | 185 void AstExpressionVisitor::VisitTryCatchStatement(TryCatchStatement* stmt) { |
| 179 RECURSE(Visit(stmt->try_block())); | 186 RECURSE(Visit(stmt->try_block())); |
| 180 RECURSE(Visit(stmt->catch_block())); | 187 RECURSE(Visit(stmt->catch_block())); |
| 181 } | 188 } |
| 182 | 189 |
| 183 | 190 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 403 |
| 397 void AstExpressionVisitor::VisitRewritableAssignmentExpression( | 404 void AstExpressionVisitor::VisitRewritableAssignmentExpression( |
| 398 RewritableAssignmentExpression* expr) { | 405 RewritableAssignmentExpression* expr) { |
| 399 VisitExpression(expr); | 406 VisitExpression(expr); |
| 400 RECURSE(Visit(expr->expression())); | 407 RECURSE(Visit(expr->expression())); |
| 401 } | 408 } |
| 402 | 409 |
| 403 | 410 |
| 404 } // namespace internal | 411 } // namespace internal |
| 405 } // namespace v8 | 412 } // namespace v8 |
| OLD | NEW |