Bug 599400: handle recompiling top-level script for debugging, r=dvander
authorDavid Mandelin <dmandelin@mozilla.com>
Tue, 28 Sep 2010 18:39:45 -0700
changeset 54753 d3d26658bf500cc318931210da007baa54390ff9
parent 54752 b91d6314aaae5da11ab5405a785abbda5435ecae
child 54754 571523d28b41168b177295988aa6b040d0ec6d38
push id16011
push userrsayre@mozilla.com
push dateWed, 29 Sep 2010 06:01:57 +0000
treeherdermozilla-central@d7e659b4f80c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs599400
milestone2.0b7pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 599400: handle recompiling top-level script for debugging, r=dvander
js/src/methodjit/Retcon.cpp
--- a/js/src/methodjit/Retcon.cpp
+++ b/js/src/methodjit/Retcon.cpp
@@ -147,17 +147,17 @@ Recompiler::recompile()
 
     /* No need to actually compile or fixup if no frames on the stack */
     if (!firstFrame)
         return true;
 
     /* If we get this far, the script is live, and we better be safe to re-jit. */
     JS_ASSERT(cx->compartment->debugMode);
 
-    Compiler c(cx, script, firstFrame->fun(), &firstFrame->scopeChain());
+    Compiler c(cx, script, firstFrame->maybeFun(), &firstFrame->scopeChain());
     if (c.Compile() != Compile_Okay)
         return false;
 
     /* Perform the earlier scanned patches */
     for (uint32 i = 0; i < toPatch.length(); i++)
         applyPatch(c, toPatch[i]);
 
     return true;