Home
last modified time | relevance | path

Searched refs:elements_to_trim (Results 1 – 2 of 2) sorted by relevance

/external/v8/src/heap/
Dheap.cc3125 int elements_to_trim) { in LeftTrimFixedArray() argument
3130 const int bytes_to_trim = elements_to_trim * element_size; in LeftTrimFixedArray()
3144 DCHECK(elements_to_trim <= len); in LeftTrimFixedArray()
3166 int new_start_index = elements_to_trim * (element_size / kPointerSize); in LeftTrimFixedArray()
3168 former_start[new_start_index + 1] = Smi::FromInt(len - elements_to_trim); in LeftTrimFixedArray()
3195 void Heap::RightTrimFixedArray(FixedArrayBase* object, int elements_to_trim) { in RightTrimFixedArray() argument
3197 DCHECK_LE(elements_to_trim, len); in RightTrimFixedArray()
3198 DCHECK_GE(elements_to_trim, 0); in RightTrimFixedArray()
3205 FixedTypedArrayBase::TypedArraySize(type, len - elements_to_trim); in RightTrimFixedArray()
3207 int new_size = ByteArray::SizeFor(len - elements_to_trim); in RightTrimFixedArray()
[all …]
Dheap.h756 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);
760 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);