Lines Matching refs:object

198 void ImageWriter::SetImageOffset(mirror::Object* object,  in SetImageOffset()  argument
201 DCHECK(object != nullptr); in SetImageOffset()
217 object->SetLockWord(LockWord::FromForwardingAddress(offset), false); in SetImageOffset()
218 DCHECK(IsImageOffsetAssigned(object)); in SetImageOffset()
221 void ImageWriter::AssignImageOffset(mirror::Object* object, ImageWriter::BinSlot bin_slot) { in AssignImageOffset() argument
222 DCHECK(object != nullptr); in AssignImageOffset()
229 SetImageOffset(object, bin_slot, new_offset); in AssignImageOffset()
233 bool ImageWriter::IsImageOffsetAssigned(mirror::Object* object) const { in IsImageOffsetAssigned()
235 DCHECK(object != nullptr); in IsImageOffsetAssigned()
236 return object->GetLockWord(false).GetState() == LockWord::kForwardingAddress; in IsImageOffsetAssigned()
239 size_t ImageWriter::GetImageOffset(mirror::Object* object) const { in GetImageOffset()
240 DCHECK(object != nullptr); in GetImageOffset()
241 DCHECK(IsImageOffsetAssigned(object)); in GetImageOffset()
242 LockWord lock_word = object->GetLockWord(false); in GetImageOffset()
248 void ImageWriter::SetImageBinSlot(mirror::Object* object, BinSlot bin_slot) { in SetImageBinSlot() argument
249 DCHECK(object != nullptr); in SetImageBinSlot()
250 DCHECK(!IsImageOffsetAssigned(object)); in SetImageBinSlot()
251 DCHECK(!IsImageBinSlotAssigned(object)); in SetImageBinSlot()
254 Monitor::Deflate(Thread::Current(), object);; in SetImageBinSlot()
255 LockWord lw(object->GetLockWord(false)); in SetImageBinSlot()
258 LOG(FATAL) << "Fat locked object " << object << " found during object copy"; in SetImageBinSlot()
262 LOG(FATAL) << "Thin locked object " << object << " found during object copy"; in SetImageBinSlot()
275 object->SetLockWord(LockWord::FromForwardingAddress(static_cast<uint32_t>(bin_slot)), in SetImageBinSlot()
277 DCHECK(IsImageBinSlotAssigned(object)); in SetImageBinSlot()
280 void ImageWriter::AssignImageBinSlot(mirror::Object* object) { in AssignImageBinSlot() argument
281 DCHECK(object != nullptr); in AssignImageBinSlot()
283 if (object->IsArtMethod()) { in AssignImageBinSlot()
287 object_size = object->SizeOf(); in AssignImageBinSlot()
326 if (object->IsClass()) { in AssignImageBinSlot()
328 mirror::Class* klass = object->AsClass(); in AssignImageBinSlot()
354 } else if (object->IsArtMethod<kVerifyNone>()) { in AssignImageBinSlot()
355 mirror::ArtMethod* art_method = down_cast<ArtMethod*>(object); in AssignImageBinSlot()
367 } else if (object->GetClass<kVerifyNone>()->IsStringClass()) { in AssignImageBinSlot()
378 SetImageBinSlot(object, new_bin_slot); in AssignImageBinSlot()
389 bool ImageWriter::IsImageBinSlotAssigned(mirror::Object* object) const { in IsImageBinSlotAssigned()
390 DCHECK(object != nullptr); in IsImageBinSlotAssigned()
394 if (object->GetLockWord(false).GetState() != LockWord::kForwardingAddress) { in IsImageBinSlotAssigned()
397 LockWord lock_word = object->GetLockWord(false); in IsImageBinSlotAssigned()
406 ImageWriter::BinSlot ImageWriter::GetImageBinSlot(mirror::Object* object) const { in GetImageBinSlot()
407 DCHECK(object != nullptr); in GetImageBinSlot()
408 DCHECK(IsImageBinSlotAssigned(object)); in GetImageBinSlot()
410 LockWord lock_word = object->GetLockWord(false); in GetImageBinSlot()