void DynamicTypeHandler::SetSlot(DynamicObject* instance, int index, Var value) #endif { Assert(index < GetSlotCapacity()); Assert(propertyId == Constants::NoProperty || CanStorePropertyValueDirectly(instance, propertyId, allowLetConst)); SetSlotUnchecked(instance, index, value); }
bool SimpleDictionaryUnorderedTypeHandler<TPropertyIndex, TMapKey, IsNotExtensibleSupported>::TryRegisterDeletedPropertyIndex( DynamicObject *const object, const TPropertyIndex propertyIndex) { Assert(object); if(!IsReusablePropertyIndex(propertyIndex)) { return false; } Assert(!TaggedInt::IsOverflow(NoSlots)); // the last deleted property's slot in the chain is going to store NoSlots as a tagged int SetSlotUnchecked(object, propertyIndex, TaggedInt::ToVarUnchecked(deletedPropertyIndex)); deletedPropertyIndex = propertyIndex; return true; }