Silence warning in jscntxtinlines.h (r=me)
authorLuke Wagner <lw@mozilla.com>
Tue, 10 Aug 2010 13:29:17 -0700
changeset 50470 233ad8dd6f484bc329ae8fdce293b336284fbf1e
parent 50469 1973d4086362bbb0633ea3bbc5583a1934dd67f2
child 50471 cf9fc9bb9c3ef823cd09addad8e2c3f9262fef2d
push idunknown
push userunknown
push dateunknown
reviewersme
milestone2.0b4pre
Silence warning in jscntxtinlines.h (r=me)
js/src/jscntxtinlines.h
--- a/js/src/jscntxtinlines.h
+++ b/js/src/jscntxtinlines.h
@@ -73,21 +73,21 @@ StackSegment::getCurrentRegs() const
 JS_REQUIRES_STACK inline Value *
 StackSpace::firstUnused() const
 {
     StackSegment *seg = currentSegment;
     if (!seg) {
         JS_ASSERT(invokeArgEnd == NULL);
         return base;
     }
-    if (JSContext *cx = seg->maybeContext()) {
+    if (seg->inContext()) {
         Value *sp = seg->getCurrentRegs()->sp;
         if (invokeArgEnd > sp) {
             JS_ASSERT(invokeSegment == currentSegment);
-            JS_ASSERT_IF(cx->fp, invokeFrame == cx->fp);
+            JS_ASSERT_IF(seg->maybeContext()->fp, invokeFrame == seg->maybeContext()->fp);
             return invokeArgEnd;
         }
         return sp;
     }
     JS_ASSERT(invokeArgEnd);
     JS_ASSERT(invokeSegment == currentSegment);
     return invokeArgEnd;
 }