Bug 1138199. r=billm, a=abillings
authorBrian Hackett <bhackett1024@gmail.com>
Sun, 08 Mar 2015 22:10:01 -0400
changeset 250311 46392e569cb6
parent 250310 4b50714e7419
child 250312 bcd0c508c109
push id4542
push userryanvm@gmail.com
push date2015-03-09 19:13 +0000
treeherdermozilla-beta@46392e569cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm, abillings
bugs1138199
milestone37.0
Bug 1138199. r=billm, a=abillings
js/src/ds/LifoAlloc.h
--- a/js/src/ds/LifoAlloc.h
+++ b/js/src/ds/LifoAlloc.h
@@ -192,24 +192,24 @@ class LifoAlloc
             last->setNext(start);
         else
             first = latest = start;
         last = end;
     }
 
     // Append used chunks to the end of this LifoAlloc. We act as if all the
     // chunks in |this| are used, even if they're not, so memory may be wasted.
-    void appendUsed(BumpChunk *start, BumpChunk *latest, BumpChunk *end) {
-        MOZ_ASSERT(start && latest &&  end);
+    void appendUsed(BumpChunk *otherFirst, BumpChunk *otherLatest, BumpChunk *otherLast) {
+        MOZ_ASSERT(otherFirst && otherLatest && otherLast);
         if (last)
-            last->setNext(start);
+            last->setNext(otherFirst);
         else
-            first = latest = start;
-        last = end;
-        this->latest = latest;
+            first = otherFirst;
+        latest = otherLatest;
+        last = otherLast;
     }
 
     void incrementCurSize(size_t size) {
         curSize_ += size;
         if (curSize_ > peakSize_)
             peakSize_ = curSize_;
     }
     void decrementCurSize(size_t size) {