| Index: src/crankshaft/x64/lithium-codegen-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| index 2936bbd019bdc483e40e6cb91d214616257a4f40..90aadfb895cca0075190716b2f73765f3b3d1326 100644
|
| --- a/src/crankshaft/x64/lithium-codegen-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| @@ -406,7 +406,7 @@
|
|
|
| bool LCodeGen::GenerateSafepointTable() {
|
| DCHECK(is_done());
|
| - safepoints_.Emit(masm(), GetTotalFrameSlotCount());
|
| + safepoints_.Emit(masm(), GetStackSlotCount());
|
| return !is_aborted();
|
| }
|
|
|
| @@ -507,7 +507,7 @@
|
| // representable as an Operand.
|
| DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
|
| if (NeedsEagerFrame()) {
|
| - return Operand(rbp, FrameSlotToFPOffset(op->index()));
|
| + return Operand(rbp, StackSlotOffset(op->index()));
|
| } else {
|
| // Retrieve parameter without eager stack-frame relative to the
|
| // stack-pointer.
|
| @@ -575,6 +575,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) {
|
| @@ -584,6 +587,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);
|
|
|