Lines Matching refs:elements_to_trim
3150 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()
3231 bytes_to_trim = elements_to_trim * element_size; in RightTrimFixedArray()
3241 object->synchronized_set_length(len - elements_to_trim); in RightTrimFixedArray()
3262 object->synchronized_set_length(len - elements_to_trim); in RightTrimFixedArray()