Bug 1138199. r=billm

This commit is contained in:
Brian Hackett 2015-03-08 22:10:01 -04:00
parent 103dc00fa4
commit 319b55303d

View File

@ -194,14 +194,14 @@ class LifoAlloc
// 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) {