| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 } | 391 } |
| 392 | 392 |
| 393 | 393 |
| 394 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { | 394 void AstExpressionRewriter::VisitDoExpression(DoExpression* node) { |
| 395 REWRITE_THIS(node); | 395 REWRITE_THIS(node); |
| 396 AST_REWRITE_PROPERTY(Block, node, block); | 396 AST_REWRITE_PROPERTY(Block, node, block); |
| 397 AST_REWRITE_PROPERTY(VariableProxy, node, result); | 397 AST_REWRITE_PROPERTY(VariableProxy, node, result); |
| 398 } | 398 } |
| 399 | 399 |
| 400 | 400 |
| 401 void AstExpressionRewriter::VisitRewritableExpression( | 401 void AstExpressionRewriter::VisitRewritableAssignmentExpression( |
| 402 RewritableExpression* node) { | 402 RewritableAssignmentExpression* node) { |
| 403 REWRITE_THIS(node); | 403 REWRITE_THIS(node); |
| 404 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); | 404 AST_REWRITE_PROPERTY(Expression, node, expression); |
| 405 } | 405 } |
| 406 | 406 |
| 407 | 407 |
| 408 } // namespace internal | 408 } // namespace internal |
| 409 } // namespace v8 | 409 } // namespace v8 |
| OLD | NEW |