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 #include "src/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
6 | 6 |
7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 774 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
775 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 775 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
776 data->common()); | 776 data->common()); |
777 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 777 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
778 data->common(), data->machine()); | 778 data->common(), data->machine()); |
779 JSCallReducer::Flags call_reducer_flags = JSCallReducer::kNoFlags; | 779 JSCallReducer::Flags call_reducer_flags = JSCallReducer::kNoFlags; |
780 if (data->info()->is_deoptimization_enabled()) { | 780 if (data->info()->is_deoptimization_enabled()) { |
781 call_reducer_flags |= JSCallReducer::kDeoptimizationEnabled; | 781 call_reducer_flags |= JSCallReducer::kDeoptimizationEnabled; |
782 } | 782 } |
783 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), | 783 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), |
784 call_reducer_flags, data->native_context()); | 784 call_reducer_flags, data->native_context(), |
| 785 data->info()->dependencies()); |
785 JSContextSpecialization context_specialization( | 786 JSContextSpecialization context_specialization( |
786 &graph_reducer, data->jsgraph(), | 787 &graph_reducer, data->jsgraph(), |
787 data->info()->is_function_context_specializing() | 788 data->info()->is_function_context_specializing() |
788 ? handle(data->info()->context()) | 789 ? handle(data->info()->context()) |
789 : MaybeHandle<Context>()); | 790 : MaybeHandle<Context>()); |
790 JSFrameSpecialization frame_specialization( | 791 JSFrameSpecialization frame_specialization( |
791 &graph_reducer, data->info()->osr_frame(), data->jsgraph()); | 792 &graph_reducer, data->info()->osr_frame(), data->jsgraph()); |
792 JSGlobalObjectSpecialization global_object_specialization( | 793 JSGlobalObjectSpecialization global_object_specialization( |
793 &graph_reducer, data->jsgraph(), data->global_object(), | 794 &graph_reducer, data->jsgraph(), data->global_object(), |
794 data->info()->dependencies()); | 795 data->info()->dependencies()); |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 data->DeleteRegisterAllocationZone(); | 2015 data->DeleteRegisterAllocationZone(); |
2015 } | 2016 } |
2016 | 2017 |
2017 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 2018 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
2018 | 2019 |
2019 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2020 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
2020 | 2021 |
2021 } // namespace compiler | 2022 } // namespace compiler |
2022 } // namespace internal | 2023 } // namespace internal |
2023 } // namespace v8 | 2024 } // namespace v8 |
OLD | NEW |