• Home
  • Raw
  • Download

Lines Matching refs:capacity

45     uint32_t capacity = hashArray->GetLength();  in Add()  local
46 if (size + 1 >= static_cast<int32_t>(capacity)) { in Add()
48 uint32_t newCapacity = capacity << 1U; in Add()
49 hashArray = thread->GetEcmaVM()->GetFactory()->CopyArray(hashArray, capacity, newCapacity); in Add()
50 … valueArray = thread->GetEcmaVM()->GetFactory()->CopyArray(valueArray, capacity, newCapacity); in Add()
67 …andle<TaggedArray> JSAPILightWeightSet::CreateSlot(const JSThread *thread, const uint32_t capacity) in CreateSlot() argument
69 ASSERT_PRINT(capacity > 0, "size must be a non-negative integer"); in CreateSlot()
71 JSHandle<TaggedArray> taggedArray = factory->NewTaggedArray(capacity); in CreateSlot()
72 for (uint32_t i = 0; i < capacity; i++) { in CreateSlot()
147 uint32_t capacity = hashes->GetLength(); in EnsureCapacity() local
148 uint32_t newCapacity = capacity; in EnsureCapacity()
149 if (capacity > minimumCapacity) { in EnsureCapacity()
156 obj->SizeCopy(thread, obj, capacity, newCapacity); in EnsureCapacity()
160 uint32_t capacity, uint32_t newCapacity) in SizeCopy() argument
164 hashArray = thread->GetEcmaVM()->GetFactory()->CopyArray(hashArray, capacity, newCapacity); in SizeCopy()
165 valueArray = thread->GetEcmaVM()->GetFactory()->CopyArray(valueArray, capacity, newCapacity); in SizeCopy()
293 uint32_t capacity = TaggedArray::Cast(obj->GetValues().GetTaggedObject())->GetLength(); in IncreaseCapacityTo() local
294 int32_t intCapacity = static_cast<int32_t>(capacity); in IncreaseCapacityTo()
305 … static_cast<uint32_t>(minCapacity), capacity); in IncreaseCapacityTo()