mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1165966 - Add error checking when populating safepoints r=bhackett
This commit is contained in:
parent
677f1ce90b
commit
02d5581ea0
@ -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