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

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

Issue 460633002: Remove duplication in Scheduler and simplify interface. Make ComputeSchedule() and ComputeSpecialRP… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/raw-machine-assembler.cc » ('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 "src/base/platform/elapsed-timer.h" 7 #include "src/base/platform/elapsed-timer.h"
8 #include "src/compiler/ast-graph-builder.h" 8 #include "src/compiler/ast-graph-builder.h"
9 #include "src/compiler/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/graph-replay.h" 10 #include "src/compiler/graph-replay.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 << "Finished compiling method " 215 << "Finished compiling method "
216 << info()->function()->debug_name()->ToCString().get() 216 << info()->function()->debug_name()->ToCString().get()
217 << " using Turbofan" << endl; 217 << " using Turbofan" << endl;
218 } 218 }
219 219
220 return code; 220 return code;
221 } 221 }
222 222
223 223
224 Schedule* Pipeline::ComputeSchedule(Graph* graph) { 224 Schedule* Pipeline::ComputeSchedule(Graph* graph) {
225 Scheduler scheduler(zone());
226 PhaseStats schedule_stats(info(), PhaseStats::CODEGEN, "scheduling"); 225 PhaseStats schedule_stats(info(), PhaseStats::CODEGEN, "scheduling");
227 return scheduler.NewSchedule(graph); 226 return Scheduler::ComputeSchedule(graph);
228 } 227 }
229 228
230 229
231 Handle<Code> Pipeline::GenerateCodeForMachineGraph(Linkage* linkage, 230 Handle<Code> Pipeline::GenerateCodeForMachineGraph(Linkage* linkage,
232 Graph* graph, 231 Graph* graph,
233 Schedule* schedule) { 232 Schedule* schedule) {
234 CHECK(SupportedBackend()); 233 CHECK(SupportedBackend());
235 if (schedule == NULL) { 234 if (schedule == NULL) {
236 VerifyAndPrintGraph(graph, "Machine"); 235 VerifyAndPrintGraph(graph, "Machine");
237 schedule = ComputeSchedule(graph); 236 schedule = ComputeSchedule(graph);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 303 }
305 304
306 305
307 void Pipeline::TearDown() { 306 void Pipeline::TearDown() {
308 InstructionOperand::TearDownCaches(); 307 InstructionOperand::TearDownCaches();
309 } 308 }
310 309
311 } // namespace compiler 310 } // namespace compiler
312 } // namespace internal 311 } // namespace internal
313 } // namespace v8 312 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698