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

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

Issue 669613002: [turbofan] remove schedule from InstructionSequence (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/compiler/instruction-selector.cc ('k') | src/compiler/schedule.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 <sstream> 7 #include <sstream>
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/compiler/ast-graph-builder.h" 10 #include "src/compiler/ast-graph-builder.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 BasicBlockProfiler::Data* profiler_data = NULL; 451 BasicBlockProfiler::Data* profiler_data = NULL;
452 if (FLAG_turbo_profiling) { 452 if (FLAG_turbo_profiling) {
453 profiler_data = BasicBlockInstrumentor::Instrument(info_, graph, schedule); 453 profiler_data = BasicBlockInstrumentor::Instrument(info_, graph, schedule);
454 } 454 }
455 455
456 InstructionSequence sequence(linkage, graph, schedule); 456 InstructionSequence sequence(linkage, graph, schedule);
457 457
458 // Select and schedule instructions covering the scheduled graph. 458 // Select and schedule instructions covering the scheduled graph.
459 { 459 {
460 InstructionSelector selector(&sequence, source_positions); 460 InstructionSelector selector(&sequence, schedule, source_positions);
461 selector.SelectInstructions(); 461 selector.SelectInstructions();
462 } 462 }
463 463
464 if (FLAG_trace_turbo) { 464 if (FLAG_trace_turbo) {
465 OFStream os(stdout); 465 OFStream os(stdout);
466 os << "----- Instruction sequence before register allocation -----\n" 466 os << "----- Instruction sequence before register allocation -----\n"
467 << sequence; 467 << sequence;
468 PrintScheduleAndInstructions("CodeGen", schedule, source_positions, 468 PrintScheduleAndInstructions("CodeGen", schedule, source_positions,
469 &sequence); 469 &sequence);
470 } 470 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 511 }
512 512
513 513
514 void Pipeline::TearDown() { 514 void Pipeline::TearDown() {
515 InstructionOperand::TearDownCaches(); 515 InstructionOperand::TearDownCaches();
516 } 516 }
517 517
518 } // namespace compiler 518 } // namespace compiler
519 } // namespace internal 519 } // namespace internal
520 } // namespace v8 520 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/schedule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698