Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: src/compiler/pipeline.cc

Issue 2171083004: [interpreter] Implement OSR graph construction from bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-osr-2
Patch Set: Rebased. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« src/compiler/bytecode-graph-builder.cc ('K') | « src/compiler/osr.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698