| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_AST_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/liveness-analyzer.h" | 10 #include "src/compiler/liveness-analyzer.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return NewNode(common()->Branch(hint), condition); | 54 return NewNode(common()->Branch(hint), condition); |
| 55 } | 55 } |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); | 58 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
| 59 // Visiting functions for AST nodes make this an AstVisitor. | 59 // Visiting functions for AST nodes make this an AstVisitor. |
| 60 AST_NODE_LIST(DECLARE_VISIT) | 60 AST_NODE_LIST(DECLARE_VISIT) |
| 61 #undef DECLARE_VISIT | 61 #undef DECLARE_VISIT |
| 62 | 62 |
| 63 // Visiting function for declarations list is overridden. | 63 // Visiting function for declarations list is overridden. |
| 64 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 64 void VisitDeclarations(Declaration::List* declarations); |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 class AstContext; | 67 class AstContext; |
| 68 class AstEffectContext; | 68 class AstEffectContext; |
| 69 class AstValueContext; | 69 class AstValueContext; |
| 70 class AstTestContext; | 70 class AstTestContext; |
| 71 class ContextScope; | 71 class ContextScope; |
| 72 class ControlScope; | 72 class ControlScope; |
| 73 class ControlScopeForBreakable; | 73 class ControlScopeForBreakable; |
| 74 class ControlScopeForIteration; | 74 class ControlScopeForIteration; |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 // Prepare environment to be used as loop header. | 615 // Prepare environment to be used as loop header. |
| 616 void PrepareForLoop(BitVector* assigned); | 616 void PrepareForLoop(BitVector* assigned); |
| 617 void PrepareForOsrEntry(); | 617 void PrepareForOsrEntry(); |
| 618 }; | 618 }; |
| 619 | 619 |
| 620 } // namespace compiler | 620 } // namespace compiler |
| 621 } // namespace internal | 621 } // namespace internal |
| 622 } // namespace v8 | 622 } // namespace v8 |
| 623 | 623 |
| 624 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 624 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
| OLD | NEW |