Bug 806442: Remove unused variable "slot" from Compiler::markUndefinedLocal. r=billm
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 29 Oct 2012 13:40:20 -0700
changeset 111830 63ce297be1f21ec26001fdcd20b9318fb29b6391
parent 111829 53b97b4ec554925108480bb34ecf5cdeb0659a62
child 111831 42b38e4e9068ac3d0af266f83ccdf0be97e52fd3
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbillm
bugs806442
milestone19.0a1
Bug 806442: Remove unused variable "slot" from Compiler::markUndefinedLocal. r=billm
js/src/methodjit/Compiler.cpp
--- a/js/src/methodjit/Compiler.cpp
+++ b/js/src/methodjit/Compiler.cpp
@@ -1285,17 +1285,16 @@ mjit::Compiler::ensureDoubleArguments()
             frame.ensureDouble(frame.getArg(i));
     }
 }
 
 void
 mjit::Compiler::markUndefinedLocal(uint32_t offset, uint32_t i)
 {
     uint32_t depth = ssa.getFrame(a->inlineIndex).depth;
-    uint32_t slot = LocalSlot(script_, i);
     Address local(JSFrameReg, sizeof(StackFrame) + (depth + i) * sizeof(Value));
     masm.storeValue(UndefinedValue(), local);
 }
 
 void
 mjit::Compiler::markUndefinedLocals()
 {
     /*