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

Unified Diff: src/compiler/register-allocator.cc

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/register-configuration.h » ('j') | src/register-configuration.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.cc
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
index 1dea881fe2b0b19dd00a0ef52a983cf7e145eaa7..b8a1ea9a4dd244ad9344b046ff9fe582c639cf31 100644
--- a/src/compiler/register-allocator.cc
+++ b/src/compiler/register-allocator.cc
@@ -35,7 +35,7 @@ int GetRegisterCount(const RegisterConfiguration* cfg, RegisterKind kind) {
int GetAllocatableRegisterCount(const RegisterConfiguration* cfg,
RegisterKind kind) {
return kind == DOUBLE_REGISTERS
- ? cfg->num_allocatable_aliased_double_registers()
+ ? cfg->num_allocatable_aliased_double_registers(true)
: cfg->num_allocatable_general_registers();
}
@@ -1956,8 +1956,8 @@ void LiveRangeBuilder::ProcessInstructions(const InstructionBlock* block,
}
if (instr->ClobbersDoubleRegisters()) {
- for (int i = 0; i < config()->num_allocatable_aliased_double_registers();
- ++i) {
+ for (int i = 0;
+ i < config()->num_allocatable_aliased_double_registers(true); ++i) {
int code = config()->GetAllocatableDoubleCode(i);
if (!IsOutputDoubleRegisterOf(instr, DoubleRegister::from_code(code))) {
auto range = FixedDoubleLiveRangeFor(code);
« no previous file with comments | « no previous file | src/register-configuration.h » ('j') | src/register-configuration.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698