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

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

Issue 1419373012: [turbofan] Run inlining within the regular reducer fixpoint. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Limit inlining depth. Created 5 years, 1 month 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-heuristic.cc ('k') | no next file » | 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 : JSInliningHeuristic::kRestrictedInlining, 547 : JSInliningHeuristic::kRestrictedInlining,
548 temp_zone, data->info(), data->jsgraph()); 548 temp_zone, data->info(), data->jsgraph());
549 AddReducer(data, &graph_reducer, &dead_code_elimination); 549 AddReducer(data, &graph_reducer, &dead_code_elimination);
550 AddReducer(data, &graph_reducer, &common_reducer); 550 AddReducer(data, &graph_reducer, &common_reducer);
551 if (data->info()->is_frame_specializing()) { 551 if (data->info()->is_frame_specializing()) {
552 AddReducer(data, &graph_reducer, &frame_specialization); 552 AddReducer(data, &graph_reducer, &frame_specialization);
553 } 553 }
554 AddReducer(data, &graph_reducer, &context_specialization); 554 AddReducer(data, &graph_reducer, &context_specialization);
555 AddReducer(data, &graph_reducer, &inlining); 555 AddReducer(data, &graph_reducer, &inlining);
556 graph_reducer.ReduceGraph(); 556 graph_reducer.ReduceGraph();
557 inlining.ProcessCandidates();
558 } 557 }
559 }; 558 };
560 559
561 560
562 struct TyperPhase { 561 struct TyperPhase {
563 static const char* phase_name() { return "typer"; } 562 static const char* phase_name() { return "typer"; }
564 563
565 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { 564 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) {
566 NodeVector roots(temp_zone); 565 NodeVector roots(temp_zone);
567 data->jsgraph()->GetCachedNodes(&roots); 566 data->jsgraph()->GetCachedNodes(&roots);
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 tcf << AsC1VRegisterAllocationData("CodeGen", 1428 tcf << AsC1VRegisterAllocationData("CodeGen",
1430 data->register_allocation_data()); 1429 data->register_allocation_data());
1431 } 1430 }
1432 1431
1433 data->DeleteRegisterAllocationZone(); 1432 data->DeleteRegisterAllocationZone();
1434 } 1433 }
1435 1434
1436 } // namespace compiler 1435 } // namespace compiler
1437 } // namespace internal 1436 } // namespace internal
1438 } // namespace v8 1437 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698