mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 650161 - Fix compacting GC build errors following JSObject changes. r=terrence
CLOSED TREE
This commit is contained in:
parent
a0e1003061
commit
5df3d963a1
@ -2198,15 +2198,16 @@ RelocateCell(Zone *zone, TenuredCell *src, AllocKind thingKind, size_t thingSize
|
||||
JSObject *dstObj = static_cast<JSObject *>(static_cast<Cell *>(dst));
|
||||
|
||||
// Fixup the pointer to inline object elements if necessary.
|
||||
if (srcObj->hasFixedElements())
|
||||
dstObj->setFixedElements();
|
||||
if (srcObj->isNative() && srcObj->as<NativeObject>().hasFixedElements())
|
||||
dstObj->as<NativeObject>().setFixedElements();
|
||||
|
||||
// Call object moved hook if present.
|
||||
if (JSObjectMovedOp op = srcObj->getClass()->ext.objectMovedOp)
|
||||
op(dstObj, srcObj);
|
||||
|
||||
MOZ_ASSERT_IF(dstObj->isNative(),
|
||||
!PtrIsInRange((const Value*)dstObj->getDenseElements(), src, thingSize));
|
||||
!PtrIsInRange((const Value*)dstObj->as<NativeObject>().getDenseElements(),
|
||||
src, thingSize));
|
||||
}
|
||||
|
||||
// Copy the mark bits.
|
||||
|
Loading…
Reference in New Issue
Block a user