Bug 1062830 - Fix bogus assert, r=billm.

This commit is contained in:
Brian Hackett 2014-10-31 13:55:17 -07:00
parent 69993a52cc
commit 10c4f1d5ed

View File

@ -1609,7 +1609,7 @@ GCMarker::saveValueRanges()
NativeObject *obj = arr->obj;
MOZ_ASSERT(obj->isNative());
HeapSlot *vp = obj->getDenseElements();
HeapSlot *vp = obj->getDenseElementsAllowCopyOnWrite();
if (arr->end == vp + obj->getDenseInitializedLength()) {
MOZ_ASSERT(arr->start >= vp);
arr->index = arr->start - vp;
@ -1647,7 +1647,7 @@ GCMarker::restoreValueArray(NativeObject *obj, void **vpp, void **endp)
return false;
uint32_t initlen = obj->getDenseInitializedLength();
HeapSlot *vp = obj->getDenseElements();
HeapSlot *vp = obj->getDenseElementsAllowCopyOnWrite();
if (start < initlen) {
*vpp = vp + start;
*endp = vp + initlen;