Bug 733863 - Initialise outparams in callee (LoopState::getEntryValue) rather than at all call points. r=bhackett

This commit is contained in:
Julian Seward 2012-05-03 06:22:33 -04:00
parent b6f1345f82
commit acff466a14

View File

@ -2088,6 +2088,9 @@ LoopState::adjustConstantForIncrement(jsbytecode *pc, uint32_t slot)
bool
LoopState::getEntryValue(const CrossSSAValue &iv, uint32_t *pslot, int32_t *pconstant)
{
*pslot = UNASSIGNED;
*pconstant = 1;
CrossSSAValue cv = ssa->foldValue(iv);
JSScript *script = ssa->getFrame(cv.frame).script;