mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 650161 - Fix build errors due to recent changes and test failure in TypedObject/inlineopaque.js r=terrence
This commit is contained in:
parent
495cbc6257
commit
d5b63c8bda
@ -516,7 +516,7 @@ class StructTypeDescr : public ComplexTypeDescr
|
||||
}
|
||||
|
||||
NativeObject &maybeForwardedFieldInfoObject(size_t slot) const {
|
||||
return *MaybeForwarded(&fieldInfoObject(slot));
|
||||
return MaybeForwarded(&getReservedSlot(slot).toObject())->as<NativeObject>();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -472,6 +472,7 @@ class GCRuntime
|
||||
|
||||
template <AllowGC allowGC>
|
||||
static void *refillFreeListFromAnyThread(ThreadSafeContext *cx, AllocKind thingKind);
|
||||
static void *refillFreeListInGC(Zone *zone, AllocKind thingKind);
|
||||
|
||||
private:
|
||||
// For ArenaLists::allocateFromArena()
|
||||
@ -483,7 +484,6 @@ class GCRuntime
|
||||
static void *refillFreeListFromMainThread(JSContext *cx, AllocKind thingKind);
|
||||
static void *refillFreeListOffMainThread(ExclusiveContext *cx, AllocKind thingKind);
|
||||
static void *refillFreeListPJS(ForkJoinContext *cx, AllocKind thingKind);
|
||||
static void *refillFreeListInGC(Zone *zone, AllocKind thingKind);
|
||||
|
||||
/*
|
||||
* Return the list of chunks that can be released outside the GC lock.
|
||||
|
@ -2157,7 +2157,7 @@ RelocateCell(Zone *zone, TenuredCell *src, AllocKind thingKind, size_t thingSize
|
||||
MOZ_ASSERT(zone == src->zone());
|
||||
void *dstAlloc = zone->allocator.arenas.allocateFromFreeList(thingKind, thingSize);
|
||||
if (!dstAlloc)
|
||||
dstAlloc = js::gc::ArenaLists::refillFreeListInGC(zone, thingKind);
|
||||
dstAlloc = GCRuntime::refillFreeListInGC(zone, thingKind);
|
||||
if (!dstAlloc)
|
||||
return false;
|
||||
TenuredCell *dst = TenuredCell::fromPointer(dstAlloc);
|
||||
|
Loading…
Reference in New Issue
Block a user