Commit bddf5eeb authored by Dusan Milosavljevic's avatar Dusan Milosavljevic

MIPS: Fix bug in elements transition code for smi to double transitions.

This fixes intermittent sin-cos test failures when corrupted values are returned
for referent sin and cos functions in test which require factorial value
to be calculated.

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

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

Cr-Commit-Position: refs/heads/master@{#26365}
parent 1bd398ab
......@@ -827,9 +827,9 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
__ sw(hole_lower, MemOperand(scratch3, Register::kMantissaOffset));
// exponent
__ sw(hole_upper, MemOperand(scratch3, Register::kExponentOffset));
__ bind(&entry);
__ addiu(scratch3, scratch3, kDoubleSize);
__ bind(&entry);
__ Branch(&loop, lt, scratch3, Operand(array_end));
__ bind(&done);
......
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