Lines Matching refs:new_capacity
9147 uint32_t new_capacity = capacity; in SetFastElement() local
9163 new_capacity = NewElementsCapacity(index + 1); in SetFastElement()
9164 ASSERT(new_capacity > index); in SetFastElement()
9165 if (!ShouldConvertToSlowElements(new_capacity)) { in SetFastElement()
9179 SetFastDoubleElementsCapacityAndLength(new_capacity, array_length); in SetFastElement()
9198 if (new_capacity != capacity) { in SetFastElement()
9205 SetFastElementsCapacityAndLength(new_capacity, in SetFastElement()
9427 int new_capacity = NewElementsCapacity(index+1); in SetFastDoubleElement() local
9428 if (!ShouldConvertToSlowElements(new_capacity)) { in SetFastDoubleElement()
9429 ASSERT(static_cast<uint32_t>(new_capacity) > index); in SetFastDoubleElement()
9432 SetFastDoubleElementsCapacityAndLength(new_capacity, in SetFastDoubleElement()
9865 bool JSObject::ShouldConvertToSlowElements(int new_capacity) { in ShouldConvertToSlowElements() argument
9868 if (new_capacity <= kMaxUncheckedOldFastElementsLength || in ShouldConvertToSlowElements()
9869 (new_capacity <= kMaxUncheckedFastElementsLength && in ShouldConvertToSlowElements()
9881 return 3 * dictionary_size <= new_capacity; in ShouldConvertToSlowElements()