Bug 650161 - Fix build errors due to recent changes and test failure in TypedObject/inlineopaque.js r=terrence

This commit is contained in:
Jon Coppeard 2014-10-14 09:39:47 +01:00
parent 495cbc6257
commit d5b63c8bda
3 changed files with 3 additions and 3 deletions

View File

@ -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>();
}
};

View File

@ -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.

View File

@ -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);