| 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/ast/ast.h" | 5 #include "src/ast/ast.h" |
| 6 #include "src/ast/ast-expression-rewriter.h" | 6 #include "src/ast/ast-expression-rewriter.h" |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 AST_REWRITE_PROPERTY(Expression, node, label); | 365 AST_REWRITE_PROPERTY(Expression, node, label); |
| 366 } | 366 } |
| 367 VisitStatements(node->statements()); | 367 VisitStatements(node->statements()); |
| 368 } | 368 } |
| 369 | 369 |
| 370 | 370 |
| 371 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) { | 371 void AstExpressionRewriter::VisitEmptyParentheses(EmptyParentheses* node) { |
| 372 NOTHING(); | 372 NOTHING(); |
| 373 } | 373 } |
| 374 | 374 |
| 375 void AstExpressionRewriter::VisitGetIterator(GetIterator* node) { |
| 376 AST_REWRITE_PROPERTY(Expression, node, iterable); |
| 377 } |
| 375 | 378 |
| 376 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { | 379 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { |
| 377 REWRITE_THIS(node); | 380 REWRITE_THIS(node); |
| 378 AST_REWRITE_PROPERTY(Block, node, block); | 381 AST_REWRITE_PROPERTY(Block, node, block); |
| 379 AST_REWRITE_PROPERTY(VariableProxy, node, result); | 382 AST_REWRITE_PROPERTY(VariableProxy, node, result); |
| 380 } | 383 } |
| 381 | 384 |
| 382 | 385 |
| 383 void AstExpressionRewriter::VisitRewritableExpression( | 386 void AstExpressionRewriter::VisitRewritableExpression( |
| 384 RewritableExpression* node) { | 387 RewritableExpression* node) { |
| 385 REWRITE_THIS(node); | 388 REWRITE_THIS(node); |
| 386 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); | 389 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); |
| 387 } | 390 } |
| 388 | 391 |
| 389 | 392 |
| 390 } // namespace internal | 393 } // namespace internal |
| 391 } // namespace v8 | 394 } // namespace v8 |
| OLD | NEW |