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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 << "Finished compiling method " << GetDebugName(info()).get() | 489 << "Finished compiling method " << GetDebugName(info()).get() |
490 << " using Turbofan" << std::endl; | 490 << " using Turbofan" << std::endl; |
491 } | 491 } |
492 | 492 |
493 return code; | 493 return code; |
494 } | 494 } |
495 | 495 |
496 | 496 |
497 void Pipeline::ComputeSchedule(PipelineData* data) { | 497 void Pipeline::ComputeSchedule(PipelineData* data) { |
498 PhaseScope phase_scope(data->pipeline_statistics(), "scheduling"); | 498 PhaseScope phase_scope(data->pipeline_statistics(), "scheduling"); |
| 499 ZonePool::Scope zone_scope(data->zone_pool()); |
499 Schedule* schedule = | 500 Schedule* schedule = |
500 Scheduler::ComputeSchedule(data->zone_pool(), data->graph()); | 501 Scheduler::ComputeSchedule(zone_scope.zone(), data->graph()); |
501 TraceSchedule(schedule); | 502 TraceSchedule(schedule); |
502 if (VerifyGraphs()) ScheduleVerifier::Run(schedule); | 503 if (VerifyGraphs()) ScheduleVerifier::Run(schedule); |
503 data->set_schedule(schedule); | 504 data->set_schedule(schedule); |
504 } | 505 } |
505 | 506 |
506 | 507 |
507 Handle<Code> Pipeline::GenerateCodeForMachineGraph(Linkage* linkage, | 508 Handle<Code> Pipeline::GenerateCodeForMachineGraph(Linkage* linkage, |
508 Graph* graph, | 509 Graph* graph, |
509 Schedule* schedule) { | 510 Schedule* schedule) { |
510 ZonePool zone_pool(isolate()); | 511 ZonePool zone_pool(isolate()); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 641 } |
641 | 642 |
642 | 643 |
643 void Pipeline::TearDown() { | 644 void Pipeline::TearDown() { |
644 InstructionOperand::TearDownCaches(); | 645 InstructionOperand::TearDownCaches(); |
645 } | 646 } |
646 | 647 |
647 } // namespace compiler | 648 } // namespace compiler |
648 } // namespace internal | 649 } // namespace internal |
649 } // namespace v8 | 650 } // namespace v8 |
OLD | NEW |