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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Stack of context objects pushed onto the chain by the visitor. | 90 // Stack of context objects pushed onto the chain by the visitor. |
91 ContextScope* execution_context_; | 91 ContextScope* execution_context_; |
92 | 92 |
93 // Nodes representing values in the activation record. | 93 // Nodes representing values in the activation record. |
94 SetOncePointer<Node> function_closure_; | 94 SetOncePointer<Node> function_closure_; |
95 SetOncePointer<Node> function_context_; | 95 SetOncePointer<Node> function_context_; |
96 SetOncePointer<Node> new_target_; | 96 SetOncePointer<Node> new_target_; |
97 | 97 |
98 // Tracks how many try-blocks are currently entered. | 98 // Tracks how many try-blocks are currently entered. |
99 int try_catch_nesting_level_; | |
100 int try_nesting_level_; | 99 int try_nesting_level_; |
101 | 100 |
| 101 // Tracks the prediction of the innermost try-block. |
| 102 bool try_catch_prediction_; |
| 103 |
102 // Temporary storage for building node input lists. | 104 // Temporary storage for building node input lists. |
103 int input_buffer_size_; | 105 int input_buffer_size_; |
104 Node** input_buffer_; | 106 Node** input_buffer_; |
105 | 107 |
106 // Optimization to cache loaded feedback vector. | 108 // Optimization to cache loaded feedback vector. |
107 SetOncePointer<Node> feedback_vector_; | 109 SetOncePointer<Node> feedback_vector_; |
108 | 110 |
109 // Optimization to cache empty frame state. | 111 // Optimization to cache empty frame state. |
110 SetOncePointer<Node> empty_frame_state_; | 112 SetOncePointer<Node> empty_frame_state_; |
111 | 113 |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 | 603 |
602 // Prepare environment to be used as loop header. | 604 // Prepare environment to be used as loop header. |
603 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 605 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
604 }; | 606 }; |
605 | 607 |
606 } // namespace compiler | 608 } // namespace compiler |
607 } // namespace internal | 609 } // namespace internal |
608 } // namespace v8 | 610 } // namespace v8 |
609 | 611 |
610 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 612 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |