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

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

Issue 1406543002: [turbofan] First rudimentary inlining heuristic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation on 64-bit architectures. Created 5 years, 2 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-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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 AddReducer(data, &graph_reducer, &common_reducer); 535 AddReducer(data, &graph_reducer, &common_reducer);
536 if (data->info()->is_frame_specializing()) { 536 if (data->info()->is_frame_specializing()) {
537 AddReducer(data, &graph_reducer, &frame_specialization); 537 AddReducer(data, &graph_reducer, &frame_specialization);
538 } 538 }
539 if (data->info()->is_native_context_specializing()) { 539 if (data->info()->is_native_context_specializing()) {
540 AddReducer(data, &graph_reducer, &global_specialization); 540 AddReducer(data, &graph_reducer, &global_specialization);
541 } 541 }
542 AddReducer(data, &graph_reducer, &context_specialization); 542 AddReducer(data, &graph_reducer, &context_specialization);
543 AddReducer(data, &graph_reducer, &inlining); 543 AddReducer(data, &graph_reducer, &inlining);
544 graph_reducer.ReduceGraph(); 544 graph_reducer.ReduceGraph();
545 inlining.ProcessCandidates();
545 } 546 }
546 }; 547 };
547 548
548 549
549 struct TyperPhase { 550 struct TyperPhase {
550 static const char* phase_name() { return "typer"; } 551 static const char* phase_name() { return "typer"; }
551 552
552 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { 553 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) {
553 NodeVector roots(temp_zone); 554 NodeVector roots(temp_zone);
554 data->jsgraph()->GetCachedNodes(&roots); 555 data->jsgraph()->GetCachedNodes(&roots);
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 tcf << AsC1VRegisterAllocationData("CodeGen", 1431 tcf << AsC1VRegisterAllocationData("CodeGen",
1431 data->register_allocation_data()); 1432 data->register_allocation_data());
1432 } 1433 }
1433 1434
1434 data->DeleteRegisterAllocationZone(); 1435 data->DeleteRegisterAllocationZone();
1435 } 1436 }
1436 1437
1437 } // namespace compiler 1438 } // namespace compiler
1438 } // namespace internal 1439 } // namespace internal
1439 } // namespace v8 1440 } // 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