| 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 <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/adapters.h" | 10 #include "src/base/adapters.h" |
| 11 #include "src/base/platform/elapsed-timer.h" | 11 #include "src/base/platform/elapsed-timer.h" |
| 12 #include "src/compiler/ast-graph-builder.h" | 12 #include "src/compiler/ast-graph-builder.h" |
| 13 #include "src/compiler/ast-loop-assignment-analyzer.h" | 13 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 14 #include "src/compiler/basic-block-instrumentor.h" | 14 #include "src/compiler/basic-block-instrumentor.h" |
| 15 #include "src/compiler/branch-elimination.h" | 15 #include "src/compiler/branch-elimination.h" |
| 16 #include "src/compiler/bytecode-graph-builder.h" | 16 #include "src/compiler/bytecode-graph-builder.h" |
| 17 #include "src/compiler/checkpoint-elimination.h" | 17 #include "src/compiler/checkpoint-elimination.h" |
| 18 #include "src/compiler/code-generator.h" | 18 #include "src/compiler/code-generator.h" |
| 19 #include "src/compiler/common-operator-reducer.h" | 19 #include "src/compiler/common-operator-reducer.h" |
| 20 #include "src/compiler/control-flow-optimizer.h" | 20 #include "src/compiler/control-flow-optimizer.h" |
| 21 #include "src/compiler/dead-code-elimination.h" | 21 #include "src/compiler/dead-code-elimination.h" |
| 22 #include "src/compiler/effect-control-linearizer.h" | 22 #include "src/compiler/effect-control-linearizer.h" |
| 23 #include "src/compiler/escape-analysis-reducer.h" | 23 #include "src/compiler/escape-analysis-reducer.h" |
| 24 #include "src/compiler/escape-analysis.h" | 24 #include "src/compiler/escape-analysis.h" |
| 25 #include "src/compiler/frame-elider.h" | 25 #include "src/compiler/frame-elider.h" |
| 26 #include "src/compiler/graph-replay.h" | 26 #include "src/compiler/graph-replay.h" |
| 27 #include "src/compiler/graph-trimmer.h" | 27 #include "src/compiler/graph-trimmer.h" |
| 28 #include "src/compiler/graph-visualizer.h" | 28 #include "src/compiler/graph-visualizer.h" |
| 29 #include "src/compiler/greedy-allocator.h" | |
| 30 #include "src/compiler/instruction-selector.h" | 29 #include "src/compiler/instruction-selector.h" |
| 31 #include "src/compiler/instruction.h" | 30 #include "src/compiler/instruction.h" |
| 32 #include "src/compiler/js-builtin-reducer.h" | 31 #include "src/compiler/js-builtin-reducer.h" |
| 33 #include "src/compiler/js-call-reducer.h" | 32 #include "src/compiler/js-call-reducer.h" |
| 34 #include "src/compiler/js-context-specialization.h" | 33 #include "src/compiler/js-context-specialization.h" |
| 35 #include "src/compiler/js-create-lowering.h" | 34 #include "src/compiler/js-create-lowering.h" |
| 36 #include "src/compiler/js-frame-specialization.h" | 35 #include "src/compiler/js-frame-specialization.h" |
| 37 #include "src/compiler/js-generic-lowering.h" | 36 #include "src/compiler/js-generic-lowering.h" |
| 38 #include "src/compiler/js-global-object-specialization.h" | 37 #include "src/compiler/js-global-object-specialization.h" |
| 39 #include "src/compiler/js-inlining-heuristic.h" | 38 #include "src/compiler/js-inlining-heuristic.h" |
| (...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1759 if (verifier != nullptr) { | 1758 if (verifier != nullptr) { |
| 1760 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); | 1759 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); |
| 1761 CHECK(data->register_allocation_data() | 1760 CHECK(data->register_allocation_data() |
| 1762 ->RangesDefinedInDeferredStayInDeferred()); | 1761 ->RangesDefinedInDeferredStayInDeferred()); |
| 1763 } | 1762 } |
| 1764 | 1763 |
| 1765 if (FLAG_turbo_preprocess_ranges) { | 1764 if (FLAG_turbo_preprocess_ranges) { |
| 1766 Run<SplinterLiveRangesPhase>(); | 1765 Run<SplinterLiveRangesPhase>(); |
| 1767 } | 1766 } |
| 1768 | 1767 |
| 1769 if (FLAG_turbo_greedy_regalloc) { | 1768 Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); |
| 1770 Run<AllocateGeneralRegistersPhase<GreedyAllocator>>(); | 1769 Run<AllocateFPRegistersPhase<LinearScanAllocator>>(); |
| 1771 Run<AllocateFPRegistersPhase<GreedyAllocator>>(); | |
| 1772 } else { | |
| 1773 Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); | |
| 1774 Run<AllocateFPRegistersPhase<LinearScanAllocator>>(); | |
| 1775 } | |
| 1776 | 1770 |
| 1777 if (FLAG_turbo_preprocess_ranges) { | 1771 if (FLAG_turbo_preprocess_ranges) { |
| 1778 Run<MergeSplintersPhase>(); | 1772 Run<MergeSplintersPhase>(); |
| 1779 } | 1773 } |
| 1780 | 1774 |
| 1781 Run<AssignSpillSlotsPhase>(); | 1775 Run<AssignSpillSlotsPhase>(); |
| 1782 | 1776 |
| 1783 Run<CommitAssignmentPhase>(); | 1777 Run<CommitAssignmentPhase>(); |
| 1784 Run<PopulateReferenceMapsPhase>(); | 1778 Run<PopulateReferenceMapsPhase>(); |
| 1785 Run<ConnectRangesPhase>(); | 1779 Run<ConnectRangesPhase>(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1811 data->DeleteRegisterAllocationZone(); | 1805 data->DeleteRegisterAllocationZone(); |
| 1812 } | 1806 } |
| 1813 | 1807 |
| 1814 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1808 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1815 | 1809 |
| 1816 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1810 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 1817 | 1811 |
| 1818 } // namespace compiler | 1812 } // namespace compiler |
| 1819 } // namespace internal | 1813 } // namespace internal |
| 1820 } // namespace v8 | 1814 } // namespace v8 |
| OLD | NEW |