Searched refs:elements_to_trim (Results 1 – 3 of 3) sorted by relevance
/external/v8/src/heap/ |
D | heap.cc | 2895 int elements_to_trim) { in LeftTrimFixedArray() argument 2896 if (elements_to_trim == 0) { in LeftTrimFixedArray() 2906 const int bytes_to_trim = elements_to_trim * element_size; in LeftTrimFixedArray() 2920 DCHECK(elements_to_trim <= len); in LeftTrimFixedArray() 2942 Smi::FromInt(len - elements_to_trim)); in LeftTrimFixedArray() 2984 void Heap::RightTrimFixedArray(FixedArrayBase* object, int elements_to_trim) { in RightTrimFixedArray() argument 2986 DCHECK_LE(elements_to_trim, len); in RightTrimFixedArray() 2987 DCHECK_GE(elements_to_trim, 0); in RightTrimFixedArray() 2992 int new_size = ByteArray::SizeFor(len - elements_to_trim); in RightTrimFixedArray() 2996 CHECK_NE(elements_to_trim, len); in RightTrimFixedArray() [all …]
|
D | heap.h | 534 void CreateFillerForArray(T* object, int elements_to_trim, int bytes_to_trim); 542 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); 545 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); 546 void RightTrimWeakFixedArray(WeakFixedArray* obj, int elements_to_trim);
|
/external/v8/src/ |
D | elements.cc | 793 int elements_to_trim = length + 1 == old_length in SetLengthImpl() local 796 isolate->heap()->RightTrimFixedArray(*backing_store, elements_to_trim); in SetLengthImpl() 800 std::min(old_length, capacity - elements_to_trim)); in SetLengthImpl()
|