Bug 943667: OdinMonkey: Add check when removing AsmJSModule from IonScript, r=luke

This commit is contained in:
Hannes Verschore 2013-11-28 16:53:38 +01:00
Родитель f2889b9812
Коммит 9da95c1712
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -307,7 +307,8 @@ struct IonScript
}
bool addDependentAsmJSModule(JSContext *cx, DependentAsmJSModuleExit exit);
void removeDependentAsmJSModule(DependentAsmJSModuleExit exit) {
JS_ASSERT(dependentAsmJSModules);
if (!dependentAsmJSModules)
return;
for (size_t i = 0; i < dependentAsmJSModules->length(); i++) {
if (dependentAsmJSModules->begin()[i].module == exit.module &&
dependentAsmJSModules->begin()[i].exitIndex == exit.exitIndex)