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 35529d25c4
commit ac1558dfb5
4 changed files with 75 additions and 23 deletions

View File

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