Bug 978811 - Fix isFakeExitFrame to return true for entry frames. r=nbp

This commit is contained in:
Jan de Mooij 2014-05-20 08:34:25 -04:00
parent 99d7bfa52c
commit b545296b0f

View File

@ -56,7 +56,8 @@ JitFrameIterator::isFakeExitFrame() const
{
bool res = (prevType() == JitFrame_Unwound_Rectifier ||
prevType() == JitFrame_Unwound_IonJS ||
prevType() == JitFrame_Unwound_BaselineStub);
prevType() == JitFrame_Unwound_BaselineStub ||
(prevType() == JitFrame_Entry && type() == JitFrame_Exit));
JS_ASSERT_IF(res, type() == JitFrame_Exit || type() == JitFrame_BaselineJS);
return res;
}