| 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-expression-rewriter.h" |
| 5 #include "src/ast/ast.h" | 6 #include "src/ast/ast.h" |
| 6 #include "src/ast/ast-expression-rewriter.h" | 7 #include "src/objects-inl.h" |
| 7 | 8 |
| 8 namespace v8 { | 9 namespace v8 { |
| 9 namespace internal { | 10 namespace internal { |
| 10 | 11 |
| 11 // ---------------------------------------------------------------------------- | 12 // ---------------------------------------------------------------------------- |
| 12 // Implementation of AstExpressionRewriter | 13 // Implementation of AstExpressionRewriter |
| 13 // The AST is traversed but no actual rewriting takes place, unless the | 14 // The AST is traversed but no actual rewriting takes place, unless the |
| 14 // Visit methods are overriden in subclasses. | 15 // Visit methods are overriden in subclasses. |
| 15 | 16 |
| 16 #define REWRITE_THIS(node) \ | 17 #define REWRITE_THIS(node) \ |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 386 |
| 386 void AstExpressionRewriter::VisitRewritableExpression( | 387 void AstExpressionRewriter::VisitRewritableExpression( |
| 387 RewritableExpression* node) { | 388 RewritableExpression* node) { |
| 388 REWRITE_THIS(node); | 389 REWRITE_THIS(node); |
| 389 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); | 390 AST_REWRITE(Expression, node->expression(), node->Rewrite(replacement)); |
| 390 } | 391 } |
| 391 | 392 |
| 392 | 393 |
| 393 } // namespace internal | 394 } // namespace internal |
| 394 } // namespace v8 | 395 } // namespace v8 |
| OLD | NEW |