| 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_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/compiler/bytecode-branch-analysis.h" | 9 #include "src/compiler/bytecode-branch-analysis.h" |
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 Zone* local_zone_; | 211 Zone* local_zone_; |
| 212 JSGraph* jsgraph_; | 212 JSGraph* jsgraph_; |
| 213 Handle<BytecodeArray> bytecode_array_; | 213 Handle<BytecodeArray> bytecode_array_; |
| 214 Handle<HandlerTable> exception_handler_table_; | 214 Handle<HandlerTable> exception_handler_table_; |
| 215 Handle<TypeFeedbackVector> feedback_vector_; | 215 Handle<TypeFeedbackVector> feedback_vector_; |
| 216 const FrameStateFunctionInfo* frame_state_function_info_; | 216 const FrameStateFunctionInfo* frame_state_function_info_; |
| 217 const interpreter::BytecodeArrayIterator* bytecode_iterator_; | 217 const interpreter::BytecodeArrayIterator* bytecode_iterator_; |
| 218 const BytecodeBranchAnalysis* branch_analysis_; | 218 const BytecodeBranchAnalysis* branch_analysis_; |
| 219 Environment* environment_; | 219 Environment* environment_; |
| 220 | 220 |
| 221 // Indicates whether deoptimization support is enabled for this compilation | |
| 222 // and whether valid frame states need to be attached to deoptimizing nodes. | |
| 223 bool deoptimization_enabled_; | |
| 224 | |
| 225 // Merge environments are snapshots of the environment at points where the | 221 // Merge environments are snapshots of the environment at points where the |
| 226 // control flow merges. This models a forward data flow propagation of all | 222 // control flow merges. This models a forward data flow propagation of all |
| 227 // values from all predecessors of the merge in question. | 223 // values from all predecessors of the merge in question. |
| 228 ZoneMap<int, Environment*> merge_environments_; | 224 ZoneMap<int, Environment*> merge_environments_; |
| 229 | 225 |
| 230 // Exception handlers currently entered by the iteration. | 226 // Exception handlers currently entered by the iteration. |
| 231 ZoneStack<ExceptionHandler> exception_handlers_; | 227 ZoneStack<ExceptionHandler> exception_handlers_; |
| 232 int current_exception_handler_; | 228 int current_exception_handler_; |
| 233 | 229 |
| 234 // Temporary storage for building node input lists. | 230 // Temporary storage for building node input lists. |
| 235 int input_buffer_size_; | 231 int input_buffer_size_; |
| 236 Node** input_buffer_; | 232 Node** input_buffer_; |
| 237 | 233 |
| 238 // Nodes representing values in the activation record. | 234 // Nodes representing values in the activation record. |
| 239 SetOncePointer<Node> function_context_; | 235 SetOncePointer<Node> function_context_; |
| 240 SetOncePointer<Node> function_closure_; | 236 SetOncePointer<Node> function_closure_; |
| 241 SetOncePointer<Node> new_target_; | 237 SetOncePointer<Node> new_target_; |
| 242 | 238 |
| 243 // Control nodes that exit the function body. | 239 // Control nodes that exit the function body. |
| 244 ZoneVector<Node*> exit_controls_; | 240 ZoneVector<Node*> exit_controls_; |
| 245 | 241 |
| 246 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 242 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
| 247 }; | 243 }; |
| 248 | 244 |
| 249 } // namespace compiler | 245 } // namespace compiler |
| 250 } // namespace internal | 246 } // namespace internal |
| 251 } // namespace v8 | 247 } // namespace v8 |
| 252 | 248 |
| 253 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 249 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| OLD | NEW |