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 <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/base/adapters.h" | 10 #include "src/base/adapters.h" |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 AddReducer(data, &graph_reducer, &escape_reducer); | 932 AddReducer(data, &graph_reducer, &escape_reducer); |
933 graph_reducer.ReduceGraph(); | 933 graph_reducer.ReduceGraph(); |
934 escape_reducer.VerifyReplacement(); | 934 escape_reducer.VerifyReplacement(); |
935 } | 935 } |
936 }; | 936 }; |
937 | 937 |
938 struct RepresentationSelectionPhase { | 938 struct RepresentationSelectionPhase { |
939 static const char* phase_name() { return "representation selection"; } | 939 static const char* phase_name() { return "representation selection"; } |
940 | 940 |
941 void Run(PipelineData* data, Zone* temp_zone) { | 941 void Run(PipelineData* data, Zone* temp_zone) { |
942 SimplifiedLowering::Flags flags = | |
943 data->info()->is_type_feedback_enabled() | |
944 ? SimplifiedLowering::kTypeFeedbackEnabled | |
945 : SimplifiedLowering::kNoFlag; | |
946 SimplifiedLowering lowering(data->jsgraph(), temp_zone, | 942 SimplifiedLowering lowering(data->jsgraph(), temp_zone, |
947 data->source_positions(), flags); | 943 data->source_positions()); |
948 lowering.LowerAllNodes(); | 944 lowering.LowerAllNodes(); |
949 } | 945 } |
950 }; | 946 }; |
951 | 947 |
952 struct EarlyOptimizationPhase { | 948 struct EarlyOptimizationPhase { |
953 static const char* phase_name() { return "early optimization"; } | 949 static const char* phase_name() { return "early optimization"; } |
954 | 950 |
955 void Run(PipelineData* data, Zone* temp_zone) { | 951 void Run(PipelineData* data, Zone* temp_zone) { |
956 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 952 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
957 JSGenericLowering generic_lowering(data->jsgraph()); | 953 JSGenericLowering generic_lowering(data->jsgraph()); |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 data->DeleteRegisterAllocationZone(); | 1831 data->DeleteRegisterAllocationZone(); |
1836 } | 1832 } |
1837 | 1833 |
1838 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1834 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1839 | 1835 |
1840 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1836 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1841 | 1837 |
1842 } // namespace compiler | 1838 } // namespace compiler |
1843 } // namespace internal | 1839 } // namespace internal |
1844 } // namespace v8 | 1840 } // namespace v8 |
OLD | NEW |