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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 if (data->info()->is_frame_specializing()) { | 830 if (data->info()->is_frame_specializing()) { |
831 AddReducer(data, &graph_reducer, &frame_specialization); | 831 AddReducer(data, &graph_reducer, &frame_specialization); |
832 } | 832 } |
833 if (data->info()->is_deoptimization_enabled()) { | 833 if (data->info()->is_deoptimization_enabled()) { |
834 AddReducer(data, &graph_reducer, &global_object_specialization); | 834 AddReducer(data, &graph_reducer, &global_object_specialization); |
835 } | 835 } |
836 AddReducer(data, &graph_reducer, &native_context_specialization); | 836 AddReducer(data, &graph_reducer, &native_context_specialization); |
837 AddReducer(data, &graph_reducer, &context_specialization); | 837 AddReducer(data, &graph_reducer, &context_specialization); |
838 AddReducer(data, &graph_reducer, &intrinsic_lowering); | 838 AddReducer(data, &graph_reducer, &intrinsic_lowering); |
839 AddReducer(data, &graph_reducer, &call_reducer); | 839 AddReducer(data, &graph_reducer, &call_reducer); |
840 if (!data->info()->is_optimizing_from_bytecode()) { | 840 AddReducer(data, &graph_reducer, &inlining); |
841 AddReducer(data, &graph_reducer, &inlining); | |
842 } | |
843 graph_reducer.ReduceGraph(); | 841 graph_reducer.ReduceGraph(); |
844 } | 842 } |
845 }; | 843 }; |
846 | 844 |
847 | 845 |
848 struct TyperPhase { | 846 struct TyperPhase { |
849 static const char* phase_name() { return "typer"; } | 847 static const char* phase_name() { return "typer"; } |
850 | 848 |
851 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { | 849 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { |
852 NodeVector roots(temp_zone); | 850 NodeVector roots(temp_zone); |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 data->DeleteRegisterAllocationZone(); | 1928 data->DeleteRegisterAllocationZone(); |
1931 } | 1929 } |
1932 | 1930 |
1933 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1931 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1934 | 1932 |
1935 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1933 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1936 | 1934 |
1937 } // namespace compiler | 1935 } // namespace compiler |
1938 } // namespace internal | 1936 } // namespace internal |
1939 } // namespace v8 | 1937 } // namespace v8 |
OLD | NEW |