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

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

Issue 2262033003: [turbofan] Allow inlining into BytecodeGraphBuilder graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-preserve-bytecode-5
Patch Set: Rebased. Created 4 years, 3 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/cctest/cctest.status » ('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 <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 if (data->info()->is_frame_specializing()) { 837 if (data->info()->is_frame_specializing()) {
838 AddReducer(data, &graph_reducer, &frame_specialization); 838 AddReducer(data, &graph_reducer, &frame_specialization);
839 } 839 }
840 if (data->info()->is_deoptimization_enabled()) { 840 if (data->info()->is_deoptimization_enabled()) {
841 AddReducer(data, &graph_reducer, &global_object_specialization); 841 AddReducer(data, &graph_reducer, &global_object_specialization);
842 } 842 }
843 AddReducer(data, &graph_reducer, &native_context_specialization); 843 AddReducer(data, &graph_reducer, &native_context_specialization);
844 AddReducer(data, &graph_reducer, &context_specialization); 844 AddReducer(data, &graph_reducer, &context_specialization);
845 AddReducer(data, &graph_reducer, &intrinsic_lowering); 845 AddReducer(data, &graph_reducer, &intrinsic_lowering);
846 AddReducer(data, &graph_reducer, &call_reducer); 846 AddReducer(data, &graph_reducer, &call_reducer);
847 if (!data->info()->is_optimizing_from_bytecode()) { 847 AddReducer(data, &graph_reducer, &inlining);
848 AddReducer(data, &graph_reducer, &inlining);
849 }
850 graph_reducer.ReduceGraph(); 848 graph_reducer.ReduceGraph();
851 } 849 }
852 }; 850 };
853 851
854 852
855 struct TyperPhase { 853 struct TyperPhase {
856 static const char* phase_name() { return "typer"; } 854 static const char* phase_name() { return "typer"; }
857 855
858 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { 856 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) {
859 NodeVector roots(temp_zone); 857 NodeVector roots(temp_zone);
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 data->DeleteRegisterAllocationZone(); 1946 data->DeleteRegisterAllocationZone();
1949 } 1947 }
1950 1948
1951 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1949 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1952 1950
1953 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1951 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1954 1952
1955 } // namespace compiler 1953 } // namespace compiler
1956 } // namespace internal 1954 } // namespace internal
1957 } // namespace v8 1955 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698