Searched refs:desiredCapacity (Results 1 - 2 of 2) sorted by relevance
/macosx-10.9.5/JavaScriptCore-7537.78.1/runtime/ |
H A D | JSArray.cpp | 262 // * desiredCapacity - how large should we like to grow the vector to - based on 2x requiredVectorLength. 275 // The calculation of desiredCapacity won't overflow, due to the range of MAX_STORAGE_VECTOR_LENGTH. 276 unsigned desiredCapacity = min(MAX_STORAGE_VECTOR_LENGTH, max(BASE_VECTOR_LEN, requiredVectorLength) << 1); local 284 if (currentCapacity > desiredCapacity && isDenseEnoughForVector(currentCapacity, requiredVectorLength)) { 288 size_t newSize = Butterfly::totalSize(0, propertyCapacity, true, ArrayStorage::sizeFor(desiredCapacity)); 291 newStorageCapacity = desiredCapacity;
|
/macosx-10.9.5/CF-855.17/ |
H A D | CFString.c | 156 unsigned long desiredCapacity:60; member in struct:__notInlineMutable 158 unsigned long desiredCapacity:28; member in struct:__notInlineMutable 379 CF_INLINE CFIndex __CFStrDesiredCapacity(CFStringRef str) {return str->variants.notInlineMutable.desiredCapacity;} 380 CF_INLINE void __CFStrSetDesiredCapacity(CFMutableStringRef str, CFIndex size) {str->variants.notInlineMutable.desiredCapacity = size;} 624 - desiredCapacity, which is the minimum (except initially things can be at zero) 645 CFIndex desiredCapacity = __CFStrDesiredCapacity(str) * charSize; local 646 if (newCapacity < desiredCapacity) { /* If less than desired, bump up to desired */ 647 newCapacity = desiredCapacity; 649 newCapacity = __CFMax(desiredCapacity, reqCapacity); /* !!! So, fixed is not really fixed, but "tight" */
|
Completed in 262 milliseconds