Lines Matching refs:field_offset
471 inline uint8_t Object::GetFieldBoolean(MemberOffset field_offset) {
475 return GetField<uint8_t, kIsVolatile>(field_offset);
479 inline int8_t Object::GetFieldByte(MemberOffset field_offset) {
483 return GetField<int8_t, kIsVolatile>(field_offset);
487 inline uint8_t Object::GetFieldBooleanVolatile(MemberOffset field_offset) {
488 return GetFieldBoolean<kVerifyFlags, true>(field_offset);
492 inline int8_t Object::GetFieldByteVolatile(MemberOffset field_offset) {
493 return GetFieldByte<kVerifyFlags, true>(field_offset);
498 inline void Object::SetFieldBoolean(MemberOffset field_offset, uint8_t new_value)
504 Runtime::Current()->RecordWriteFieldBoolean(this, field_offset,
505 GetFieldBoolean<kVerifyFlags, kIsVolatile>(field_offset),
511 SetField<uint8_t, kIsVolatile>(field_offset, new_value);
516 inline void Object::SetFieldByte(MemberOffset field_offset, int8_t new_value)
522 Runtime::Current()->RecordWriteFieldByte(this, field_offset,
523 GetFieldByte<kVerifyFlags, kIsVolatile>(field_offset),
529 SetField<int8_t, kIsVolatile>(field_offset, new_value);
533 inline void Object::SetFieldBooleanVolatile(MemberOffset field_offset, uint8_t new_value) {
535 field_offset, new_value);
539 inline void Object::SetFieldByteVolatile(MemberOffset field_offset, int8_t new_value) {
541 field_offset, new_value);
545 inline uint16_t Object::GetFieldChar(MemberOffset field_offset) {
549 return GetField<uint16_t, kIsVolatile>(field_offset);
553 inline int16_t Object::GetFieldShort(MemberOffset field_offset) {
557 return GetField<int16_t, kIsVolatile>(field_offset);
561 inline uint16_t Object::GetFieldCharVolatile(MemberOffset field_offset) {
562 return GetFieldChar<kVerifyFlags, true>(field_offset);
566 inline int16_t Object::GetFieldShortVolatile(MemberOffset field_offset) {
567 return GetFieldShort<kVerifyFlags, true>(field_offset);
572 inline void Object::SetFieldChar(MemberOffset field_offset, uint16_t new_value) {
577 Runtime::Current()->RecordWriteFieldChar(this, field_offset,
578 GetFieldChar<kVerifyFlags, kIsVolatile>(field_offset),
584 SetField<uint16_t, kIsVolatile>(field_offset, new_value);
589 inline void Object::SetFieldShort(MemberOffset field_offset, int16_t new_value) {
594 Runtime::Current()->RecordWriteFieldChar(this, field_offset,
595 GetFieldShort<kVerifyFlags, kIsVolatile>(field_offset),
601 SetField<int16_t, kIsVolatile>(field_offset, new_value);
605 inline void Object::SetFieldCharVolatile(MemberOffset field_offset, uint16_t new_value) {
607 field_offset, new_value);
611 inline void Object::SetFieldShortVolatile(MemberOffset field_offset, int16_t new_value) {
613 field_offset, new_value);
617 inline int32_t Object::GetField32(MemberOffset field_offset) {
621 return GetField<int32_t, kIsVolatile>(field_offset);
625 inline int32_t Object::GetField32Volatile(MemberOffset field_offset) {
626 return GetField32<kVerifyFlags, true>(field_offset);
631 inline void Object::SetField32(MemberOffset field_offset, int32_t new_value) {
636 Runtime::Current()->RecordWriteField32(this, field_offset,
637 GetField32<kVerifyFlags, kIsVolatile>(field_offset),
643 SetField<int32_t, kIsVolatile>(field_offset, new_value);
647 inline void Object::SetField32Volatile(MemberOffset field_offset, int32_t new_value) {
648 SetField32<kTransactionActive, kCheckTransaction, kVerifyFlags, true>(field_offset, new_value);
654 inline bool Object::CasFieldWeakSequentiallyConsistent32(MemberOffset field_offset,
660 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true);
665 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
672 inline bool Object::CasFieldWeakRelaxed32(MemberOffset field_offset,
678 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true);
683 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
690 inline bool Object::CasFieldWeakRelease32(MemberOffset field_offset,
696 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true);
701 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
708 inline bool Object::CasFieldStrongSequentiallyConsistent32(MemberOffset field_offset,
714 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true);
719 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
726 inline int64_t Object::GetField64(MemberOffset field_offset) {
730 return GetField<int64_t, kIsVolatile>(field_offset);
734 inline int64_t Object::GetField64Volatile(MemberOffset field_offset) {
735 return GetField64<kVerifyFlags, true>(field_offset);
740 inline void Object::SetField64(MemberOffset field_offset, int64_t new_value) {
745 Runtime::Current()->RecordWriteField64(this, field_offset,
746 GetField64<kVerifyFlags, kIsVolatile>(field_offset),
752 SetField<int64_t, kIsVolatile>(field_offset, new_value);
756 inline void Object::SetField64Volatile(MemberOffset field_offset, int64_t new_value) {
757 return SetField64<kTransactionActive, kCheckTransaction, kVerifyFlags, true>(field_offset,
762 inline void Object::SetField(MemberOffset field_offset, kSize new_value) {
763 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
773 inline kSize Object::GetField(MemberOffset field_offset) {
774 const uint8_t* raw_addr = reinterpret_cast<const uint8_t*>(this) + field_offset.Int32Value();
784 inline bool Object::CasFieldWeakSequentiallyConsistent64(MemberOffset field_offset,
790 Runtime::Current()->RecordWriteField64(this, field_offset, old_value, true);
795 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
801 inline bool Object::CasFieldStrongSequentiallyConsistent64(MemberOffset field_offset,
807 Runtime::Current()->RecordWriteField64(this, field_offset, old_value, true);
812 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset
819 inline T* Object::GetFieldObject(MemberOffset field_offset) {
823 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
825 T* result = ReadBarrier::Barrier<T, kReadBarrierOption>(this, field_offset, objref_addr);
837 inline T* Object::GetFieldObjectVolatile(MemberOffset field_offset) {
838 return GetFieldObject<T, kVerifyFlags, kReadBarrierOption, true>(field_offset);
843 inline void Object::SetFieldObjectWithoutWriteBarrier(MemberOffset field_offset,
851 obj = GetFieldObjectVolatile<Object>(field_offset);
853 obj = GetFieldObject<Object>(field_offset);
855 Runtime::Current()->RecordWriteFieldReference(this, field_offset, obj, true);
863 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
878 inline void Object::SetFieldObject(MemberOffset field_offset, Object* new_value) {
880 kIsVolatile>(field_offset, new_value);
882 Runtime::Current()->GetHeap()->WriteBarrierField(this, field_offset, new_value);
884 CheckFieldAssignment(field_offset, new_value);
889 inline void Object::SetFieldObjectVolatile(MemberOffset field_offset, Object* new_value) {
890 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags, true>(field_offset,
895 inline HeapReference<Object>* Object::GetFieldObjectReferenceAddr(MemberOffset field_offset) {
900 field_offset.Int32Value());
904 inline bool Object::CasFieldWeakSequentiallyConsistentObject(MemberOffset field_offset,
907 kTransactionActive, kCheckTransaction, kVerifyFlags>(field_offset, old_value, new_value);
909 Runtime::Current()->GetHeap()->WriteBarrierField(this, field_offset, new_value);
916 MemberOffset field_offset, Object* old_value, Object* new_value) {
930 Runtime::Current()->RecordWriteFieldReference(this, field_offset, old_value, true);
934 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
943 inline bool Object::CasFieldStrongSequentiallyConsistentObject(MemberOffset field_offset,
946 kTransactionActive, kCheckTransaction, kVerifyFlags>(field_offset, old_value, new_value);
948 Runtime::Current()->GetHeap()->WriteBarrierField(this, field_offset, new_value);
955 MemberOffset field_offset, Object* old_value, Object* new_value) {
969 Runtime::Current()->RecordWriteFieldReference(this, field_offset, old_value, true);
973 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
983 MemberOffset field_offset, Object* old_value, Object* new_value) {
997 Runtime::Current()->RecordWriteFieldReference(this, field_offset, old_value, true);
1001 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
1011 MemberOffset field_offset, Object* old_value, Object* new_value) {
1025 Runtime::Current()->RecordWriteFieldReference(this, field_offset, old_value, true);
1029 uint8_t* raw_addr = reinterpret_cast<uint8_t*>(this) + field_offset.Int32Value();
1044 uint32_t field_offset = mirror::kObjectHeaderSize;
1047 visitor(this, MemberOffset(field_offset), kIsStatic);
1050 field_offset += sizeof(mirror::HeapReference<mirror::Object>);
1068 MemberOffset field_offset = kIsStatic
1074 if (field_offset.Uint32Value() != ClassOffset().Uint32Value()) {
1075 visitor(this, field_offset, kIsStatic);
1077 field_offset = MemberOffset(field_offset.Uint32Value() +