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
parent 0e8faaec28
commit 3b43741a29

View File

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