Lines Matching refs:T

63 template<typename T>
64 inline T PrimitiveArray<T>::Get(int32_t i) { in Get()
67 return T(0); in Get()
72 template<typename T>
73 inline void PrimitiveArray<T>::Set(int32_t i, T value) { in Set()
81 template<typename T>
83 inline void PrimitiveArray<T>::Set(int32_t i, T value) { in Set()
91 template<typename T>
93 inline void PrimitiveArray<T>::SetWithoutChecks(int32_t i, T value) { in SetWithoutChecks()
105 template<typename T>
106 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy()
118 template<typename T>
119 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy()
127 template<class T>
128 inline void PrimitiveArray<T>::Memmove(int32_t dst_pos, in Memmove()
129 ObjPtr<PrimitiveArray<T>> src, in Memmove()
151 void* dst_raw = GetRawData(sizeof(T), dst_pos); in Memmove()
152 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memmove()
153 if (sizeof(T) == sizeof(uint8_t)) { in Memmove()
159 if (sizeof(T) == sizeof(uint16_t)) { in Memmove()
167 } else if (sizeof(T) == sizeof(uint32_t)) { in Memmove()
176 DCHECK_EQ(sizeof(T), sizeof(uint64_t)); in Memmove()
189 template<class T>
190 inline void PrimitiveArray<T>::Memcpy(int32_t dst_pos, in Memcpy()
191 ObjPtr<PrimitiveArray<T>> src, in Memcpy()
208 void* dst_raw = GetRawData(sizeof(T), dst_pos); in Memcpy()
209 const void* src_raw = src->GetRawData(sizeof(T), src_pos); in Memcpy()
210 if (sizeof(T) == sizeof(uint8_t)) { in Memcpy()
212 } else if (sizeof(T) == sizeof(uint16_t)) { in Memcpy()
216 } else if (sizeof(T) == sizeof(uint32_t)) { in Memcpy()
221 DCHECK_EQ(sizeof(T), sizeof(uint64_t)); in Memcpy()
228 template<typename T, PointerSize kPointerSize, VerifyObjectFlags kVerifyFlags>
229 inline T PointerArray::GetElementPtrSize(uint32_t idx) { in GetElementPtrSize()
233 return (T)static_cast<uintptr_t>(AsLongArray<kVerifyFlags>()->GetWithoutChecks(idx)); in GetElementPtrSize()
235 return (T)static_cast<uintptr_t>(AsIntArray<kVerifyFlags>()->GetWithoutChecks(idx)); in GetElementPtrSize()
237 template<typename T, PointerSize kPointerSize, VerifyObjectFlags kVerifyFlags>
238 inline T PointerArray::GetElementPtrSizeUnchecked(uint32_t idx) { in GetElementPtrSizeUnchecked()
242 return (T)static_cast<uintptr_t>(AsLongArrayUnchecked<kVerifyFlags>()->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
244 return (T)static_cast<uintptr_t>(AsIntArrayUnchecked<kVerifyFlags>()->GetWithoutChecks(idx)); in GetElementPtrSizeUnchecked()
246 template<typename T, VerifyObjectFlags kVerifyFlags>
247 inline T PointerArray::GetElementPtrSize(uint32_t idx, PointerSize ptr_size) { in GetElementPtrSize()
249 return GetElementPtrSize<T, PointerSize::k64, kVerifyFlags>(idx); in GetElementPtrSize()
251 return GetElementPtrSize<T, PointerSize::k32, kVerifyFlags>(idx); in GetElementPtrSize()
266 template<bool kTransactionActive, bool kUnchecked, typename T>
267 inline void PointerArray::SetElementPtrSize(uint32_t idx, T* element, PointerSize ptr_size) { in SetElementPtrSize()