mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
No bug. Minor comment tweaks. DONTBUILD.
--HG-- extra : rebase_source : 315e111f0b8655ab2f7c4ffcde0f6f823239544f
This commit is contained in:
parent
a6b0347165
commit
8020f7b3eb
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user