No bug. Minor comment tweaks. DONTBUILD.

--HG--
extra : rebase_source : 315e111f0b8655ab2f7c4ffcde0f6f823239544f
This commit is contained in:
Steve Fink 2013-07-15 14:08:15 -07:00
parent e537debdc8
commit 6a531f473e

View File

@ -1341,14 +1341,15 @@ ArrayBufferViewObject::trace(JSTracer *trc, JSObject *obj)
HeapSlot &bufSlot = obj->getReservedSlotRef(BUFFER_SLOT);
MarkSlot(trc, &bufSlot, "typedarray.buffer");
/* Update obj's data slot if the array buffer moved. */
/* Update obj's data slot if the array buffer moved. Note that during
* initialization, bufSlot may still be JSVAL_VOID. */
if (bufSlot.isObject()) {
ArrayBufferObject &buf = bufSlot.toObject().as<ArrayBufferObject>();
int32_t offset = obj->getReservedSlot(BYTEOFFSET_SLOT).toInt32();
obj->initPrivate(buf.dataPointer() + offset);
}
/* Update NEXT_VEIW_SLOT, if the view moved. */
/* Update NEXT_VIEW_SLOT, if the view moved. */
IsSlotMarked(&obj->getReservedSlotRef(NEXT_VIEW_SLOT));
}