Lines Matching refs:object
55 inline uint32_t ArtField::Get32(ObjPtr<mirror::Object> object) { in Get32() argument
56 DCHECK(object != nullptr) << PrettyField(); in Get32()
57 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get32()
59 return object->GetField32Volatile(GetOffset()); in Get32()
61 return object->GetField32(GetOffset()); in Get32()
65 inline void ArtField::Set32(ObjPtr<mirror::Object> object, uint32_t new_value) { in Set32() argument
66 DCHECK(object != nullptr) << PrettyField(); in Set32()
67 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set32()
69 object->SetField32Volatile<kTransactionActive>(GetOffset(), new_value); in Set32()
71 object->SetField32<kTransactionActive>(GetOffset(), new_value); in Set32()
75 inline uint64_t ArtField::Get64(ObjPtr<mirror::Object> object) { in Get64() argument
76 DCHECK(object != nullptr) << PrettyField(); in Get64()
77 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get64()
79 return object->GetField64Volatile(GetOffset()); in Get64()
81 return object->GetField64(GetOffset()); in Get64()
85 inline void ArtField::Set64(ObjPtr<mirror::Object> object, uint64_t new_value) { in Set64() argument
86 DCHECK(object != nullptr) << PrettyField(); in Set64()
87 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set64()
89 object->SetField64Volatile<kTransactionActive>(GetOffset(), new_value); in Set64()
91 object->SetField64<kTransactionActive>(GetOffset(), new_value); in Set64()
96 inline ObjPtr<MirrorType> ArtField::GetObj(ObjPtr<mirror::Object> object) { in GetObj() argument
97 DCHECK(object != nullptr) << PrettyField(); in GetObj()
98 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in GetObj()
100 return object->GetFieldObjectVolatile<MirrorType>(GetOffset()); in GetObj()
102 return object->GetFieldObject<MirrorType>(GetOffset()); in GetObj()
106 inline void ArtField::SetObj(ObjPtr<mirror::Object> object, ObjPtr<mirror::Object> new_value) { in SetObj() argument
107 DCHECK(object != nullptr) << PrettyField(); in SetObj()
108 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in SetObj()
110 object->SetFieldObjectVolatile<kTransactionActive>(GetOffset(), new_value); in SetObj()
112 object->SetFieldObject<kTransactionActive>(GetOffset(), new_value); in SetObj()
116 #define FIELD_GET(object, type) \ argument
118 DCHECK((object) != nullptr) << PrettyField(); \
119 DCHECK(!IsStatic() || ((object) == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); \
121 return (object)->GetField ## type ## Volatile(GetOffset()); \
123 return (object)->GetField ## type(GetOffset());
125 #define FIELD_SET(object, type, value) \ argument
126 DCHECK((object) != nullptr) << PrettyField(); \
127 DCHECK(!IsStatic() || ((object) == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); \
129 (object)->SetField ## type ## Volatile<kTransactionActive>(GetOffset(), value); \
131 (object)->SetField ## type<kTransactionActive>(GetOffset(), value); \
134 inline uint8_t ArtField::GetBoolean(ObjPtr<mirror::Object> object) { in GetBoolean() argument
135 FIELD_GET(object, Boolean); in GetBoolean()
139 inline void ArtField::SetBoolean(ObjPtr<mirror::Object> object, uint8_t z) { in SetBoolean() argument
146 FIELD_SET(object, Boolean, z); in SetBoolean()
149 inline int8_t ArtField::GetByte(ObjPtr<mirror::Object> object) { in GetByte() argument
150 FIELD_GET(object, Byte); in GetByte()
154 inline void ArtField::SetByte(ObjPtr<mirror::Object> object, int8_t b) { in SetByte() argument
156 FIELD_SET(object, Byte, b); in SetByte()
159 inline uint16_t ArtField::GetChar(ObjPtr<mirror::Object> object) { in GetChar() argument
160 FIELD_GET(object, Char); in GetChar()
164 inline void ArtField::SetChar(ObjPtr<mirror::Object> object, uint16_t c) { in SetChar() argument
171 FIELD_SET(object, Char, c); in SetChar()
174 inline int16_t ArtField::GetShort(ObjPtr<mirror::Object> object) { in GetShort() argument
175 FIELD_GET(object, Short); in GetShort()
179 inline void ArtField::SetShort(ObjPtr<mirror::Object> object, int16_t s) { in SetShort() argument
181 FIELD_SET(object, Short, s); in SetShort()
187 inline int32_t ArtField::GetInt(ObjPtr<mirror::Object> object) { in GetInt() argument
194 return Get32(object); in GetInt()
198 inline void ArtField::SetInt(ObjPtr<mirror::Object> object, int32_t i) { in SetInt() argument
205 Set32<kTransactionActive>(object, i); in SetInt()
208 inline int64_t ArtField::GetLong(ObjPtr<mirror::Object> object) { in GetLong() argument
215 return Get64(object); in GetLong()
219 inline void ArtField::SetLong(ObjPtr<mirror::Object> object, int64_t j) { in SetLong() argument
226 Set64<kTransactionActive>(object, j); in SetLong()
229 inline float ArtField::GetFloat(ObjPtr<mirror::Object> object) { in GetFloat() argument
232 bits.SetI(Get32(object)); in GetFloat()
237 inline void ArtField::SetFloat(ObjPtr<mirror::Object> object, float f) { in SetFloat() argument
241 Set32<kTransactionActive>(object, bits.GetI()); in SetFloat()
244 inline double ArtField::GetDouble(ObjPtr<mirror::Object> object) { in GetDouble() argument
247 bits.SetJ(Get64(object)); in GetDouble()
252 inline void ArtField::SetDouble(ObjPtr<mirror::Object> object, double d) { in SetDouble() argument
256 Set64<kTransactionActive>(object, bits.GetJ()); in SetDouble()
259 inline ObjPtr<mirror::Object> ArtField::GetObject(ObjPtr<mirror::Object> object) { in GetObject() argument
261 return GetObj(object); in GetObject()
265 inline void ArtField::SetObject(ObjPtr<mirror::Object> object, ObjPtr<mirror::Object> l) { in SetObject() argument
267 SetObj<kTransactionActive>(object, l); in SetObject()