No bug - Kill opt-only warning. (r=efaust over IRC) DONTBUILD
authorShu-yu Guo <shu@rfrn.org>
Fri, 02 May 2014 15:25:50 -0700
changeset 181812 7fe77ac98b571d2938f03356bd89b6f97c087e12
parent 181811 079264ecb6786dc70918a3d07fde884f288f2c51
child 181813 f1f88dcc871db9b3ca1ffc887607a616a7c17d90
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersefaust
milestone32.0a1
No bug - Kill opt-only warning. (r=efaust over IRC) DONTBUILD
js/src/jit/BaselineDebugModeOSR.cpp
--- a/js/src/jit/BaselineDebugModeOSR.cpp
+++ b/js/src/jit/BaselineDebugModeOSR.cpp
@@ -346,20 +346,19 @@ PatchBaselineFramesForDebugMode(JSContex
             prev->setReturnAddress(reinterpret_cast<uint8_t *>(handlerAddr));
             iter.baselineFrame()->setDebugModeOSRInfo(recompInfo);
 
             entryIndex++;
             break;
           }
 
           case JitFrame_BaselineStub: {
-            JSScript *script = entry.script;
             IonBaselineStubFrameLayout *layout =
                 reinterpret_cast<IonBaselineStubFrameLayout *>(iter.fp());
-            MOZ_ASSERT(script->baselineScript()->debugMode() == expectedDebugMode);
+            MOZ_ASSERT(entry.script->baselineScript()->debugMode() == expectedDebugMode);
             MOZ_ASSERT(layout->maybeStubPtr() == entry.oldStub);
 
             // Patch baseline stub frames for case A above.
             //
             // We need to patch the stub frame to point to an ICStub belonging
             // to the recompiled baseline script. These stubs are allocated up
             // front in CloneOldBaselineStub. They share the same JitCode as
             // the old baseline script's stubs, so we don't need to patch the