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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 #include "src/compiler/scheduler.h" | 10 #include "src/compiler/scheduler.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 } | 43 } |
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_->EnsureSplitEdgeForm(); | 53 schedule_->EnsureCFGWellFormedness(); |
54 schedule_->PropagateDeferredMark(); | 54 schedule_->PropagateDeferredMark(); |
55 if (FLAG_trace_turbo_scheduler) { | 55 if (FLAG_trace_turbo_scheduler) { |
56 PrintF("--- EDGE SPLIT AND PROPAGATED DEFERRED SCHEDULE ------------\n"); | 56 PrintF("--- EDGE SPLIT AND PROPAGATED DEFERRED SCHEDULE ------------\n"); |
57 os << *schedule_; | 57 os << *schedule_; |
58 } | 58 } |
59 Scheduler::ComputeSpecialRPO(zone(), schedule_); | 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; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 // The raw machine assembler nodes do not have effect and control inputs, | 498 // The raw machine assembler nodes do not have effect and control inputs, |
499 // so we disable checking input counts here. | 499 // so we disable checking input counts here. |
500 return graph()->NewNodeUnchecked(op, input_count, inputs); | 500 return graph()->NewNodeUnchecked(op, input_count, inputs); |
501 } | 501 } |
502 | 502 |
503 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } | 503 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } |
504 | 504 |
505 } // namespace compiler | 505 } // namespace compiler |
506 } // namespace internal | 506 } // namespace internal |
507 } // namespace v8 | 507 } // namespace v8 |
OLD | NEW |