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.h" | 8 #include "src/ast.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Stack of control scopes currently entered by the visitor. | 83 // Stack of control scopes currently entered by the visitor. |
84 ControlScope* execution_control_; | 84 ControlScope* execution_control_; |
85 | 85 |
86 // Stack of context objects pushed onto the chain by the visitor. | 86 // Stack of context objects pushed onto the chain by the visitor. |
87 ContextScope* execution_context_; | 87 ContextScope* execution_context_; |
88 | 88 |
89 // Nodes representing values in the activation record. | 89 // Nodes representing values in the activation record. |
90 SetOncePointer<Node> function_closure_; | 90 SetOncePointer<Node> function_closure_; |
91 SetOncePointer<Node> function_context_; | 91 SetOncePointer<Node> function_context_; |
92 | 92 |
| 93 // Tracks how many try-blocks are currently entered. |
| 94 int try_nesting_level_; |
| 95 |
93 // Temporary storage for building node input lists. | 96 // Temporary storage for building node input lists. |
94 int input_buffer_size_; | 97 int input_buffer_size_; |
95 Node** input_buffer_; | 98 Node** input_buffer_; |
96 | 99 |
97 // Node representing the control dependency for dead code. | 100 // Node representing the control dependency for dead code. |
98 SetOncePointer<Node> dead_control_; | 101 SetOncePointer<Node> dead_control_; |
99 | 102 |
100 // Merge of all control nodes that exit the function body. | 103 // Merge of all control nodes that exit the function body. |
101 Node* exit_control_; | 104 Node* exit_control_; |
102 | 105 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 461 |
459 // Prepare environment to be used as loop header. | 462 // Prepare environment to be used as loop header. |
460 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 463 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
461 }; | 464 }; |
462 | 465 |
463 } // namespace compiler | 466 } // namespace compiler |
464 } // namespace internal | 467 } // namespace internal |
465 } // namespace v8 | 468 } // namespace v8 |
466 | 469 |
467 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 470 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |