Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index fecca606631bc8ae17d88f1cb7a8ff2aba4df182..0343798dacf65a46ed665384ed51fca615371502 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -210,10 +210,7 @@ class Arm64OperandConverter final : public InstructionOperandConverter { |
FrameOffset offset = frame_access_state()->GetFrameOffset( |
AllocatedOperand::cast(op)->index()); |
if (offset.from_frame_pointer()) { |
- int from_sp = |
- offset.offset() + |
- ((frame()->GetSpToFpSlotCount() + frame_access_state()->sp_delta()) * |
- kPointerSize); |
+ int from_sp = offset.offset() + frame_access_state()->GetSPToFPOffset(); |
// Convert FP-offsets to SP-offsets if it results in better code. |
if (Assembler::IsImmLSUnscaled(from_sp) || |
Assembler::IsImmLSScaled(from_sp, LSDoubleWord)) { |