Home
last modified time | relevance | path

Searched refs:field_offset (Results 1 – 25 of 27) sorted by relevance

12

/art/runtime/mirror/
Dobject-inl.h374 inline int8_t Object::GetFieldByte(MemberOffset field_offset) { in GetFieldByte() argument
376 return GetFieldPrimitive<int8_t, kIsVolatile>(field_offset); in GetFieldByte()
380 inline uint8_t Object::GetFieldBooleanVolatile(MemberOffset field_offset) { in GetFieldBooleanVolatile() argument
381 return GetFieldBoolean<kVerifyFlags, true>(field_offset); in GetFieldBooleanVolatile()
385 inline int8_t Object::GetFieldByteVolatile(MemberOffset field_offset) { in GetFieldByteVolatile() argument
386 return GetFieldByte<kVerifyFlags, true>(field_offset); in GetFieldByteVolatile()
393 inline void Object::SetFieldBoolean(MemberOffset field_offset, uint8_t new_value) { in SetFieldBoolean() argument
398 field_offset, in SetFieldBoolean()
399 GetFieldBoolean<kVerifyFlags, kIsVolatile>(field_offset), in SetFieldBoolean()
403 SetFieldPrimitive<uint8_t, kIsVolatile>(field_offset, new_value); in SetFieldBoolean()
[all …]
Dobject.h276 ALWAYS_INLINE T* GetFieldObject(MemberOffset field_offset)
282 ALWAYS_INLINE T* GetFieldObjectVolatile(MemberOffset field_offset)
289 ALWAYS_INLINE void SetFieldObjectWithoutWriteBarrier(MemberOffset field_offset,
297 ALWAYS_INLINE void SetFieldObject(MemberOffset field_offset, ObjPtr<Object> new_value)
303 ALWAYS_INLINE void SetFieldObjectVolatile(MemberOffset field_offset, ObjPtr<Object> new_value)
309 ALWAYS_INLINE void SetFieldObjectTransaction(MemberOffset field_offset, ObjPtr<Object> new_value)
315 ALWAYS_INLINE bool CasFieldObject(MemberOffset field_offset,
324 ALWAYS_INLINE bool CasFieldObjectWithoutWriteBarrier(MemberOffset field_offset,
334 ObjPtr<Object> CompareAndExchangeFieldObject(MemberOffset field_offset,
342 ObjPtr<Object> ExchangeFieldObject(MemberOffset field_offset, ObjPtr<Object> new_value)
[all …]
Dvar_handle.cc288 inline void ReadBarrierForVarHandleAccess(ObjPtr<Object> obj, MemberOffset field_offset) in ReadBarrierForVarHandleAccess() argument
294 uint8_t* raw_field_addr = reinterpret_cast<uint8_t*>(obj.Ptr()) + field_offset.SizeValue(); in ReadBarrierForVarHandleAccess()
301 MemberOffset(field_offset), in ReadBarrierForVarHandleAccess()
700 MemberOffset field_offset, in Get() argument
703 obj->GetPrimitiveFieldViaAccessor(field_offset, accessor); in Get()
708 MemberOffset field_offset,
715 MemberOffset field_offset, in Get() argument
719 obj->GetPrimitiveFieldViaAccessor(field_offset, &float_to_int_accessor); in Get()
724 MemberOffset field_offset, in Get() argument
728 obj->GetPrimitiveFieldViaAccessor(field_offset, &double_to_int_accessor); in Get()
[all …]
Dobject-readbarrier-inl.h41 inline bool Object::CasField32(MemberOffset field_offset, in CasField32() argument
50 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true); in CasField32()
55 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value(); in CasField32()
Dobject.cc234 void Object::CheckFieldAssignmentImpl(MemberOffset field_offset, ObjPtr<Object> new_value) { in CheckFieldAssignmentImpl() argument
243 if (field.GetOffset().Int32Value() == field_offset.Int32Value()) { in CheckFieldAssignmentImpl()
261 if (field.GetOffset().Int32Value() == field_offset.Int32Value()) { in CheckFieldAssignmentImpl()
274 << " of type " << c->PrettyDescriptor() << " at offset " << field_offset; in CheckFieldAssignmentImpl()
Dclass-inl.h874 MemberOffset field_offset = field->GetOffset(); in GetProxyInterfaces() local
875 return GetFieldObject<ObjectArray<Class>>(field_offset); in GetProxyInterfaces()
883 MemberOffset field_offset = field->GetOffset(); in GetProxyThrows() local
884 return GetFieldObject<ObjectArray<ObjectArray<Class>>>(field_offset); in GetProxyThrows()
/art/runtime/
Dtransaction.cc146 MemberOffset field_offset, in RecordWriteFieldBoolean() argument
152 object_log.LogBooleanValue(field_offset, value, is_volatile); in RecordWriteFieldBoolean()
156 MemberOffset field_offset, in RecordWriteFieldByte() argument
162 object_log.LogByteValue(field_offset, value, is_volatile); in RecordWriteFieldByte()
166 MemberOffset field_offset, in RecordWriteFieldChar() argument
172 object_log.LogCharValue(field_offset, value, is_volatile); in RecordWriteFieldChar()
177 MemberOffset field_offset, in RecordWriteFieldShort() argument
183 object_log.LogShortValue(field_offset, value, is_volatile); in RecordWriteFieldShort()
188 MemberOffset field_offset, in RecordWriteField32() argument
194 object_log.Log32BitsValue(field_offset, value, is_volatile); in RecordWriteField32()
[all …]
Dtransaction.h70 MemberOffset field_offset,
75 MemberOffset field_offset,
80 MemberOffset field_offset,
85 MemberOffset field_offset,
90 MemberOffset field_offset,
95 MemberOffset field_offset,
100 MemberOffset field_offset,
192 MemberOffset field_offset,
Dart_field-inl.h365 uint32_t field_offset) REQUIRES_SHARED(Locks::mutator_lock_) { in FindFieldWithOffset() argument
368 if (field.GetOffset().Uint32Value() == field_offset) { in FindFieldWithOffset()
376 if (offset <= field_offset && field_offset < offset + field_size) { in FindFieldWithOffset()
386 uint32_t field_offset) { in FindInstanceFieldWithOffset() argument
388 ArtField* field = FindFieldWithOffset<kExactOffset>(klass->GetIFields(), field_offset); in FindInstanceFieldWithOffset()
394 FindInstanceFieldWithOffset<kExactOffset>(klass->GetSuperClass(), field_offset) : nullptr; in FindInstanceFieldWithOffset()
399 uint32_t field_offset) { in FindStaticFieldWithOffset() argument
401 return FindFieldWithOffset<kExactOffset>(klass->GetSFields(), field_offset); in FindStaticFieldWithOffset()
Druntime.h510 void RecordWriteFieldBoolean(mirror::Object* obj, MemberOffset field_offset, uint8_t value,
512 void RecordWriteFieldByte(mirror::Object* obj, MemberOffset field_offset, int8_t value,
514 void RecordWriteFieldChar(mirror::Object* obj, MemberOffset field_offset, uint16_t value,
516 void RecordWriteFieldShort(mirror::Object* obj, MemberOffset field_offset, int16_t value,
518 void RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value,
520 void RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value,
523 MemberOffset field_offset,
Dart_field.h187 static ArtField* FindInstanceFieldWithOffset(ObjPtr<mirror::Class> klass, uint32_t field_offset)
194 static ArtField* FindStaticFieldWithOffset(ObjPtr<mirror::Class> klass, uint32_t field_offset)
Druntime.cc2420 void Runtime::RecordWriteFieldBoolean(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldBoolean() argument
2424 GetTransaction()->RecordWriteFieldBoolean(obj, field_offset, value, is_volatile); in RecordWriteFieldBoolean()
2427 void Runtime::RecordWriteFieldByte(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldByte() argument
2431 GetTransaction()->RecordWriteFieldByte(obj, field_offset, value, is_volatile); in RecordWriteFieldByte()
2434 void Runtime::RecordWriteFieldChar(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldChar() argument
2438 GetTransaction()->RecordWriteFieldChar(obj, field_offset, value, is_volatile); in RecordWriteFieldChar()
2441 void Runtime::RecordWriteFieldShort(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldShort() argument
2445 GetTransaction()->RecordWriteFieldShort(obj, field_offset, value, is_volatile); in RecordWriteFieldShort()
2448 void Runtime::RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, in RecordWriteField32() argument
2452 GetTransaction()->RecordWriteField32(obj, field_offset, value, is_volatile); in RecordWriteField32()
[all …]
Dclass_linker.cc366 MemberOffset* field_offset, in ShuffleForward() argument
373 DCHECK(field_offset != nullptr); in ShuffleForward()
382 if (!IsAligned<n>(field_offset->Uint32Value())) { in ShuffleForward()
383 MemberOffset old_offset = *field_offset; in ShuffleForward()
384 *field_offset = MemberOffset(RoundUp(field_offset->Uint32Value(), n)); in ShuffleForward()
385 AddFieldGap(old_offset.Uint32Value(), field_offset->Uint32Value(), gaps); in ShuffleForward()
398 DCHECK_ALIGNED(field_offset->Uint32Value(), n); in ShuffleForward()
399 field->SetOffset(*field_offset); in ShuffleForward()
400 *field_offset = MemberOffset(field_offset->Uint32Value() + n); in ShuffleForward()
8188 MemberOffset field_offset(0); in LinkFields() local
[all …]
/art/runtime/interpreter/
Dinterpreter_common.cc206 MemberOffset field_offset(inst->VRegC_22c()); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL() local
212 field_offset.Uint32Value()); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
232 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetField32(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
235 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetFieldBoolean(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
238 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetFieldByte(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
241 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetFieldChar(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
244 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetFieldShort(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
247 shadow_frame.SetVRegLong(vregA, static_cast<int64_t>(obj->GetField64(field_offset))); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
250 shadow_frame.SetVRegReference(vregA, obj->GetFieldObject<mirror::Object>(field_offset)); in EXPLICIT_DO_FIELD_GET_ALL_TEMPLATE_DECL()
389 MemberOffset field_offset(inst->VRegC_22c()); in EXPLICIT_DO_FIELD_PUT_ALL_TEMPLATE_DECL() local
[all …]
/art/dex2oat/dex/
Ddex_to_dex_compiler.cc434 MemberOffset field_offset(0u); in CompileInstanceFieldAccess() local
437 &field_offset, &is_volatile); in CompileInstanceFieldAccess()
438 if (fast_path && !is_volatile && IsUint<16>(field_offset.Int32Value())) { in CompileInstanceFieldAccess()
442 << " by field offset " << field_offset.Int32Value() in CompileInstanceFieldAccess()
449 inst->SetVRegC_22c(static_cast<uint16_t>(field_offset.Int32Value())); in CompileInstanceFieldAccess()
/art/compiler/dex/
Dinline_method_analyser.h58 uint32_t field_offset : 31; member
Dinline_method_analyser.cc729 uint32_t field_offset = field->GetOffset().Uint32Value(); in ComputeSpecialAccessorInfo() local
732 result->field_offset = field_offset; in ComputeSpecialAccessorInfo()
/art/dex2oat/driver/
Dcompiler_driver.h173 MemberOffset* field_offset, bool* is_volatile)
Dcompiler_driver.cc1172 MemberOffset field_offset, in operator ()() argument
1175 mirror::Object* ref = object->GetFieldObject<mirror::Object>(field_offset); in operator ()()
1358 bool is_put, MemberOffset* field_offset, in ComputeInstanceFieldInfo() argument
1366 *field_offset = MemberOffset(static_cast<size_t>(-1)); in ComputeInstanceFieldInfo()
1370 *field_offset = resolved_field->GetOffset(); in ComputeInstanceFieldInfo()
/art/openjdkjvmti/
Dti_class.cc475 art::MemberOffset field_offset, in FixupHeap() argument
479 src->GetFieldObjectReferenceAddr(field_offset); in FixupHeap()
481 DCHECK_NE(field_offset.Uint32Value(), 0u); // This shouldn't be the class field of in FixupHeap()
/art/runtime/interpreter/mterp/
Dmterp.cc869 uint32_t field_offset) in artIGetObjectFromMterp() argument
875 return obj->GetFieldObject<mirror::Object>(MemberOffset(field_offset)); in artIGetObjectFromMterp()
/art/compiler/optimizing/
Dnodes.h5753 MemberOffset field_offset, in FieldInfo() argument
5760 field_offset_(field_offset), in FieldInfo()
5790 MemberOffset field_offset, in HInstanceFieldGet() argument
5801 field_offset, in HInstanceFieldGet()
5853 MemberOffset field_offset, in HInstanceFieldSet() argument
5863 field_offset, in HInstanceFieldSet()
6778 MemberOffset field_offset, in HStaticFieldGet() argument
6789 field_offset, in HStaticFieldGet()
6838 MemberOffset field_offset, in HStaticFieldSet() argument
6848 field_offset, in HStaticFieldSet()
Dinliner.cc1587 DCHECK_EQ(iget->GetFieldOffset().Uint32Value(), data.field_offset); in TryPatternSubstitution()
1602 DCHECK_EQ(iput->GetFieldOffset().Uint32Value(), data.field_offset); in TryPatternSubstitution()
/art/dex2oat/linker/
Dimage_writer.cc1431 MemberOffset field_offset = klass->GetFirstReferenceStaticFieldOffset( in PruneAppImageClassInternal() local
1434 mirror::Object* ref = klass->GetFieldObject<mirror::Object>(field_offset); in PruneAppImageClassInternal()
1455 field_offset = MemberOffset(field_offset.Uint32Value() + in PruneAppImageClassInternal()
/art/runtime/gc/space/
Dimage_space.cc509 MemberOffset field_offset, in operator ()() argument
513 PatchReferenceField(object, field_offset); in operator ()()

12