| Index: src/crankshaft/mips/lithium-codegen-mips.cc
|
| diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc
|
| index ae589613380894314576498b6fbe5a3da146c575..ec4dc5664fc0aa71343b6e1d456f195c1334d2c3 100644
|
| --- a/src/crankshaft/mips/lithium-codegen-mips.cc
|
| +++ b/src/crankshaft/mips/lithium-codegen-mips.cc
|
| @@ -372,7 +372,7 @@
|
|
|
| bool LCodeGen::GenerateSafepointTable() {
|
| DCHECK(is_done());
|
| - safepoints_.Emit(masm(), GetTotalFrameSlotCount());
|
| + safepoints_.Emit(masm(), GetStackSlotCount());
|
| return !is_aborted();
|
| }
|
|
|
| @@ -545,7 +545,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.
|
| @@ -557,7 +557,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.
|
| @@ -626,6 +626,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) {
|
| @@ -635,6 +638,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);
|
|
|