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

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

Issue 688633002: [turbofan] add configuration parameters for register allocator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 info()->AbortOptimization(kNotEnoughVirtualRegistersForValues); 571 info()->AbortOptimization(kNotEnoughVirtualRegistersForValues);
572 return Handle<Code>::null(); 572 return Handle<Code>::null();
573 } 573 }
574 ZonePool::Scope zone_scope(data->zone_pool()); 574 ZonePool::Scope zone_scope(data->zone_pool());
575 575
576 SmartArrayPointer<char> debug_name; 576 SmartArrayPointer<char> debug_name;
577 #ifdef DEBUG 577 #ifdef DEBUG
578 debug_name = GetDebugName(info()); 578 debug_name = GetDebugName(info());
579 #endif 579 #endif
580 580
581 RegisterAllocator allocator(zone_scope.zone(), &frame, &sequence, 581
582 RegisterAllocator allocator(RegisterAllocator::PlatformConfig(),
583 zone_scope.zone(), &frame, &sequence,
582 debug_name.get()); 584 debug_name.get());
583 if (!allocator.Allocate(data->pipeline_statistics())) { 585 if (!allocator.Allocate(data->pipeline_statistics())) {
584 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); 586 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc);
585 return Handle<Code>::null(); 587 return Handle<Code>::null();
586 } 588 }
587 if (FLAG_trace_turbo) { 589 if (FLAG_trace_turbo) {
588 TurboCfgFile tcf(isolate()); 590 TurboCfgFile tcf(isolate());
589 tcf << AsC1VAllocator("CodeGen", &allocator); 591 tcf << AsC1VAllocator("CodeGen", &allocator);
590 } 592 }
591 } 593 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 } 625 }
624 626
625 627
626 void Pipeline::TearDown() { 628 void Pipeline::TearDown() {
627 InstructionOperand::TearDownCaches(); 629 InstructionOperand::TearDownCaches();
628 } 630 }
629 631
630 } // namespace compiler 632 } // namespace compiler
631 } // namespace internal 633 } // namespace internal
632 } // namespace v8 634 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698