Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: src/compiler/pipeline.cc

Issue 837423002: [turbofan] Cleanup duplicated/unused code in InstructionSelector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix win64 Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/zone-containers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/zone-containers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698