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

Unified Diff: src/compiler/pipeline.cc

Issue 1061923005: Reland: Introducing the LLVM greedy register allocator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/register-allocator.h » ('j') | src/compiler/register-allocator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index c165fbdb6e9d62fd395867081a982f6618e64cb0..30b9fe3512238dc2408fe0d583023f05fba82db4 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -244,8 +244,13 @@ class PipelineData {
DCHECK(!register_allocator_);
DCHECK(!frame_);
frame_ = new (instruction_zone()) Frame();
- register_allocator_ = new (instruction_zone())
- RegisterAllocator(config, local_zone, frame(), sequence(), debug_name);
+ if (FLAG_turbo_greedy_regalloc) {
+ register_allocator_ = new (instruction_zone())
+ GreedyAllocator(config, local_zone, frame(), sequence(), debug_name);
+ } else {
+ register_allocator_ = new (instruction_zone()) LinearScanAllocator(
+ config, local_zone, frame(), sequence(), debug_name);
+ }
}
private:
« no previous file with comments | « no previous file | src/compiler/register-allocator.h » ('j') | src/compiler/register-allocator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698