mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985562 - Do not allocate large call objects in the nursery; r=jandem
This commit is contained in:
parent
f3870cd2bf
commit
f819eba2cb
@ -3570,7 +3570,14 @@ CodeGenerator::visitNewCallObject(LNewCallObject *lir)
|
||||
if (!ool)
|
||||
return false;
|
||||
|
||||
if (lir->mir()->needsSingletonType()) {
|
||||
if (lir->mir()->needsSingletonType()
|
||||
#ifdef JSGC_GENERATIONAL
|
||||
// Slot initialization is not barriered in this case, so we must either
|
||||
// allocate in the nursery or bail if that is not possible.
|
||||
|| lir->mir()->templateObject()->hasDynamicSlots()
|
||||
#endif
|
||||
)
|
||||
{
|
||||
// Objects can only be given singleton types in VM calls.
|
||||
masm.jump(ool->entry());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user