mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1146216 - Remove MakeSlotArray(), because it's dead. r=terrence.
This commit is contained in:
parent
8f37c8962f
commit
40d93c611c
@ -167,20 +167,6 @@ GCRuntime::tryNewNurseryObject(JSContext *cx, size_t thingSize, size_t nDynamicS
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
typedef mozilla::UniquePtr<HeapSlot, JS::FreePolicy> UniqueSlots;
|
||||
|
||||
static inline UniqueSlots
|
||||
MakeSlotArray(ExclusiveContext *cx, size_t count)
|
||||
{
|
||||
HeapSlot *slots = nullptr;
|
||||
if (count) {
|
||||
slots = cx->zone()->pod_malloc<HeapSlot>(count);
|
||||
if (slots)
|
||||
Debug_SetSlotRangeToCrashOnTouch(slots, count);
|
||||
}
|
||||
return UniqueSlots(slots);
|
||||
}
|
||||
|
||||
template <AllowGC allowGC>
|
||||
JSObject *
|
||||
GCRuntime::tryNewTenuredObject(ExclusiveContext *cx, AllocKind kind, size_t thingSize,
|
||||
|
Loading…
Reference in New Issue
Block a user