Bug 1104027 - Fix IonBuilder::jsop_setelem to not abort during arguments analysis. r=bhackett

This commit is contained in:
Jan de Mooij 2014-11-24 16:31:02 +01:00
parent 99cf4dc87c
commit 7bf8e1b089

View File

@ -8204,8 +8204,12 @@ IonBuilder::jsop_setelem()
if (!setElemTryArguments(&emitted, object, index, value) || emitted)
return emitted;
if (script()->argumentsHasVarBinding() && object->mightBeType(MIRType_MagicOptimizedArguments))
if (script()->argumentsHasVarBinding() &&
object->mightBeType(MIRType_MagicOptimizedArguments) &&
info().executionMode() != ArgumentsUsageAnalysis)
{
return abort("Type is not definitely lazy arguments.");
}
if (!setElemTryCache(&emitted, object, index, value) || emitted)
return emitted;