Commit 037c7397 authored by Dusan Milosavljevic's avatar Dusan Milosavljevic

MIPS: Fix rare random crashes in keyed store if element transition is needed.

TEST=mjsunit/sin-cos
BUG=
R=balazs.kilvady@imgtec.com

Review URL: https://codereview.chromium.org/865153002

Cr-Commit-Position: refs/heads/master@{#26223}
parent 87e1426c
......@@ -750,7 +750,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
OMIT_SMI_CHECK);
// Replace receiver's backing store with newly created FixedDoubleArray.
__ Addu(scratch1, array, Operand(kHeapObjectTag));
__ sw(scratch1, FieldMemOperand(a2, JSObject::kElementsOffset));
__ sw(scratch1, FieldMemOperand(receiver, JSObject::kElementsOffset));
__ RecordWriteField(receiver,
JSObject::kElementsOffset,
scratch1,
......
......@@ -643,7 +643,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
OMIT_SMI_CHECK);
// Replace receiver's backing store with newly created FixedDoubleArray.
__ Daddu(scratch1, array, Operand(kHeapObjectTag));
__ sd(scratch1, FieldMemOperand(a2, JSObject::kElementsOffset));
__ sd(scratch1, FieldMemOperand(receiver, JSObject::kElementsOffset));
__ RecordWriteField(receiver,
JSObject::kElementsOffset,
scratch1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment