Bug 1175466 - Allocate arguments objects in the nursery. r=terrence
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user