Bug 1165966 - Add error checking when populating safepoints r=bhackett

This commit is contained in:
Jon Coppeard 2015-05-20 17:30:32 +01:00
parent 677f1ce90b
commit 02d5581ea0

View File

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