| Index: src/crankshaft/x87/lithium-codegen-x87.cc
|
| diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| index 04af25efc27e337d1d0c6f83a876ee85c5b9f245..6a80143ad36cb59d1bfd7446fac022e84aaa5b8a 100644
|
| --- a/src/crankshaft/x87/lithium-codegen-x87.cc
|
| +++ b/src/crankshaft/x87/lithium-codegen-x87.cc
|
| @@ -20,7 +20,6 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -
|
| // When invoking builtins, we need to record the safepoint in the middle of
|
| // the invoke instruction sequence generated by the macro assembler.
|
| class SafepointGenerator final : public CallWrapper {
|
| @@ -75,7 +74,7 @@ bool LCodeGen::GenerateCode() {
|
|
|
| void LCodeGen::FinishCode(Handle<Code> code) {
|
| DCHECK(is_done());
|
| - code->set_stack_slots(GetStackSlotCount());
|
| + code->set_stack_slots(GetTotalFrameSlotCount());
|
| code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
|
| PopulateDeoptimizationData(code);
|
| if (info()->ShouldEnsureSpaceForLazyDeopt()) {
|
| @@ -486,7 +485,7 @@ bool LCodeGen::GenerateSafepointTable() {
|
| masm()->nop();
|
| }
|
| }
|
| - safepoints_.Emit(masm(), GetStackSlotCount());
|
| + safepoints_.Emit(masm(), GetTotalFrameSlotCount());
|
| return !is_aborted();
|
| }
|
|
|
| @@ -839,7 +838,7 @@ Operand LCodeGen::ToOperand(LOperand* op) const {
|
| DCHECK(!op->IsDoubleRegister());
|
| DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
|
| if (NeedsEagerFrame()) {
|
| - return Operand(ebp, StackSlotOffset(op->index()));
|
| + return Operand(ebp, FrameSlotToFPOffset(op->index()));
|
| } else {
|
| // Retrieve parameter without eager stack-frame relative to the
|
| // stack-pointer.
|
| @@ -851,7 +850,7 @@ Operand LCodeGen::ToOperand(LOperand* op) const {
|
| Operand LCodeGen::HighOperand(LOperand* op) {
|
| DCHECK(op->IsDoubleStackSlot());
|
| if (NeedsEagerFrame()) {
|
| - return Operand(ebp, StackSlotOffset(op->index()) + kPointerSize);
|
| + return Operand(ebp, FrameSlotToFPOffset(op->index()) + kPointerSize);
|
| } else {
|
| // Retrieve parameter without eager stack-frame relative to the
|
| // stack-pointer.
|
| @@ -924,9 +923,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) {
|
| @@ -936,9 +932,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);
|
|
|