| Index: src/code-stub-assembler.cc
|
| diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
|
| index 8ee092a61e8a447bcec3a7dbe1dd66991e5afc7d..c2a71cbd170a5e182f7e140a16ae1417e0f36873 100644
|
| --- a/src/code-stub-assembler.cc
|
| +++ b/src/code-stub-assembler.cc
|
| @@ -5512,9 +5512,10 @@ void CodeStubAssembler::ExtendPropertiesBackingStore(Node* object) {
|
| FixedArrayBase::GetMaxLengthForNewSpaceAllocation(kind));
|
| // The size of a new properties backing store is guaranteed to be small
|
| // enough that the new backing store will be allocated in new space.
|
| - CSA_ASSERT(this, UintPtrLessThan(new_capacity,
|
| - IntPtrConstant(kMaxNumberOfDescriptors +
|
| - JSObject::kFieldsAdded)));
|
| + CSA_ASSERT(this, UintPtrLessThan(new_capacity, IntPtrOrSmiConstant(
|
| + kMaxNumberOfDescriptors +
|
| + JSObject::kFieldsAdded,
|
| + mode)));
|
|
|
| Node* new_properties = AllocateFixedArray(kind, new_capacity, mode);
|
|
|
|
|