Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 62) sorted by relevance

123

/art/runtime/mirror/
Dart_field-inl.h65 inline uint32_t ArtField::Get32(Object* object) { in Get32() argument
66 DCHECK(object != nullptr) << PrettyField(this); in Get32()
67 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Get32()
69 return object->GetField32Volatile(GetOffset()); in Get32()
71 return object->GetField32(GetOffset()); in Get32()
75 inline void ArtField::Set32(Object* object, uint32_t new_value) { in Set32() argument
76 DCHECK(object != nullptr) << PrettyField(this); in Set32()
77 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); in Set32()
79 object->SetField32Volatile<kTransactionActive>(GetOffset(), new_value); in Set32()
81 object->SetField32<kTransactionActive>(GetOffset(), new_value); in Set32()
[all …]
Dart_field.h98 bool GetBoolean(Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
100 void SetBoolean(Object* object, bool z) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
101 int8_t GetByte(Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
103 void SetByte(Object* object, int8_t b) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
104 uint16_t GetChar(Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
106 void SetChar(Object* object, uint16_t c) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
107 int16_t GetShort(Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
109 void SetShort(Object* object, int16_t s) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
110 int32_t GetInt(Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
112 void SetInt(Object* object, int32_t i) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
[all …]
Dobject_array-inl.h63 inline bool ObjectArray<T>::CheckAssignable(T* object) { in CheckAssignable() argument
64 if (object != NULL) { in CheckAssignable()
66 if (UNLIKELY(!object->InstanceOf(element_class))) { in CheckAssignable()
67 ThrowArrayStoreException(object); in CheckAssignable()
75 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument
77 Set<true>(i, object); in Set()
79 Set<false>(i, object); in Set()
85 inline void ObjectArray<T>::Set(int32_t i, T* object) { in Set() argument
86 if (CheckIsValidIndex(i) && CheckAssignable<kVerifyFlags>(object)) { in Set()
87 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags>(OffsetOfElement(i), object); in Set()
[all …]
Dobject_array.h46 bool CheckAssignable(T* object) NO_THREAD_SAFETY_ANALYSIS;
48 void Set(int32_t i, T* object) ALWAYS_INLINE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
52 void Set(int32_t i, T* object) ALWAYS_INLINE NO_THREAD_SAFETY_ANALYSIS;
60 void SetWithoutChecks(int32_t i, T* object) ALWAYS_INLINE NO_THREAD_SAFETY_ANALYSIS;
65 void SetWithoutChecksAndWriteBarrier(int32_t i, T* object) ALWAYS_INLINE
/art/runtime/
Dhandle_scope.h92 void SetReference(size_t i, mirror::Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in SetReference() argument
95 references_[i].Assign(object); in SetReference()
178 void SetReference(size_t i, mirror::Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in SetReference() argument
181 references_storage_[i].Assign(object); in SetReference()
185 Handle<T> NewHandle(T* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in NewHandle() argument
186 SetReference(pos_, object); in NewHandle()
193 HandleWrapper<T> NewHandleWrapper(T** object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in NewHandleWrapper() argument
194 SetReference(pos_, *object); in NewHandleWrapper()
197 return HandleWrapper<T>(object, h); in NewHandleWrapper()
Dobject_lock.cc25 ObjectLock<T>::ObjectLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { in ObjectLock() argument
26 CHECK(object.Get() != nullptr); in ObjectLock()
Dobject_callbacks.h72 typedef mirror::Object* (IsMarkedCallback)(mirror::Object* object, void* arg) WARN_UNUSED;
76 typedef bool (IsHeapReferenceMarkedCallback)(mirror::HeapReference<mirror::Object>* object,
/art/test/407-arrays/src/
DTestCase.java176 public static void assertNull(String message, Object object) { in assertNull() argument
177 if (object != null) { in assertNull()
182 public static void assertNull(Object object) { in assertNull() argument
183 assertNull("Expected null", object); in assertNull()
186 public static void assertNotNull(String message, Object object) { in assertNotNull() argument
187 if (object == null) { in assertNotNull()
192 public static void assertNotNull(Object object) { in assertNotNull() argument
193 assertNotNull("Expected non-null", object); in assertNotNull()
/art/test/406-fields/src/
DTestCase.java176 public static void assertNull(String message, Object object) { in assertNull() argument
177 if (object != null) { in assertNull()
182 public static void assertNull(Object object) { in assertNull() argument
183 assertNull("Expected null", object); in assertNull()
186 public static void assertNotNull(String message, Object object) { in assertNotNull() argument
187 if (object == null) { in assertNotNull()
192 public static void assertNotNull(Object object) { in assertNotNull() argument
193 assertNotNull("Expected non-null", object); in assertNotNull()
/art/compiler/
Dimage_writer.h66 void AssignImageOffset(mirror::Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
67 void SetImageOffset(mirror::Object* object, size_t offset)
69 bool IsImageOffsetAssigned(mirror::Object* object) const
71 size_t GetImageOffset(mirror::Object* object) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
78 mirror::Object* GetImageAddress(mirror::Object* object) const in GetImageAddress() argument
80 if (object == NULL) { in GetImageAddress()
83 return reinterpret_cast<mirror::Object*>(image_begin_ + GetImageOffset(object)); in GetImageAddress()
86 mirror::Object* GetLocalAddress(mirror::Object* object) const in GetLocalAddress() argument
88 size_t offset = GetImageOffset(object); in GetLocalAddress()
Dimage_writer.cc177 void ImageWriter::SetImageOffset(mirror::Object* object, size_t offset) { in SetImageOffset() argument
178 DCHECK(object != nullptr); in SetImageOffset()
180 DCHECK(!IsImageOffsetAssigned(object)); in SetImageOffset()
185 Monitor::Deflate(Thread::Current(), object);; in SetImageOffset()
186 LockWord lw(object->GetLockWord(false)); in SetImageOffset()
206 object->SetLockWord(LockWord::FromForwardingAddress(offset), false); in SetImageOffset()
207 DCHECK(IsImageOffsetAssigned(object)); in SetImageOffset()
210 void ImageWriter::AssignImageOffset(mirror::Object* object) { in AssignImageOffset() argument
211 DCHECK(object != nullptr); in AssignImageOffset()
212 SetImageOffset(object, image_end_); in AssignImageOffset()
[all …]
/art/test/011-array-copy/
Dexpected.txt1 string -> object
2 object -> string
3 object -> string (modified)
/art/test/082-inline-execute/src/junit/framework/
DAssert.java212 static public void assertNotNull(Object object) { in assertNotNull() argument
213 assertNotNull(null, object); in assertNotNull()
219 static public void assertNotNull(String message, Object object) { in assertNotNull() argument
220 assertTrue(message, object != null); in assertNotNull()
225 static public void assertNull(Object object) { in assertNull() argument
226 assertNull(null, object); in assertNull()
232 static public void assertNull(String message, Object object) { in assertNull() argument
233 assertTrue(message, object == null); in assertNull()
/art/test/021-string2/src/junit/framework/
DAssert.java212 static public void assertNotNull(Object object) { in assertNotNull() argument
213 assertNotNull(null, object); in assertNotNull()
219 static public void assertNotNull(String message, Object object) { in assertNotNull() argument
220 assertTrue(message, object != null); in assertNotNull()
225 static public void assertNull(Object object) { in assertNull() argument
226 assertNull(null, object); in assertNull()
232 static public void assertNull(String message, Object object) { in assertNull() argument
233 assertTrue(message, object == null); in assertNull()
/art/compiler/llvm/
Druntime_support_builder.cc166 void RuntimeSupportBuilder::EmitLockObject(::llvm::Value* object) { in EmitLockObject() argument
168 irb_.CreateCall2(slow_func, object, EmitGetCurrentThread()); in EmitLockObject()
171 void RuntimeSupportBuilder::EmitUnlockObject(::llvm::Value* object) { in EmitUnlockObject() argument
173 irb_.CreateCall2(slow_func, object, EmitGetCurrentThread()); in EmitUnlockObject()
Druntime_support_builder.h67 void EmitLockObject(::llvm::Value* object);
68 void EmitUnlockObject(::llvm::Value* object);
/art/runtime/gc/collector/
Dmark_compact.cc463 inline bool MarkCompact::IsMarked(const Object* object) const { in IsMarked()
464 if (immune_region_.ContainsObject(object)) { in IsMarked()
467 if (objects_before_forwarding_->HasAddress(object)) { in IsMarked()
468 return objects_before_forwarding_->Test(object); in IsMarked()
470 return mark_bitmap_->Test(object); in IsMarked()
473 mirror::Object* MarkCompact::IsMarkedCallback(mirror::Object* object, void* arg) { in IsMarkedCallback() argument
474 return reinterpret_cast<MarkCompact*>(arg)->IsMarked(object) ? object : nullptr; in IsMarkedCallback()
Dsemi_space.h162 mirror::Object* GetMarkedForwardAddress(mirror::Object* object) const
166 static bool HeapReferenceMarkedCallback(mirror::HeapReference<mirror::Object>* object, void* arg)
170 static mirror::Object* MarkedForwardingAddressCallback(mirror::Object* object, void* arg)
/art/test/093-serialization/
Dinfo.txt1 Tests object serialization.
/art/runtime/gc/space/
Dspace_test.h423 auto object(hs.NewHandle<mirror::Object>(nullptr)); in SizeFootPrintGrowthLimitAndTrimBody()
426 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody()
428 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody()
432 if (object.Get() != nullptr) { // allocation succeeded in SizeFootPrintGrowthLimitAndTrimBody()
433 lots_of_objects[i] = object.Get(); in SizeFootPrintGrowthLimitAndTrimBody()
434 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); in SizeFootPrintGrowthLimitAndTrimBody()
485 mirror::Object* object = lots_of_objects.get()[i]; in SizeFootPrintGrowthLimitAndTrimBody() local
486 if (object == nullptr) { in SizeFootPrintGrowthLimitAndTrimBody()
489 size_t allocation_size = space->AllocationSize(object, nullptr); in SizeFootPrintGrowthLimitAndTrimBody()
495 space->Free(self, object); in SizeFootPrintGrowthLimitAndTrimBody()
/art/patchoat/
Dpatchoat.cc392 void PatchOat::VisitObject(mirror::Object* object) { in VisitObject() argument
393 mirror::Object* copy = RelocatedCopyOf(object); in VisitObject()
396 object->AssertReadBarrierPointer(); in VisitObject()
398 mirror::Object* moved_to = RelocatedAddressOf(object); in VisitObject()
404 object->VisitReferences<true, kVerifyNone>(visitor, visitor); in VisitObject()
405 if (object->IsArtMethod<kVerifyNone>()) { in VisitObject()
406 FixupMethod(static_cast<mirror::ArtMethod*>(object), in VisitObject()
411 void PatchOat::FixupMethod(mirror::ArtMethod* object, mirror::ArtMethod* copy) { in FixupMethod() argument
416 object->GetEntryPointFromPortableCompiledCode<kVerifyNone>()); in FixupMethod()
422 object->GetEntryPointFromQuickCompiledCode<kVerifyNone>()); in FixupMethod()
[all …]
/art/test/120-hashcode/
Dinfo.txt1 Check that object hashCode and System.identityHashCode never cause the hash to change.
/art/compiler/optimizing/
Dbuilder.cc405 HInstruction* object = LoadLocal(obj_reg, Primitive::kPrimNot); in BuildFieldAccess() local
406 current_block_->AddInstruction(new (arena_) HNullCheck(object, dex_offset)); in BuildFieldAccess()
441 HInstruction* object = LoadLocal(array_reg, Primitive::kPrimNot); in BuildArrayAccess() local
442 object = new (arena_) HNullCheck(object, dex_offset); in BuildArrayAccess()
443 current_block_->AddInstruction(object); in BuildArrayAccess()
444 temps.Add(object); in BuildArrayAccess()
446 HInstruction* length = new (arena_) HArrayLength(object); in BuildArrayAccess()
456 current_block_->AddInstruction(new (arena_) HArraySet(object, index, value, dex_offset)); in BuildArrayAccess()
458 current_block_->AddInstruction(new (arena_) HArrayGet(object, index, anticipated_type)); in BuildArrayAccess()
/art/runtime/native/
Djava_lang_Thread.cc98 mirror::Object* object = soa.Decode<mirror::Object*>(java_object); in Thread_nativeHoldsLock() local
99 if (object == NULL) { in Thread_nativeHoldsLock()
105 return thread->HoldsLock(object); in Thread_nativeHoldsLock()
/art/test/034-call-null/
Dexpected.txt1 …void Main.doStuff(int, int[][], java.lang.String, java.lang.String[][])' on a null object reference

123