Bug 1142331 - Don't optimize out scope chain slot in resume points for heavyweight functions, r=jandem.

This commit is contained in:
Brian Hackett 2015-03-14 17:10:01 -06:00
parent 764285660f
commit 8db502b52e

View File

@ -493,6 +493,9 @@ class CompileInfo
if (slot == thisSlot())
return true;
if (funMaybeLazy()->isHeavyweight() && slot == scopeChainSlot())
return true;
// If the function may need an arguments object, then make sure to
// preserve the scope chain, because it may be needed to construct the
// arguments object during bailout. If we've already created an