| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 7cc2d0c1ef20b530a4d8a7de0b96b37eb6959dd6..82b38ae515bee9c447ee35d7f21b23e6d484a3eb 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -673,15 +673,23 @@ void LCodeGen::AddToTranslation(LEnvironment* environment,
|
| }
|
|
|
| if (op->IsStackSlot()) {
|
| + int index = op->index();
|
| + if (index >= 0) {
|
| + index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
|
| + }
|
| if (is_tagged) {
|
| - translation->StoreStackSlot(op->index());
|
| + translation->StoreStackSlot(index);
|
| } else if (is_uint32) {
|
| - translation->StoreUint32StackSlot(op->index());
|
| + translation->StoreUint32StackSlot(index);
|
| } else {
|
| - translation->StoreInt32StackSlot(op->index());
|
| + translation->StoreInt32StackSlot(index);
|
| }
|
| } else if (op->IsDoubleStackSlot()) {
|
| - translation->StoreDoubleStackSlot(op->index());
|
| + int index = op->index();
|
| + if (index >= 0) {
|
| + index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
|
| + }
|
| + translation->StoreDoubleStackSlot(index);
|
| } else if (op->IsRegister()) {
|
| Register reg = ToRegister(op);
|
| if (is_tagged) {
|
|
|