зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1245162 - Ensure enough ballast space in ValueNumberer::visitBlock. r=sunfish
This commit is contained in:
Родитель
1b5ba99a54
Коммит
1208fb1470
|
@ -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.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче