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 <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
8 #include <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 DCHECK_NOT_NULL(data->graph()); | 1774 DCHECK_NOT_NULL(data->graph()); |
1775 | 1775 |
1776 if (data->schedule() == nullptr) Run<ComputeSchedulePhase>(); | 1776 if (data->schedule() == nullptr) Run<ComputeSchedulePhase>(); |
1777 TraceSchedule(data->info(), data->schedule()); | 1777 TraceSchedule(data->info(), data->schedule()); |
1778 | 1778 |
1779 if (FLAG_turbo_profiling) { | 1779 if (FLAG_turbo_profiling) { |
1780 data->set_profiler_data(BasicBlockInstrumentor::Instrument( | 1780 data->set_profiler_data(BasicBlockInstrumentor::Instrument( |
1781 info(), data->graph(), data->schedule())); | 1781 info(), data->graph(), data->schedule())); |
1782 } | 1782 } |
1783 | 1783 |
1784 if (FLAG_turbo_verify_machine_graph) { | 1784 if (FLAG_turbo_verify_machine_graph != nullptr && |
| 1785 (!strcmp(FLAG_turbo_verify_machine_graph, "*") || |
| 1786 !strcmp(FLAG_turbo_verify_machine_graph, |
| 1787 data->info()->GetDebugName().get()))) { |
1785 Zone temp_zone(data->isolate()->allocator()); | 1788 Zone temp_zone(data->isolate()->allocator()); |
1786 MachineGraphVerifier::Run(data->graph(), data->schedule(), linkage, | 1789 MachineGraphVerifier::Run(data->graph(), data->schedule(), linkage, |
1787 &temp_zone); | 1790 &temp_zone); |
1788 } | 1791 } |
1789 | 1792 |
1790 data->InitializeInstructionSequence(call_descriptor); | 1793 data->InitializeInstructionSequence(call_descriptor); |
1791 | 1794 |
1792 data->InitializeFrameData(call_descriptor); | 1795 data->InitializeFrameData(call_descriptor); |
1793 // Select and schedule instructions covering the scheduled graph. | 1796 // Select and schedule instructions covering the scheduled graph. |
1794 Run<InstructionSelectionPhase>(linkage); | 1797 Run<InstructionSelectionPhase>(linkage); |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 data->DeleteRegisterAllocationZone(); | 1988 data->DeleteRegisterAllocationZone(); |
1986 } | 1989 } |
1987 | 1990 |
1988 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1991 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1989 | 1992 |
1990 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1993 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1991 | 1994 |
1992 } // namespace compiler | 1995 } // namespace compiler |
1993 } // namespace internal | 1996 } // namespace internal |
1994 } // namespace v8 | 1997 } // namespace v8 |
OLD | NEW |