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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #define DECLARE_VISIT(type) void Visit##type(type* node) OVERRIDE; | 48 #define DECLARE_VISIT(type) void Visit##type(type* node) OVERRIDE; |
49 // Visiting functions for AST nodes make this an AstVisitor. | 49 // Visiting functions for AST nodes make this an AstVisitor. |
50 AST_NODE_LIST(DECLARE_VISIT) | 50 AST_NODE_LIST(DECLARE_VISIT) |
51 #undef DECLARE_VISIT | 51 #undef DECLARE_VISIT |
52 | 52 |
53 // Visiting function for declarations list is overridden. | 53 // Visiting function for declarations list is overridden. |
54 void VisitDeclarations(ZoneList<Declaration*>* declarations) OVERRIDE; | 54 void VisitDeclarations(ZoneList<Declaration*>* declarations) OVERRIDE; |
55 | 55 |
56 // Get the node that represents the outer function context. | 56 // Get the node that represents the outer function context. |
57 Node* GetFunctionContext(); | 57 Node* GetFunctionContext(); |
| 58 |
58 // Get the node that represents the outer function closure. | 59 // Get the node that represents the outer function closure. |
59 Node* GetFunctionClosure(); | 60 Node* GetFunctionClosure(); |
60 | 61 |
61 private: | 62 private: |
62 class AstContext; | 63 class AstContext; |
63 class AstEffectContext; | 64 class AstEffectContext; |
64 class AstValueContext; | 65 class AstValueContext; |
65 class AstTestContext; | 66 class AstTestContext; |
66 class ContextScope; | 67 class ContextScope; |
67 class ControlScope; | 68 class ControlScope; |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 452 |
452 // Prepare environment to be used as loop header. | 453 // Prepare environment to be used as loop header. |
453 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 454 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
454 }; | 455 }; |
455 | 456 |
456 } // namespace compiler | 457 } // namespace compiler |
457 } // namespace internal | 458 } // namespace internal |
458 } // namespace v8 | 459 } // namespace v8 |
459 | 460 |
460 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 461 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |