mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 650161 - Fix compacting GC build errors following JSObject changes. r=terrence
CLOSED TREE
This commit is contained in:
parent
b3991bb5ec
commit
95c9451c82
@ -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