Bug 961875 - Add missing post barrier in IonBuilder::jsop_rest; r=shu

--HG--
extra : rebase_source : 0a68d323c075cb95500d404c47e670413143c847
This commit is contained in:
Terrence Cole 2014-02-20 13:16:20 -08:00
Родитель 2c757813b8
Коммит 14b6763f68
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -7946,6 +7946,9 @@ IonBuilder::jsop_rest()
MStoreElement *store = MStoreElement::New(alloc(), elements, index, arg, MStoreElement *store = MStoreElement::New(alloc(), elements, index, arg,
/* needsHoleCheck = */ false); /* needsHoleCheck = */ false);
current->add(store); current->add(store);
if (NeedsPostBarrier(info(), arg))
current->add(MPostWriteBarrier::New(alloc(), array, arg));
} }
// The array's length is incorrectly 0 now, from the template object // The array's length is incorrectly 0 now, from the template object