Home
last modified time | relevance | path

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

/external/v8/src/heap/
Dheap.cc3150 int elements_to_trim) { in LeftTrimFixedArray() argument
3155 const int bytes_to_trim = elements_to_trim * element_size; in LeftTrimFixedArray()
3169 DCHECK(elements_to_trim <= len); in LeftTrimFixedArray()
3184 int new_start_index = elements_to_trim * (element_size / kPointerSize); in LeftTrimFixedArray()
3186 former_start[new_start_index + 1] = Smi::FromInt(len - elements_to_trim); in LeftTrimFixedArray()
3213 void Heap::RightTrimFixedArray(FixedArrayBase* object, int elements_to_trim) { in RightTrimFixedArray() argument
3215 DCHECK_LE(elements_to_trim, len); in RightTrimFixedArray()
3216 DCHECK_GE(elements_to_trim, 0); in RightTrimFixedArray()
3223 FixedTypedArrayBase::TypedArraySize(type, len - elements_to_trim); in RightTrimFixedArray()
3225 int new_size = ByteArray::SizeFor(len - elements_to_trim); in RightTrimFixedArray()
[all …]
Dheap.h687 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);
691 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);
/external/v8/test/cctest/heap/
Dtest-heap.cc5859 int elements_to_trim) { in TestRightTrimFixedTypedArray() argument
5869 elements_to_trim); in TestRightTrimFixedTypedArray()
5874 CHECK_EQ(initial_length - elements_to_trim, array->length()); in TestRightTrimFixedTypedArray()