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

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

Issue 2006353003: [turbofan] Avoid unnecessary copying of nodes during inlining. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't use one EmptyFrameState cross functions, that gets mutated during inlining. Created 4 years, 6 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
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | test/mjsunit/compiler/inline-dead-jscreate.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 AddReducer(data, &graph_reducer, &common_reducer); 797 AddReducer(data, &graph_reducer, &common_reducer);
798 if (data->info()->is_frame_specializing()) { 798 if (data->info()->is_frame_specializing()) {
799 AddReducer(data, &graph_reducer, &frame_specialization); 799 AddReducer(data, &graph_reducer, &frame_specialization);
800 } 800 }
801 if (data->info()->is_deoptimization_enabled()) { 801 if (data->info()->is_deoptimization_enabled()) {
802 AddReducer(data, &graph_reducer, &global_object_specialization); 802 AddReducer(data, &graph_reducer, &global_object_specialization);
803 } 803 }
804 AddReducer(data, &graph_reducer, &native_context_specialization); 804 AddReducer(data, &graph_reducer, &native_context_specialization);
805 AddReducer(data, &graph_reducer, &context_specialization); 805 AddReducer(data, &graph_reducer, &context_specialization);
806 AddReducer(data, &graph_reducer, &call_reducer); 806 AddReducer(data, &graph_reducer, &call_reducer);
807 AddReducer(data, &graph_reducer, &inlining); 807 if (!data->info()->is_optimizing_from_bytecode()) {
808 AddReducer(data, &graph_reducer, &inlining);
809 }
808 graph_reducer.ReduceGraph(); 810 graph_reducer.ReduceGraph();
809 } 811 }
810 }; 812 };
811 813
812 814
813 struct TyperPhase { 815 struct TyperPhase {
814 static const char* phase_name() { return "typer"; } 816 static const char* phase_name() { return "typer"; }
815 817
816 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { 818 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) {
817 NodeVector roots(temp_zone); 819 NodeVector roots(temp_zone);
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 data->DeleteRegisterAllocationZone(); 1796 data->DeleteRegisterAllocationZone();
1795 } 1797 }
1796 1798
1797 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1799 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1798 1800
1799 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1801 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1800 1802
1801 } // namespace compiler 1803 } // namespace compiler
1802 } // namespace internal 1804 } // namespace internal
1803 } // namespace v8 1805 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | test/mjsunit/compiler/inline-dead-jscreate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698