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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 if (VerifyGraphs()) ScheduleVerifier::Run(schedule); | 524 if (VerifyGraphs()) ScheduleVerifier::Run(schedule); |
525 data->set_schedule(schedule); | 525 data->set_schedule(schedule); |
526 } | 526 } |
527 }; | 527 }; |
528 | 528 |
529 | 529 |
530 struct InstructionSelectionPhase { | 530 struct InstructionSelectionPhase { |
531 static const char* phase_name() { return "select instructions"; } | 531 static const char* phase_name() { return "select instructions"; } |
532 | 532 |
533 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) { | 533 void Run(PipelineData* data, Zone* temp_zone, Linkage* linkage) { |
534 InstructionSelector selector(temp_zone, data->graph(), linkage, | 534 InstructionSelector selector(temp_zone, data->graph()->NodeCount(), linkage, |
535 data->sequence(), data->schedule(), | 535 data->sequence(), data->schedule(), |
536 data->source_positions()); | 536 data->source_positions()); |
537 selector.SelectInstructions(); | 537 selector.SelectInstructions(); |
538 } | 538 } |
539 }; | 539 }; |
540 | 540 |
541 | 541 |
542 struct MeetRegisterConstraintsPhase { | 542 struct MeetRegisterConstraintsPhase { |
543 static const char* phase_name() { return "meet register constraints"; } | 543 static const char* phase_name() { return "meet register constraints"; } |
544 | 544 |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 } | 1070 } |
1071 | 1071 |
1072 | 1072 |
1073 void Pipeline::TearDown() { | 1073 void Pipeline::TearDown() { |
1074 InstructionOperand::TearDownCaches(); | 1074 InstructionOperand::TearDownCaches(); |
1075 } | 1075 } |
1076 | 1076 |
1077 } // namespace compiler | 1077 } // namespace compiler |
1078 } // namespace internal | 1078 } // namespace internal |
1079 } // namespace v8 | 1079 } // namespace v8 |
OLD | NEW |