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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 void Run(PipelineData* data, Zone* temp_zone) { | 897 void Run(PipelineData* data, Zone* temp_zone) { |
898 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 898 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
899 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 899 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
900 data->common()); | 900 data->common()); |
901 JSBuiltinReducer builtin_reducer( | 901 JSBuiltinReducer builtin_reducer( |
902 &graph_reducer, data->jsgraph(), | 902 &graph_reducer, data->jsgraph(), |
903 data->info()->is_deoptimization_enabled() | 903 data->info()->is_deoptimization_enabled() |
904 ? JSBuiltinReducer::kDeoptimizationEnabled | 904 ? JSBuiltinReducer::kDeoptimizationEnabled |
905 : JSBuiltinReducer::kNoFlags, | 905 : JSBuiltinReducer::kNoFlags, |
906 data->info()->dependencies(), data->native_context()); | 906 data->info()->dependencies(), data->native_context()); |
907 Handle<LiteralsArray> literals_array(data->info()->closure()->literals()); | 907 Handle<TypeFeedbackVector> feedback_vector( |
| 908 data->info()->closure()->feedback_vector()); |
908 JSCreateLowering create_lowering( | 909 JSCreateLowering create_lowering( |
909 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 910 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
910 literals_array, data->native_context(), temp_zone); | 911 feedback_vector, data->native_context(), temp_zone); |
911 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 912 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
912 if (data->info()->is_deoptimization_enabled()) { | 913 if (data->info()->is_deoptimization_enabled()) { |
913 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; | 914 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |
914 } | 915 } |
915 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), | 916 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
916 typed_lowering_flags, data->jsgraph(), | 917 typed_lowering_flags, data->jsgraph(), |
917 temp_zone); | 918 temp_zone); |
918 TypedOptimization typed_optimization( | 919 TypedOptimization typed_optimization( |
919 &graph_reducer, data->info()->dependencies(), | 920 &graph_reducer, data->info()->dependencies(), |
920 data->info()->is_deoptimization_enabled() | 921 data->info()->is_deoptimization_enabled() |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 data->DeleteRegisterAllocationZone(); | 2016 data->DeleteRegisterAllocationZone(); |
2016 } | 2017 } |
2017 | 2018 |
2018 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 2019 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
2019 | 2020 |
2020 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2021 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
2021 | 2022 |
2022 } // namespace compiler | 2023 } // namespace compiler |
2023 } // namespace internal | 2024 } // namespace internal |
2024 } // namespace v8 | 2025 } // namespace v8 |
OLD | NEW |