Bug 1175466 - Allocate arguments objects in the nursery. r=terrence

This commit is contained in:
Jan de Mooij
2015-06-20 21:30:12 -07:00
parent 5ca8bc8387
commit 133b88f757
4 changed files with 75 additions and 23 deletions

View File

@@ -4004,6 +4004,9 @@ JSObject::sizeOfIncludingThisInNursery() const
if (!elements.isCopyOnWrite() || elements.ownerObject() == this)
size += elements.capacity * sizeof(HeapSlot);
}
if (is<ArgumentsObject>())
size += as<ArgumentsObject>().sizeOfData();
}
return size;