| 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/raw-machine-assembler.h" | 5 #include "src/compiler/raw-machine-assembler.h" |
| 6 | 6 |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 #include "src/compiler/pipeline.h" | 8 #include "src/compiler/pipeline.h" |
| 9 #include "src/compiler/scheduler.h" | 9 #include "src/compiler/scheduler.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 Schedule* RawMachineAssembler::Export() { | 45 Schedule* RawMachineAssembler::Export() { |
| 46 // Compute the correct codegen order. | 46 // Compute the correct codegen order. |
| 47 DCHECK(schedule_->rpo_order()->empty()); | 47 DCHECK(schedule_->rpo_order()->empty()); |
| 48 OFStream os(stdout); | 48 OFStream os(stdout); |
| 49 if (FLAG_trace_turbo_scheduler) { | 49 if (FLAG_trace_turbo_scheduler) { |
| 50 PrintF("--- RAW SCHEDULE -------------------------------------------\n"); | 50 PrintF("--- RAW SCHEDULE -------------------------------------------\n"); |
| 51 os << *schedule_; | 51 os << *schedule_; |
| 52 } | 52 } |
| 53 schedule_->EnsureCFGWellFormedness(); | 53 schedule_->EnsureCFGWellFormedness(); |
| 54 Scheduler::ComputeSpecialRPO(zone(), schedule_); |
| 54 schedule_->PropagateDeferredMark(); | 55 schedule_->PropagateDeferredMark(); |
| 55 if (FLAG_trace_turbo_scheduler) { | 56 if (FLAG_trace_turbo_scheduler) { |
| 56 PrintF("--- EDGE SPLIT AND PROPAGATED DEFERRED SCHEDULE ------------\n"); | 57 PrintF("--- EDGE SPLIT AND PROPAGATED DEFERRED SCHEDULE ------------\n"); |
| 57 os << *schedule_; | 58 os << *schedule_; |
| 58 } | 59 } |
| 59 Scheduler::ComputeSpecialRPO(zone(), schedule_); | |
| 60 // Invalidate RawMachineAssembler. | 60 // Invalidate RawMachineAssembler. |
| 61 Schedule* schedule = schedule_; | 61 Schedule* schedule = schedule_; |
| 62 schedule_ = nullptr; | 62 schedule_ = nullptr; |
| 63 return schedule; | 63 return schedule; |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 Node* RawMachineAssembler::Parameter(size_t index) { | 67 Node* RawMachineAssembler::Parameter(size_t index) { |
| 68 DCHECK(index < parameter_count()); | 68 DCHECK(index < parameter_count()); |
| 69 return parameters_[index]; | 69 return parameters_[index]; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // The raw machine assembler nodes do not have effect and control inputs, | 330 // The raw machine assembler nodes do not have effect and control inputs, |
| 331 // so we disable checking input counts here. | 331 // so we disable checking input counts here. |
| 332 return graph()->NewNodeUnchecked(op, input_count, inputs); | 332 return graph()->NewNodeUnchecked(op, input_count, inputs); |
| 333 } | 333 } |
| 334 | 334 |
| 335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } | 335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } |
| 336 | 336 |
| 337 } // namespace compiler | 337 } // namespace compiler |
| 338 } // namespace internal | 338 } // namespace internal |
| 339 } // namespace v8 | 339 } // namespace v8 |
| OLD | NEW |