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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 struct EscapeAnalysisPhase { | 925 struct EscapeAnalysisPhase { |
926 static const char* phase_name() { return "escape analysis"; } | 926 static const char* phase_name() { return "escape analysis"; } |
927 | 927 |
928 void Run(PipelineData* data, Zone* temp_zone) { | 928 void Run(PipelineData* data, Zone* temp_zone) { |
929 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(), | 929 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(), |
930 temp_zone); | 930 temp_zone); |
931 escape_analysis.Run(); | 931 escape_analysis.Run(); |
932 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 932 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
933 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(), | 933 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(), |
934 &escape_analysis, temp_zone); | 934 &escape_analysis, temp_zone); |
935 escape_reducer.SetExistsVirtualAllocate( | |
936 escape_analysis.ExistsVirtualAllocate()); | |
937 AddReducer(data, &graph_reducer, &escape_reducer); | 935 AddReducer(data, &graph_reducer, &escape_reducer); |
938 graph_reducer.ReduceGraph(); | 936 graph_reducer.ReduceGraph(); |
939 escape_reducer.VerifyReplacement(); | 937 escape_reducer.VerifyReplacement(); |
940 } | 938 } |
941 }; | 939 }; |
942 | 940 |
943 struct RepresentationSelectionPhase { | 941 struct RepresentationSelectionPhase { |
944 static const char* phase_name() { return "representation selection"; } | 942 static const char* phase_name() { return "representation selection"; } |
945 | 943 |
946 void Run(PipelineData* data, Zone* temp_zone) { | 944 void Run(PipelineData* data, Zone* temp_zone) { |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 data->DeleteRegisterAllocationZone(); | 1792 data->DeleteRegisterAllocationZone(); |
1795 } | 1793 } |
1796 | 1794 |
1797 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1795 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1798 | 1796 |
1799 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1797 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1800 | 1798 |
1801 } // namespace compiler | 1799 } // namespace compiler |
1802 } // namespace internal | 1800 } // namespace internal |
1803 } // namespace v8 | 1801 } // namespace v8 |
OLD | NEW |