mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1532376 - Assert that the group's shouldPretenure flag is respected when creating an object r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D22326 --HG-- extra : source : 82a1c708780619b605a5c0f63cd8046f3e992692
This commit is contained in:
parent
fe432882de
commit
8311f852fb
@ -42,6 +42,8 @@ inline void ArrayObject::setLength(JSContext* cx, uint32_t length) {
|
||||
MOZ_ASSERT_IF(clasp->hasFinalize(), heap == gc::TenuredHeap);
|
||||
MOZ_ASSERT_IF(group->hasUnanalyzedPreliminaryObjects(),
|
||||
heap == js::gc::TenuredHeap);
|
||||
MOZ_ASSERT_IF(group->shouldPreTenureDontCheckGeneration(),
|
||||
heap == gc::TenuredHeap);
|
||||
|
||||
// Arrays can use their fixed slots to store elements, so can't have shapes
|
||||
// which allow named properties to be stored in the fixed slots.
|
||||
|
@ -4296,6 +4296,8 @@ void JSObject::debugCheckNewObject(ObjectGroup* group, Shape* shape,
|
||||
clasp->isProxy());
|
||||
MOZ_ASSERT_IF(group->hasUnanalyzedPreliminaryObjects(),
|
||||
heap == gc::TenuredHeap);
|
||||
MOZ_ASSERT_IF(group->shouldPreTenureDontCheckGeneration(),
|
||||
heap == gc::TenuredHeap);
|
||||
|
||||
MOZ_ASSERT(!group->realm()->hasObjectPendingMetadata());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user