Home
last modified time | relevance | path

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

12

/art/runtime/mirror/
Dobject-inl.h410 inline int32_t Object::GetField32(MemberOffset field_offset) { in GetField32() argument
414 const byte* raw_addr = reinterpret_cast<const byte*>(this) + field_offset.Int32Value(); in GetField32()
424 inline int32_t Object::GetField32Volatile(MemberOffset field_offset) { in GetField32Volatile() argument
425 return GetField32<kVerifyFlags, true>(field_offset); in GetField32Volatile()
430 inline void Object::SetField32(MemberOffset field_offset, int32_t new_value) { in SetField32() argument
435 Runtime::Current()->RecordWriteField32(this, field_offset, in SetField32()
436 GetField32<kVerifyFlags, kIsVolatile>(field_offset), in SetField32()
442 byte* raw_addr = reinterpret_cast<byte*>(this) + field_offset.Int32Value(); in SetField32()
452 inline void Object::SetField32Volatile(MemberOffset field_offset, int32_t new_value) { in SetField32Volatile() argument
453 SetField32<kTransactionActive, kCheckTransaction, kVerifyFlags, true>(field_offset, new_value); in SetField32Volatile()
[all …]
Dobject.h211 ALWAYS_INLINE T* GetFieldObject(MemberOffset field_offset)
216 ALWAYS_INLINE T* GetFieldObjectVolatile(MemberOffset field_offset)
221 ALWAYS_INLINE void SetFieldObjectWithoutWriteBarrier(MemberOffset field_offset, Object* new_value)
226 ALWAYS_INLINE void SetFieldObject(MemberOffset field_offset, Object* new_value)
231 ALWAYS_INLINE void SetFieldObjectVolatile(MemberOffset field_offset, Object* new_value)
236 bool CasFieldWeakSequentiallyConsistentObject(MemberOffset field_offset, Object* old_value,
242 bool CasFieldStrongSequentiallyConsistentObject(MemberOffset field_offset, Object* old_value,
247 HeapReference<Object>* GetFieldObjectReferenceAddr(MemberOffset field_offset);
250 ALWAYS_INLINE int32_t GetField32(MemberOffset field_offset)
254 ALWAYS_INLINE int32_t GetField32Volatile(MemberOffset field_offset)
[all …]
Dart_field.cc63 ArtField* ArtField::FindInstanceFieldWithOffset(mirror::Class* klass, uint32_t field_offset) { in FindInstanceFieldWithOffset() argument
69 if (field->GetOffset().Uint32Value() == field_offset) { in FindInstanceFieldWithOffset()
76 return FindInstanceFieldWithOffset(klass->GetSuperClass(), field_offset); in FindInstanceFieldWithOffset()
Dobject.cc199 void Object::CheckFieldAssignmentImpl(MemberOffset field_offset, Object* new_value) { in CheckFieldAssignmentImpl() argument
212 if (field->GetOffset().Int32Value() == field_offset.Int32Value()) { in CheckFieldAssignmentImpl()
232 if (field->GetOffset().Int32Value() == field_offset.Int32Value()) { in CheckFieldAssignmentImpl()
243 << " of type " << PrettyDescriptor(c) << " at offset " << field_offset; in CheckFieldAssignmentImpl()
Dclass-inl.h699 MemberOffset field_offset = GetSFields()->Get(0)->GetOffset(); in GetInterfaces() local
700 return GetFieldObject<ObjectArray<Class>>(field_offset); in GetInterfaces()
708 MemberOffset field_offset = GetSFields()->Get(1)->GetOffset(); in GetThrows() local
709 return GetFieldObject<ObjectArray<ObjectArray<Class>>>(field_offset); in GetThrows()
Dart_field.h153 static ArtField* FindInstanceFieldWithOffset(mirror::Class* klass, uint32_t field_offset)
/art/runtime/
Dtransaction.cc60 void Transaction::RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value, in RecordWriteField32() argument
65 object_log.Log32BitsValue(field_offset, value, is_volatile); in RecordWriteField32()
68 void Transaction::RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value, in RecordWriteField64() argument
73 object_log.Log64BitsValue(field_offset, value, is_volatile); in RecordWriteField64()
76 void Transaction::RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldReference() argument
81 object_log.LogReferenceValue(field_offset, value, is_volatile); in RecordWriteFieldReference()
263 MemberOffset field_offset(it.first); in Undo() local
264 if (field_offset.Uint32Value() == mirror::Class::ClassOffset().Uint32Value()) { in Undo()
269 field_offset.Uint32Value() == mirror::Array::LengthOffset().Uint32Value()) { in Undo()
274 UndoFieldWrite(obj, field_offset, field_value); in Undo()
[all …]
Dtransaction.h45 void RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value,
48 void RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value,
51 void RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset,
110 void UndoFieldWrite(mirror::Object* obj, MemberOffset field_offset,
Druntime.h438 void RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value,
440 void RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value,
442 void RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset,
Druntime.cc1369 void Runtime::RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, in RecordWriteField32() argument
1373 preinitialization_transaction_->RecordWriteField32(obj, field_offset, value, is_volatile); in RecordWriteField32()
1376 void Runtime::RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, in RecordWriteField64() argument
1380 preinitialization_transaction_->RecordWriteField64(obj, field_offset, value, is_volatile); in RecordWriteField64()
1383 void Runtime::RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldReference() argument
1387 preinitialization_transaction_->RecordWriteFieldReference(obj, field_offset, value, is_volatile); in RecordWriteFieldReference()
Dclass_linker.cc5400 MemberOffset field_offset(0); in LinkFields() local
5402 field_offset = klass->GetFirstReferenceStaticFieldOffsetDuringLinking(); in LinkFields()
5408 field_offset = MemberOffset(super_class->GetObjectSize()); in LinkFields()
5437 field->SetOffset(field_offset); in LinkFields()
5438 field_offset = MemberOffset(field_offset.Uint32Value() + in LinkFields()
5445 if (current_field != num_fields && !IsAligned<8>(field_offset.Uint32Value())) { in LinkFields()
5454 field->SetOffset(field_offset); in LinkFields()
5460 field_offset = MemberOffset(field_offset.Uint32Value() + in LinkFields()
5466 DCHECK(current_field == num_fields || IsAligned<8>(field_offset.Uint32Value())) in LinkFields()
5473 field->SetOffset(field_offset); in LinkFields()
[all …]
/art/compiler/dex/
Ddex_to_dex_compiler.cc211 MemberOffset field_offset(0u); in CompileInstanceFieldAccess() local
214 &field_offset, &is_volatile); in CompileInstanceFieldAccess()
215 if (fast_path && !is_volatile && IsUint(16, field_offset.Int32Value())) { in CompileInstanceFieldAccess()
219 << " by field offset " << field_offset.Int32Value() in CompileInstanceFieldAccess()
225 inst->SetVRegC_22c(static_cast<uint16_t>(field_offset.Int32Value())); in CompileInstanceFieldAccess()
/art/compiler/driver/
Dcompiler_driver-inl.h109 mirror::ArtField* resolved_field, uint16_t field_idx, MemberOffset* field_offset, in IsFastStaticField() argument
115 *field_offset = resolved_field->GetOffset(); in IsFastStaticField()
150 *field_offset = resolved_field->GetOffset(); in IsFastStaticField()
160 *field_offset = MemberOffset(0u); in IsFastStaticField()
Dcompiler_driver.h263 mirror::ArtField* resolved_field, uint16_t field_idx, MemberOffset* field_offset,
305 MemberOffset* field_offset, bool* is_volatile)
318 MemberOffset* field_offset, uint32_t* storage_index,
Dcompiler_driver.cc1095 bool is_put, MemberOffset* field_offset, in ComputeInstanceFieldInfo() argument
1105 *field_offset = MemberOffset(static_cast<size_t>(-1)); in ComputeInstanceFieldInfo()
1109 *field_offset = resolved_field->GetOffset(); in ComputeInstanceFieldInfo()
1115 bool is_put, MemberOffset* field_offset, in ComputeStaticFieldInfo() argument
1140 dex_cache, referrer_class, resolved_field, field_idx, field_offset, in ComputeStaticFieldInfo()
1147 *field_offset = MemberOffset(static_cast<size_t>(-1)); in ComputeStaticFieldInfo()
/art/runtime/interpreter/
Dinterpreter_common.cc130 MemberOffset field_offset(inst->VRegC_22c()); in DoIGetQuick() local
136 field_offset.Uint32Value()); in DoIGetQuick()
146 shadow_frame.SetVReg(vregA, static_cast<int32_t>(obj->GetField32(field_offset))); in DoIGetQuick()
149 shadow_frame.SetVRegLong(vregA, static_cast<int64_t>(obj->GetField64(field_offset))); in DoIGetQuick()
152 shadow_frame.SetVRegReference(vregA, obj->GetFieldObject<mirror::Object>(field_offset)); in DoIGetQuick()
333 MemberOffset field_offset(inst->VRegC_22c()); in DoIPutQuick() local
340 field_offset.Uint32Value()); in DoIPutQuick()
350 obj->SetField32<transaction_active>(field_offset, shadow_frame.GetVReg(vregA)); in DoIPutQuick()
353 obj->SetField64<transaction_active>(field_offset, shadow_frame.GetVRegLong(vregA)); in DoIPutQuick()
356 obj->SetFieldObject<transaction_active>(field_offset, shadow_frame.GetVRegReference(vregA)); in DoIPutQuick()
/art/compiler/llvm/
Dgbc_expander.cc1108 int field_offset = in Expand_IGetFast() local
1111 DCHECK_GE(field_offset, 0); in Expand_IGetFast()
1116 field_offset_value = irb_.getPtrEquivInt(field_offset); in Expand_IGetFast()
1131 int field_offset = in Expand_IPutFast() local
1134 DCHECK_GE(field_offset, 0); in Expand_IPutFast()
1139 field_offset_value = irb_.getPtrEquivInt(field_offset); in Expand_IPutFast()
1155 int field_offset = in Expand_SGetFast() local
1158 DCHECK_GE(field_offset, 0); in Expand_SGetFast()
1160 llvm::Value* static_field_offset_value = irb_.getPtrEquivInt(field_offset); in Expand_SGetFast()
1176 int field_offset = in Expand_SPutFast() local
[all …]
Dintrinsic_func_list.def538 // [type] art_portable_iget_[type].fast(int field_offset,
629 // void art_portable_iput_[type].fast(int field_offset,
723 // int field_offset,
813 // int field_offset,
/art/compiler/
Dimage_writer.cc820 MemberOffset field_offset = h_class->GetFirstReferenceInstanceFieldOffset(); in WalkInstanceFields() local
822 mirror::Object* value = obj->GetFieldObject<mirror::Object>(field_offset); in WalkInstanceFields()
826 field_offset = MemberOffset(field_offset.Uint32Value() + in WalkInstanceFields()
846 MemberOffset field_offset = klass->GetFirstReferenceStaticFieldOffset(); in WalkFieldsInOrder() local
848 mirror::Object* value = h_obj->GetFieldObject<mirror::Object>(field_offset); in WalkFieldsInOrder()
852 field_offset = MemberOffset(field_offset.Uint32Value() + in WalkFieldsInOrder()
/art/runtime/quick/
Dinline_method_analyser.h119 uint32_t field_offset : 31; member
Dinline_method_analyser.cc347 result->field_offset = field->GetOffset().Int32Value(); in ComputeSpecialAccessorInfo()
/art/compiler/optimizing/
Dnodes.h1326 explicit FieldInfo(MemberOffset field_offset) in FieldInfo() argument
1327 : field_offset_(field_offset) {} in FieldInfo()
1339 MemberOffset field_offset) in HInstanceFieldGet() argument
1340 : HExpression(field_type), field_info_(field_offset) { in HInstanceFieldGet()
1358 MemberOffset field_offset) in HInstanceFieldSet() argument
1359 : field_info_(field_offset) { in HInstanceFieldSet()
/art/compiler/dex/quick/
Dgen_common.cc678 int field_offset = field_info.FieldOffset().Int32Value(); in GenSget() local
680 LoadRefDisp(r_base, field_offset, rl_result.reg, field_info.IsVolatile() ? kVolatile : in GenSget()
683 LoadBaseDisp(r_base, field_offset, rl_result.reg, load_size, field_info.IsVolatile() ? in GenSget()
735 int field_offset = field_info.FieldOffset().Int32Value(); in GenIGet() local
738 load_lir = LoadRefDisp(rl_obj.reg, field_offset, rl_result.reg, field_info.IsVolatile() ? in GenIGet()
741 load_lir = LoadBaseDisp(rl_obj.reg, field_offset, rl_result.reg, load_size, in GenIGet()
787 int field_offset = field_info.FieldOffset().Int32Value(); in GenIPut() local
790 null_ck_insn = StoreRefDisp(rl_obj.reg, field_offset, rl_src.reg, field_info.IsVolatile() ? in GenIPut()
793 null_ck_insn = StoreBaseDisp(rl_obj.reg, field_offset, rl_src.reg, store_size, in GenIPut()
Dmir_to_lir.cc253 LoadRefDisp(reg_obj, data.field_offset, r_result, data.is_volatile ? kVolatile : kNotVolatile); in GenSpecialIGet()
255 LoadBaseDisp(reg_obj, data.field_offset, r_result, size, data.is_volatile ? kVolatile : in GenSpecialIGet()
292 StoreRefDisp(reg_obj, data.field_offset, reg_src, data.is_volatile ? kVolatile : kNotVolatile); in GenSpecialIPut()
294 StoreBaseDisp(reg_obj, data.field_offset, reg_src, size, data.is_volatile ? kVolatile : in GenSpecialIPut()
Ddex_file_method_inliner.cc815 DCHECK_EQ(data.field_offset, mir_graph->GetIFieldLoweringInfo(insn).FieldOffset().Uint32Value()); in GenInlineIGet()
876 DCHECK_EQ(data.field_offset, mir_graph->GetIFieldLoweringInfo(insn).FieldOffset().Uint32Value()); in GenInlineIPut()

12