| 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 void Run(PipelineData* data, Zone* temp_zone) { | 896 void Run(PipelineData* data, Zone* temp_zone) { |
| 897 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 897 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 898 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 898 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
| 899 data->common()); | 899 data->common()); |
| 900 JSBuiltinReducer builtin_reducer( | 900 JSBuiltinReducer builtin_reducer( |
| 901 &graph_reducer, data->jsgraph(), | 901 &graph_reducer, data->jsgraph(), |
| 902 data->info()->is_deoptimization_enabled() | 902 data->info()->is_deoptimization_enabled() |
| 903 ? JSBuiltinReducer::kDeoptimizationEnabled | 903 ? JSBuiltinReducer::kDeoptimizationEnabled |
| 904 : JSBuiltinReducer::kNoFlags, | 904 : JSBuiltinReducer::kNoFlags, |
| 905 data->info()->dependencies(), data->native_context()); | 905 data->info()->dependencies(), data->native_context()); |
| 906 Handle<LiteralsArray> literals_array(data->info()->closure()->literals()); | 906 Handle<TypeFeedbackVector> feedback_vector( |
| 907 data->info()->closure()->feedback_vector()); |
| 907 JSCreateLowering create_lowering( | 908 JSCreateLowering create_lowering( |
| 908 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 909 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
| 909 literals_array, data->native_context(), temp_zone); | 910 feedback_vector, data->native_context(), temp_zone); |
| 910 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 911 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
| 911 if (data->info()->is_deoptimization_enabled()) { | 912 if (data->info()->is_deoptimization_enabled()) { |
| 912 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; | 913 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |
| 913 } | 914 } |
| 914 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), | 915 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
| 915 typed_lowering_flags, data->jsgraph(), | 916 typed_lowering_flags, data->jsgraph(), |
| 916 temp_zone); | 917 temp_zone); |
| 917 TypedOptimization typed_optimization( | 918 TypedOptimization typed_optimization( |
| 918 &graph_reducer, data->info()->dependencies(), | 919 &graph_reducer, data->info()->dependencies(), |
| 919 data->info()->is_deoptimization_enabled() | 920 data->info()->is_deoptimization_enabled() |
| (...skipping 1094 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 |