Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index ab73d1072c97d6801850bf20458bac5a2f21196e..d9cb060c9b52ee3a2e8fe029acc798737e251766 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -355,7 +355,7 @@ bool LCodeGen::GenerateJumpTable() { |
bool LCodeGen::GenerateSafepointTable() { |
DCHECK(is_done()); |
- safepoints_.Emit(masm(), GetStackSlotCount()); |
+ safepoints_.Emit(masm(), GetTotalFrameSlotCount()); |
return !is_aborted(); |
} |
@@ -530,7 +530,7 @@ MemOperand LCodeGen::ToMemOperand(LOperand* op) const { |
DCHECK(!op->IsDoubleRegister()); |
DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |
if (NeedsEagerFrame()) { |
- return MemOperand(fp, StackSlotOffset(op->index())); |
+ return MemOperand(fp, FrameSlotToFPOffset(op->index())); |
} else { |
// Retrieve parameter without eager stack-frame relative to the |
// stack-pointer. |
@@ -542,8 +542,8 @@ MemOperand LCodeGen::ToMemOperand(LOperand* op) const { |
MemOperand LCodeGen::ToHighMemOperand(LOperand* op) const { |
DCHECK(op->IsDoubleStackSlot()); |
if (NeedsEagerFrame()) { |
- // return MemOperand(fp, StackSlotOffset(op->index()) + kPointerSize); |
- return MemOperand(fp, StackSlotOffset(op->index()) + kIntSize); |
+ // return MemOperand(fp, FrameSlotToFPOffset(op->index()) + kPointerSize); |
+ return MemOperand(fp, FrameSlotToFPOffset(op->index()) + kIntSize); |
} else { |
// Retrieve parameter without eager stack-frame relative to the |
// stack-pointer. |
@@ -614,9 +614,6 @@ void LCodeGen::AddToTranslation(LEnvironment* environment, |
if (op->IsStackSlot()) { |
int index = op->index(); |
- if (index >= 0) { |
- index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
- } |
if (is_tagged) { |
translation->StoreStackSlot(index); |
} else if (is_uint32) { |
@@ -626,9 +623,6 @@ void LCodeGen::AddToTranslation(LEnvironment* environment, |
} |
} 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); |