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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 DCHECK_NOT_NULL(graph); | 446 DCHECK_NOT_NULL(graph); |
447 DCHECK_NOT_NULL(linkage); | 447 DCHECK_NOT_NULL(linkage); |
448 DCHECK_NOT_NULL(schedule); | 448 DCHECK_NOT_NULL(schedule); |
449 CHECK(SupportedBackend()); | 449 CHECK(SupportedBackend()); |
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 Zone* instruction_zone = schedule->zone(); |
| 457 InstructionSequence sequence(instruction_zone, linkage, graph, schedule); |
457 | 458 |
458 // Select and schedule instructions covering the scheduled graph. | 459 // Select and schedule instructions covering the scheduled graph. |
459 { | 460 { |
460 InstructionSelector selector(&sequence, schedule, source_positions); | 461 InstructionSelector selector(&sequence, schedule, source_positions); |
461 selector.SelectInstructions(); | 462 selector.SelectInstructions(); |
462 } | 463 } |
463 | 464 |
464 if (FLAG_trace_turbo) { | 465 if (FLAG_trace_turbo) { |
465 OFStream os(stdout); | 466 OFStream os(stdout); |
466 os << "----- Instruction sequence before register allocation -----\n" | 467 os << "----- Instruction sequence before register allocation -----\n" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } | 512 } |
512 | 513 |
513 | 514 |
514 void Pipeline::TearDown() { | 515 void Pipeline::TearDown() { |
515 InstructionOperand::TearDownCaches(); | 516 InstructionOperand::TearDownCaches(); |
516 } | 517 } |
517 | 518 |
518 } // namespace compiler | 519 } // namespace compiler |
519 } // namespace internal | 520 } // namespace internal |
520 } // namespace v8 | 521 } // namespace v8 |
OLD | NEW |