Lines Matching refs:newLength
105 static inline unsigned increasedVectorLength(unsigned newLength)
107 ASSERT(newLength <= MAX_STORAGE_VECTOR_LENGTH);
110 // increasedLength = (newLength * 3 + 1) / 2;
112 // increasedLength = (unsigned)ceil(newLength * 1.5));
114 unsigned increasedLength = newLength + (newLength >> 1) + (newLength & 1);
115 ASSERT(increasedLength >= newLength);
284 unsigned newLength = value.toUInt32(exec);
285 if (value.toNumber(exec) != static_cast<double>(newLength)) {
289 setLength(newLength);
498 bool JSArray::increaseVectorLength(unsigned newLength)
506 ASSERT(newLength > vectorLength);
507 ASSERT(newLength <= MAX_STORAGE_VECTOR_INDEX);
508 unsigned newVectorLength = increasedVectorLength(newLength);
525 void JSArray::setLength(unsigned newLength)
533 if (newLength < length) {
535 for (unsigned i = newLength; i < usedVectorLength; ++i) {
546 if (it->first >= newLength)
556 m_storage->m_length = newLength;