| 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/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 data->source_positions()); | 709 data->source_positions()); |
| 710 selector.SelectInstructions(); | 710 selector.SelectInstructions(); |
| 711 } | 711 } |
| 712 }; | 712 }; |
| 713 | 713 |
| 714 | 714 |
| 715 struct MeetRegisterConstraintsPhase { | 715 struct MeetRegisterConstraintsPhase { |
| 716 static const char* phase_name() { return "meet register constraints"; } | 716 static const char* phase_name() { return "meet register constraints"; } |
| 717 | 717 |
| 718 void Run(PipelineData* data, Zone* temp_zone) { | 718 void Run(PipelineData* data, Zone* temp_zone) { |
| 719 LiveRangeBuilder builder(data->register_allocation_data()); | 719 ConstraintBuilder builder(data->register_allocation_data()); |
| 720 builder.MeetRegisterConstraints(); | 720 builder.MeetRegisterConstraints(); |
| 721 } | 721 } |
| 722 }; | 722 }; |
| 723 | 723 |
| 724 | 724 |
| 725 struct ResolvePhisPhase { | 725 struct ResolvePhisPhase { |
| 726 static const char* phase_name() { return "resolve phis"; } | 726 static const char* phase_name() { return "resolve phis"; } |
| 727 | 727 |
| 728 void Run(PipelineData* data, Zone* temp_zone) { | 728 void Run(PipelineData* data, Zone* temp_zone) { |
| 729 LiveRangeBuilder builder(data->register_allocation_data()); | 729 ConstraintBuilder builder(data->register_allocation_data()); |
| 730 builder.ResolvePhis(); | 730 builder.ResolvePhis(); |
| 731 } | 731 } |
| 732 }; | 732 }; |
| 733 | 733 |
| 734 | 734 |
| 735 struct BuildLiveRangesPhase { | 735 struct BuildLiveRangesPhase { |
| 736 static const char* phase_name() { return "build live ranges"; } | 736 static const char* phase_name() { return "build live ranges"; } |
| 737 | 737 |
| 738 void Run(PipelineData* data, Zone* temp_zone) { | 738 void Run(PipelineData* data, Zone* temp_zone) { |
| 739 LiveRangeBuilder builder(data->register_allocation_data()); | 739 LiveRangeBuilder builder(data->register_allocation_data()); |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 tcf << AsC1VRegisterAllocationData("CodeGen", | 1298 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1299 data->register_allocation_data()); | 1299 data->register_allocation_data()); |
| 1300 } | 1300 } |
| 1301 | 1301 |
| 1302 data->DeleteRegisterAllocationZone(); | 1302 data->DeleteRegisterAllocationZone(); |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 } // namespace compiler | 1305 } // namespace compiler |
| 1306 } // namespace internal | 1306 } // namespace internal |
| 1307 } // namespace v8 | 1307 } // namespace v8 |
| OLD | NEW |