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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |