Index: src/arm64/deoptimizer-arm64.cc |
diff --git a/src/arm64/deoptimizer-arm64.cc b/src/arm64/deoptimizer-arm64.cc |
index 65fb93e53cfa2e87d555e3a937d6f5ffc8b99761..60409f6d267e0268e039ef62f9813979227c4081 100644 |
--- a/src/arm64/deoptimizer-arm64.cc |
+++ b/src/arm64/deoptimizer-arm64.cc |
@@ -6,6 +6,7 @@ |
#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" |
@@ -75,7 +76,7 @@ void Deoptimizer::FillInputFrame(Address tos, JavaScriptFrame* frame) { |
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::NumAllocatableRegisters(); i++) { |
+ for (int i = 0; i < DoubleRegister::kMaxNumRegisters; i++) { |
input_->SetDoubleRegister(i, 0.0); |
} |
@@ -122,8 +123,9 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
// in the input frame. |
// Save all allocatable floating point registers. |
- CPURegList saved_fp_registers(CPURegister::kFPRegister, kDRegSizeInBits, |
- FPRegister::kAllocatableFPRegisters); |
+ CPURegList saved_fp_registers( |
+ CPURegister::kFPRegister, kDRegSizeInBits, |
+ RegisterConfiguration::ArchDefault()->allocatable_double_codes_mask()); |
__ PushCPURegList(saved_fp_registers); |
// We save all the registers expcept jssp, sp and lr. |