Chromium Code Reviews| 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 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1796 } | 1796 } |
| 1797 | 1797 |
| 1798 #ifdef DEBUG | 1798 #ifdef DEBUG |
| 1799 data_->sequence()->ValidateEdgeSplitForm(); | 1799 data_->sequence()->ValidateEdgeSplitForm(); |
| 1800 data_->sequence()->ValidateDeferredBlockEntryPaths(); | 1800 data_->sequence()->ValidateDeferredBlockEntryPaths(); |
| 1801 data_->sequence()->ValidateDeferredBlockExitPaths(); | 1801 data_->sequence()->ValidateDeferredBlockExitPaths(); |
| 1802 #endif | 1802 #endif |
| 1803 | 1803 |
| 1804 data->InitializeRegisterAllocationData(config, descriptor); | 1804 data->InitializeRegisterAllocationData(config, descriptor); |
| 1805 if (info()->is_osr()) { | 1805 if (info()->is_osr()) { |
| 1806 AllowHandleDereference allow_deref; | |
|
Jarin
2016/07/26 14:46:36
Out of curiosity, why is this needed?
Michael Starzinger
2016/07/26 14:58:51
The constructor of {OsrHelper} dereferences the {S
| |
| 1806 OsrHelper osr_helper(info()); | 1807 OsrHelper osr_helper(info()); |
| 1807 osr_helper.SetupFrame(data->frame()); | 1808 osr_helper.SetupFrame(data->frame()); |
| 1808 } | 1809 } |
| 1809 | 1810 |
| 1810 Run<MeetRegisterConstraintsPhase>(); | 1811 Run<MeetRegisterConstraintsPhase>(); |
| 1811 Run<ResolvePhisPhase>(); | 1812 Run<ResolvePhisPhase>(); |
| 1812 Run<BuildLiveRangesPhase>(); | 1813 Run<BuildLiveRangesPhase>(); |
| 1813 if (FLAG_trace_turbo_graph) { | 1814 if (FLAG_trace_turbo_graph) { |
| 1814 AllowHandleDereference allow_deref; | 1815 AllowHandleDereference allow_deref; |
| 1815 OFStream os(stdout); | 1816 OFStream os(stdout); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1866 data->DeleteRegisterAllocationZone(); | 1867 data->DeleteRegisterAllocationZone(); |
| 1867 } | 1868 } |
| 1868 | 1869 |
| 1869 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1870 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1870 | 1871 |
| 1871 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1872 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 1872 | 1873 |
| 1873 } // namespace compiler | 1874 } // namespace compiler |
| 1874 } // namespace internal | 1875 } // namespace internal |
| 1875 } // namespace v8 | 1876 } // namespace v8 |
| OLD | NEW |