зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2df850200c16 (bug 957542) for jit-test failures.
This commit is contained in:
Родитель
3eb914e8ad
Коммит
31e11e9386
|
@ -365,8 +365,6 @@ js::ObjectImpl::dynamicSlotsCount(uint32_t nfixed, uint32_t span, const Class *c
|
|||
// this because slots are uncommon in that case.
|
||||
if (clasp != &ArrayObject::class_ && span <= SLOT_CAPACITY_MIN)
|
||||
return SLOT_CAPACITY_MIN;
|
||||
if (clasp == &ArrayObject::class_ && span <= SLOT_CAPACITY_ARRAYOBJECT_MIN)
|
||||
return SLOT_CAPACITY_ARRAYOBJECT_MIN;
|
||||
|
||||
uint32_t slots = mozilla::RoundUpPow2(span);
|
||||
MOZ_ASSERT(slots >= span);
|
||||
|
|
|
@ -1155,7 +1155,6 @@ class ObjectImpl : public gc::BarrieredCell<ObjectImpl>
|
|||
* since they normally don't have a lot of slots.
|
||||
*/
|
||||
static const uint32_t SLOT_CAPACITY_MIN = 8;
|
||||
static const uint32_t SLOT_CAPACITY_ARRAYOBJECT_MIN = 2;
|
||||
|
||||
HeapSlot *fixedSlots() const {
|
||||
return reinterpret_cast<HeapSlot *>(uintptr_t(this) + sizeof(ObjectImpl));
|
||||
|
|
Загрузка…
Ссылка в новой задаче