Bug 988950: Remove unused Nursery variable; r=jandem
authorBenjamin Bouvier <benj@benj.me>
Thu, 24 Apr 2014 10:17:07 +0200
changeset 180256 e2514d232f9058d06ca6065b93c145a72f3dfe14
parent 180255 b65cb4bc310fe4922ce042a78a0e7cfbdd940dea
child 180257 36dcdf8ec0855a19c89ec5729315025beb21ecb8
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersjandem
bugs988950
milestone31.0a1
Bug 988950: Remove unused Nursery variable; r=jandem
js/src/jit/BaselineCompiler.cpp
--- a/js/src/jit/BaselineCompiler.cpp
+++ b/js/src/jit/BaselineCompiler.cpp
@@ -2097,17 +2097,16 @@ BaselineCompiler::emit_JSOP_SETALIASEDVA
     frame.push(R0);
 
 #ifdef JSGC_GENERATIONAL
     // Fully sync the stack if post-barrier is needed.
     // Scope coordinate object is already in R2.scratchReg().
     frame.syncStack(0);
     Register temp = R1.scratchReg();
 
-    Nursery &nursery = cx->runtime()->gcNursery;
     Label skipBarrier;
     masm.branchTestObject(Assembler::NotEqual, R0, &skipBarrier);
     masm.branchPtrInNurseryRange(objReg, temp, &skipBarrier);
 
     masm.call(&postBarrierSlot_);
 
     masm.bind(&skipBarrier);
 #endif
@@ -2417,17 +2416,16 @@ BaselineCompiler::emitFormalArgAccess(ui
         // Fully sync the stack if post-barrier is needed.
         frame.syncStack(0);
         Register temp = R1.scratchReg();
 
         // Reload the arguments object
         Register reg = R2.scratchReg();
         masm.loadPtr(Address(BaselineFrameReg, BaselineFrame::reverseOffsetOfArgsObj()), reg);
 
-        Nursery &nursery = cx->runtime()->gcNursery;
         Label skipBarrier;
         masm.branchPtrInNurseryRange(reg, temp, &skipBarrier);
 
         masm.call(&postBarrierSlot_);
 
         masm.bind(&skipBarrier);
 #endif
     }