From 08bb521026aa55a085899ac25a652b341458f790 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Wed, 16 Mar 2011 15:56:43 -0700 Subject: [PATCH] [INFER] Compute PC for interpreted frames which failed to compile, bug 641225. --- js/src/methodjit/InvokeHelpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/methodjit/InvokeHelpers.cpp b/js/src/methodjit/InvokeHelpers.cpp index 57232c12223..d7510bc86b0 100644 --- a/js/src/methodjit/InvokeHelpers.cpp +++ b/js/src/methodjit/InvokeHelpers.cpp @@ -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);