Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 6b078f2f2ae1499b1175e4a9019e245eebebe3d3..e66fad9092c7a1e62f74c35e44308a29d7573a28 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -14,7 +14,6 @@ |
#include "src/cpu-profiler.h" |
#include "src/debug/debug.h" |
#include "src/mips/macro-assembler-mips.h" |
-#include "src/register-configuration.h" |
#include "src/runtime/runtime.h" |
namespace v8 { |
@@ -148,7 +147,7 @@ |
MemOperand MacroAssembler::SafepointRegistersAndDoublesSlot(Register reg) { |
UNIMPLEMENTED_MIPS(); |
// General purpose registers are pushed last on the stack. |
- int doubles_size = DoubleRegister::kMaxNumRegisters * kDoubleSize; |
+ int doubles_size = FPURegister::NumAllocatableRegisters() * kDoubleSize; |
int register_offset = SafepointRegisterStackIndex(reg.code()) * kPointerSize; |
return MemOperand(sp, doubles_size + register_offset); |
} |
@@ -3683,7 +3682,7 @@ |
// Find a temp register in temps list. |
for (int i = 0; i < kNumRegisters; i++) { |
if ((temps & (1 << i)) != 0) { |
- tmp.reg_code = i; |
+ tmp.code_ = i; |
break; |
} |
} |
@@ -5772,10 +5771,8 @@ |
if (reg5.is_valid()) regs |= reg5.bit(); |
if (reg6.is_valid()) regs |= reg6.bit(); |
- const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); |
- for (int i = 0; i < config->num_allocatable_general_registers(); ++i) { |
- int code = config->GetAllocatableGeneralCode(i); |
- Register candidate = Register::from_code(code); |
+ for (int i = 0; i < Register::NumAllocatableRegisters(); i++) { |
+ Register candidate = Register::FromAllocationIndex(i); |
if (regs & candidate.bit()) continue; |
return candidate; |
} |