[INFER] Compute PC for interpreted frames which failed to compile, bug 641225.

This commit is contained in:
Brian Hackett 2011-03-16 15:56:43 -07:00
parent 7402e9d136
commit 08bb521026

View File

@ -336,6 +336,9 @@ stubs::CompileFunction(VMFrame &f, uint32 nactual)
if (status == Compile_Okay)
return script->getJIT(fp->isConstructing())->invokeEntry;
/* Force computation of the previous PC, as Interpret will clear it. */
fp->prev()->pc(cx, fp);
/* Function did not compile... interpret it. */
JSBool ok = Interpret(cx, fp);
InlineReturn(f);