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

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

Issue 711413002: Simplify scheduler API by removing zone scopes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 6 years, 1 month 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 <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
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
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
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