Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 49d433d79195bec5232a92e1a311175d22b2b989..b3526412b5c7e85b932f5e32c7dc1f3dc0ba4499 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -375,7 +375,7 @@ |
bool LCodeGen::GenerateSafepointTable() { |
DCHECK(is_done()); |
- safepoints_.Emit(masm(), GetTotalFrameSlotCount()); |
+ safepoints_.Emit(masm(), GetStackSlotCount()); |
return !is_aborted(); |
} |
@@ -547,7 +547,7 @@ |
DCHECK(!op->IsDoubleRegister()); |
DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |
if (NeedsEagerFrame()) { |
- return MemOperand(fp, FrameSlotToFPOffset(op->index())); |
+ return MemOperand(fp, StackSlotOffset(op->index())); |
} else { |
// Retrieve parameter without eager stack-frame relative to the |
// stack-pointer. |
@@ -559,7 +559,7 @@ |
MemOperand LCodeGen::ToHighMemOperand(LOperand* op) const { |
DCHECK(op->IsDoubleStackSlot()); |
if (NeedsEagerFrame()) { |
- return MemOperand(fp, FrameSlotToFPOffset(op->index()) + kPointerSize); |
+ return MemOperand(fp, StackSlotOffset(op->index()) + kPointerSize); |
} else { |
// Retrieve parameter without eager stack-frame relative to the |
// stack-pointer. |
@@ -628,6 +628,9 @@ |
if (op->IsStackSlot()) { |
int index = op->index(); |
+ if (index >= 0) { |
+ index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
+ } |
if (is_tagged) { |
translation->StoreStackSlot(index); |
} else if (is_uint32) { |
@@ -637,6 +640,9 @@ |
} |
} else if (op->IsDoubleStackSlot()) { |
int index = op->index(); |
+ if (index >= 0) { |
+ index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
+ } |
translation->StoreDoubleStackSlot(index); |
} else if (op->IsRegister()) { |
Register reg = ToRegister(op); |