Lines Matching refs:T
167 template<class T>
168 inline void PrimitiveArray<T>::VisitRoots(RootCallback* callback, void* arg) { in VisitRoots()
172 template<typename T>
173 inline PrimitiveArray<T>* PrimitiveArray<T>::Alloc(Thread* self, size_t length) { in Alloc()
174 Array* raw_array = Array::Alloc<true>(self, GetArrayClass(), length, sizeof(T), in Alloc()
176 return down_cast<PrimitiveArray<T>*>(raw_array); in Alloc()
179 template<typename T>
180 inline T PrimitiveArray<T>::Get(int32_t i) { in Get()
183 return T(0); in Get()
188 template<typename T>
189 inline void PrimitiveArray<T>::Set(int32_t i, T value) { in Set()
197 template<typename T>
199 inline void PrimitiveArray<T>::Set(int32_t i, T value) { in Set()
207 template<typename T>
209 inline void PrimitiveArray<T>::SetWithoutChecks(int32_t i, T value) { in SetWithoutChecks()
221 template<typename T>
222 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy()
234 template<typename T>
235 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy()
243 template<class T>
244 inline void PrimitiveArray<T>::Memmove(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, in Memmove()
265 void* dst_raw = GetRawData(sizeof(T), dst_pos); in Memmove()
266 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memmove()
267 if (sizeof(T) == sizeof(uint8_t)) { in Memmove()
273 if (sizeof(T) == sizeof(uint16_t)) { in Memmove()
281 } else if (sizeof(T) == sizeof(uint32_t)) { in Memmove()
290 DCHECK_EQ(sizeof(T), sizeof(uint64_t)); in Memmove()
303 template<class T>
304 inline void PrimitiveArray<T>::Memcpy(int32_t dst_pos, PrimitiveArray<T>* src, int32_t src_pos, in Memcpy()
320 void* dst_raw = GetRawData(sizeof(T), dst_pos); in Memcpy()
321 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memcpy()
322 if (sizeof(T) == sizeof(uint8_t)) { in Memcpy()
324 } else if (sizeof(T) == sizeof(uint16_t)) { in Memcpy()
328 } else if (sizeof(T) == sizeof(uint32_t)) { in Memcpy()
333 DCHECK_EQ(sizeof(T), sizeof(uint64_t)); in Memcpy()