Bug 1478902 Part 2 - Nursery strings allocation code uses the wrong pointer r=sfink

Some of the allocation code here uses the wrong pointer for the strings
nursery position.  The bug is benign because the nursery is shared.

--HG--
extra : rebase_source : 27a14aa077d8de6e616d26759aa4e8e0a6bb5bb9
This commit is contained in:
Paul Bone 2018-07-30 14:35:11 +10:00
parent bf12405840
commit 9133f15f25

View File

@ -972,7 +972,7 @@ MacroAssembler::nurseryAllocateString(Register result, Register temp, gc::AllocK
void* nurseryPosAddr = zone->addressOfStringNurseryPosition(); void* nurseryPosAddr = zone->addressOfStringNurseryPosition();
const void* nurseryEndAddr = zone->addressOfStringNurseryCurrentEnd(); const void* nurseryEndAddr = zone->addressOfStringNurseryCurrentEnd();
movePtr(ImmPtr(zone->addressOfNurseryPosition()), temp); movePtr(ImmPtr(nurseryPosAddr), temp);
loadPtr(Address(temp, 0), result); loadPtr(Address(temp, 0), result);
addPtr(Imm32(totalSize), result); addPtr(Imm32(totalSize), result);
const ptrdiff_t endOffset = const ptrdiff_t endOffset =