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