Bug 1245162 - Ensure enough ballast space in ValueNumberer::visitBlock. r=sunfish

This commit is contained in:
Nicolas B. Pierron 2016-02-11 17:50:53 +00:00
Родитель 1b5ba99a54
Коммит 1208fb1470
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -949,6 +949,8 @@ ValueNumberer::visitBlock(MBasicBlock* block, const MBasicBlock* dominatorRoot)
// Visit the definitions in the block top-down. // Visit the definitions in the block top-down.
MOZ_ASSERT(nextDef_ == nullptr); MOZ_ASSERT(nextDef_ == nullptr);
for (MDefinitionIterator iter(block); iter; ) { for (MDefinitionIterator iter(block); iter; ) {
if (!graph_.alloc().ensureBallast())
return nullptr;
MDefinition* def = *iter++; MDefinition* def = *iter++;
// Remember where our iterator is so that we don't invalidate it. // Remember where our iterator is so that we don't invalidate it.