| 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 #ifndef V8_AST_AST_EXPRESSION_REWRITER_H_ | 5 #ifndef V8_AST_AST_EXPRESSION_REWRITER_H_ |
| 6 #define V8_AST_AST_EXPRESSION_REWRITER_H_ | 6 #define V8_AST_AST_EXPRESSION_REWRITER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| 11 #include "src/effects.h" | |
| 12 #include "src/type-info.h" | 11 #include "src/type-info.h" |
| 13 #include "src/types.h" | |
| 14 #include "src/zone.h" | 12 #include "src/zone.h" |
| 15 | 13 |
| 16 namespace v8 { | 14 namespace v8 { |
| 17 namespace internal { | 15 namespace internal { |
| 18 | 16 |
| 19 // A rewriting Visitor over a CompilationInfo's AST that invokes | 17 // A rewriting Visitor over a CompilationInfo's AST that invokes |
| 20 // VisitExpression on each expression node. | 18 // VisitExpression on each expression node. |
| 21 | 19 |
| 22 class AstExpressionRewriter : public AstVisitor { | 20 class AstExpressionRewriter : public AstVisitor { |
| 23 public: | 21 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 45 AST_NODE_LIST(DECLARE_VISIT) | 43 AST_NODE_LIST(DECLARE_VISIT) |
| 46 #undef DECLARE_VISIT | 44 #undef DECLARE_VISIT |
| 47 | 45 |
| 48 DISALLOW_COPY_AND_ASSIGN(AstExpressionRewriter); | 46 DISALLOW_COPY_AND_ASSIGN(AstExpressionRewriter); |
| 49 }; | 47 }; |
| 50 | 48 |
| 51 } // namespace internal | 49 } // namespace internal |
| 52 } // namespace v8 | 50 } // namespace v8 |
| 53 | 51 |
| 54 #endif // V8_AST_AST_EXPRESSION_REWRITER_H_ | 52 #endif // V8_AST_AST_EXPRESSION_REWRITER_H_ |
| OLD | NEW |