Incorrect upvar access on trace involving top-level scripts (507292, r=dmandelin).

This commit is contained in:
Andreas Gal 2009-07-30 19:18:18 -07:00
Родитель dfacf199a2
Коммит 7d1a893295
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -10373,7 +10373,7 @@ TraceRecorder::interpretedFunctionCall(jsval& fval, JSFunction* fun, uintN argc,
if (callDepth >= treeInfo->maxCallDepth) if (callDepth >= treeInfo->maxCallDepth)
treeInfo->maxCallDepth = callDepth + 1; treeInfo->maxCallDepth = callDepth + 1;
if (callDepth == 0) if (callDepth == 0)
fi->spoffset = 2 /*callee,this*/ + argc - fi->spdist; fi->spoffset = -fp->script->nfixed;
lir->insStorei(INS_CONSTPTR(fi), lirbuf->rp, callDepth * sizeof(FrameInfo*)); lir->insStorei(INS_CONSTPTR(fi), lirbuf->rp, callDepth * sizeof(FrameInfo*));