mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1165966 - Add error checking when populating safepoints r=bhackett
This commit is contained in:
parent
4d71d2ddb6
commit
c0b80e6cd3
@ -2030,18 +2030,22 @@ BacktrackingAllocator::populateSafepoints()
|
||||
safepoint->addGcPointer(a);
|
||||
break;
|
||||
case LDefinition::SLOTS:
|
||||
safepoint->addSlotsOrElementsPointer(a);
|
||||
if (!safepoint->addSlotsOrElementsPointer(a))
|
||||
return false;
|
||||
break;
|
||||
#ifdef JS_NUNBOX32
|
||||
case LDefinition::TYPE:
|
||||
safepoint->addNunboxType(i, a);
|
||||
if (!safepoint->addNunboxType(i, a))
|
||||
return false;
|
||||
break;
|
||||
case LDefinition::PAYLOAD:
|
||||
safepoint->addNunboxPayload(i, a);
|
||||
if (!safepoint->addNunboxPayload(i, a))
|
||||
return false;
|
||||
break;
|
||||
#else
|
||||
case LDefinition::BOX:
|
||||
safepoint->addBoxedValue(a);
|
||||
if (!safepoint->addBoxedValue(a))
|
||||
return false;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user