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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 } | 429 } |
430 | 430 |
431 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, | 431 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, |
432 CompilationInfo* info, | 432 CompilationInfo* info, |
433 JSGraph* jsgraph) | 433 JSGraph* jsgraph) |
434 : local_zone_(local_zone), | 434 : local_zone_(local_zone), |
435 jsgraph_(jsgraph), | 435 jsgraph_(jsgraph), |
436 bytecode_array_(handle(info->shared_info()->bytecode_array())), | 436 bytecode_array_(handle(info->shared_info()->bytecode_array())), |
437 exception_handler_table_( | 437 exception_handler_table_( |
438 handle(HandlerTable::cast(bytecode_array()->handler_table()))), | 438 handle(HandlerTable::cast(bytecode_array()->handler_table()))), |
439 feedback_vector_(handle(info->shared_info()->feedback_vector())), | 439 feedback_vector_(handle(info->closure()->feedback_vector())), |
440 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( | 440 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( |
441 FrameStateType::kInterpretedFunction, | 441 FrameStateType::kInterpretedFunction, |
442 bytecode_array()->parameter_count(), | 442 bytecode_array()->parameter_count(), |
443 bytecode_array()->register_count(), info->shared_info())), | 443 bytecode_array()->register_count(), info->shared_info())), |
444 merge_environments_(local_zone), | 444 merge_environments_(local_zone), |
445 exception_handlers_(local_zone), | 445 exception_handlers_(local_zone), |
446 current_exception_handler_(0), | 446 current_exception_handler_(0), |
447 input_buffer_size_(0), | 447 input_buffer_size_(0), |
448 input_buffer_(nullptr), | 448 input_buffer_(nullptr), |
449 exit_controls_(local_zone) {} | 449 exit_controls_(local_zone) {} |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 // Phi does not exist yet, introduce one. | 1723 // Phi does not exist yet, introduce one. |
1724 value = NewPhi(inputs, value, control); | 1724 value = NewPhi(inputs, value, control); |
1725 value->ReplaceInput(inputs - 1, other); | 1725 value->ReplaceInput(inputs - 1, other); |
1726 } | 1726 } |
1727 return value; | 1727 return value; |
1728 } | 1728 } |
1729 | 1729 |
1730 } // namespace compiler | 1730 } // namespace compiler |
1731 } // namespace internal | 1731 } // namespace internal |
1732 } // namespace v8 | 1732 } // namespace v8 |
OLD | NEW |