Index: src/arm64/deoptimizer-arm64.cc |
diff --git a/src/arm64/deoptimizer-arm64.cc b/src/arm64/deoptimizer-arm64.cc |
index 60409f6d267e0268e039ef62f9813979227c4081..65fb93e53cfa2e87d555e3a937d6f5ffc8b99761 100644 |
--- a/src/arm64/deoptimizer-arm64.cc |
+++ b/src/arm64/deoptimizer-arm64.cc |
@@ -6,7 +6,6 @@ |
#include "src/codegen.h" |
#include "src/deoptimizer.h" |
#include "src/full-codegen/full-codegen.h" |
-#include "src/register-configuration.h" |
#include "src/safepoint-table.h" |
@@ -76,7 +75,7 @@ |
input_->SetRegister(jssp.code(), reinterpret_cast<intptr_t>(frame->sp())); |
input_->SetRegister(fp.code(), reinterpret_cast<intptr_t>(frame->fp())); |
- for (int i = 0; i < DoubleRegister::kMaxNumRegisters; i++) { |
+ for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); i++) { |
input_->SetDoubleRegister(i, 0.0); |
} |
@@ -123,9 +122,8 @@ |
// in the input frame. |
// Save all allocatable floating point registers. |
- CPURegList saved_fp_registers( |
- CPURegister::kFPRegister, kDRegSizeInBits, |
- RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask()); |
+ CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSizeInBits, |
+ FPRegister::kAllocatableFPRegisters); |
__ PushCPURegList(saved_fp_registers); |
// We save all the registers expcept jssp, sp and lr. |