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 #include "src/compiler/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
6 | 6 |
7 #include "src/compiler/bytecode-branch-analysis.h" | 7 #include "src/compiler/bytecode-branch-analysis.h" |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/operator-properties.h" | 9 #include "src/compiler/operator-properties.h" |
10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } | 437 } |
438 | 438 |
439 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, | 439 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, |
440 CompilationInfo* info, | 440 CompilationInfo* info, |
441 JSGraph* jsgraph) | 441 JSGraph* jsgraph) |
442 : local_zone_(local_zone), | 442 : local_zone_(local_zone), |
443 jsgraph_(jsgraph), | 443 jsgraph_(jsgraph), |
444 bytecode_array_(handle(info->shared_info()->bytecode_array())), | 444 bytecode_array_(handle(info->shared_info()->bytecode_array())), |
445 exception_handler_table_( | 445 exception_handler_table_( |
446 handle(HandlerTable::cast(bytecode_array()->handler_table()))), | 446 handle(HandlerTable::cast(bytecode_array()->handler_table()))), |
447 feedback_vector_(info->feedback_vector()), | 447 feedback_vector_(handle(info->shared_info()->feedback_vector())), |
448 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( | 448 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( |
449 FrameStateType::kInterpretedFunction, | 449 FrameStateType::kInterpretedFunction, |
450 bytecode_array()->parameter_count(), | 450 bytecode_array()->parameter_count(), |
451 bytecode_array()->register_count(), info->shared_info())), | 451 bytecode_array()->register_count(), info->shared_info())), |
452 deoptimization_enabled_(info->is_deoptimization_enabled()), | 452 deoptimization_enabled_(info->is_deoptimization_enabled()), |
453 merge_environments_(local_zone), | 453 merge_environments_(local_zone), |
454 exception_handlers_(local_zone), | 454 exception_handlers_(local_zone), |
455 current_exception_handler_(0), | 455 current_exception_handler_(0), |
456 input_buffer_size_(0), | 456 input_buffer_size_(0), |
457 input_buffer_(nullptr), | 457 input_buffer_(nullptr), |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 // Phi does not exist yet, introduce one. | 1756 // Phi does not exist yet, introduce one. |
1757 value = NewPhi(inputs, value, control); | 1757 value = NewPhi(inputs, value, control); |
1758 value->ReplaceInput(inputs - 1, other); | 1758 value->ReplaceInput(inputs - 1, other); |
1759 } | 1759 } |
1760 return value; | 1760 return value; |
1761 } | 1761 } |
1762 | 1762 |
1763 } // namespace compiler | 1763 } // namespace compiler |
1764 } // namespace internal | 1764 } // namespace internal |
1765 } // namespace v8 | 1765 } // namespace v8 |
OLD | NEW |