/art/runtime/ |
H A D | object_lock.cc | 19 #include "mirror/object-inl.h" 25 ObjectLock<T>::ObjectLock(Thread* self, Handle<T> object) : self_(self), obj_(object) { argument 26 CHECK(object.Get() != nullptr);
|
H A D | intern_table_test.cc | 20 #include "mirror/object.h" 90 mirror::Object* IsMarkedSweepingCallback(mirror::Object* object, void* arg) { argument 91 if (reinterpret_cast<TestPredicate*>(arg)->IsMarked(object)) { 92 return object;
|
H A D | handle_scope-inl.h | 75 inline void HandleScope::SetReference(size_t i, mirror::Object* object) { argument 77 GetReferences()[i].Assign(object); 90 inline MutableHandle<T> StackHandleScope<kNumReferences>::NewHandle(T* object) { argument 91 SetReference(pos_, object); 98 inline HandleWrapper<T> StackHandleScope<kNumReferences>::NewHandleWrapper(T** object) { argument 99 SetReference(pos_, *object); 102 return HandleWrapper<T>(object, h); 106 inline void StackHandleScope<kNumReferences>::SetReference(size_t i, mirror::Object* object) { argument 108 VerifyObject(object); 109 GetReferences()[i].Assign(object); [all...] |
H A D | art_field-inl.h | 28 #include "mirror/object-inl.h" 62 inline uint32_t ArtField::Get32(mirror::Object* object) { argument 63 DCHECK(object != nullptr) << PrettyField(this); 64 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); 66 return object->GetField32Volatile(GetOffset()); 68 return object->GetField32(GetOffset()); 72 inline void ArtField::Set32(mirror::Object* object, uint32_t new_value) { argument 73 DCHECK(object != nullptr) << PrettyField(this); 74 DCHECK(!IsStatic() || (object == GetDeclaringClass()) || !Runtime::Current()->IsStarted()); 76 object 82 Get64(mirror::Object* object) argument 92 Set64(mirror::Object* object, uint64_t new_value) argument 102 GetObj(mirror::Object* object) argument 112 SetObj(mirror::Object* object, mirror::Object* new_value) argument 141 GetBoolean(mirror::Object* object) argument 146 SetBoolean(mirror::Object* object, uint8_t z) argument 150 GetByte(mirror::Object* object) argument 155 SetByte(mirror::Object* object, int8_t b) argument 159 GetChar(mirror::Object* object) argument 164 SetChar(mirror::Object* object, uint16_t c) argument 168 GetShort(mirror::Object* object) argument 173 SetShort(mirror::Object* object, int16_t s) argument 180 GetInt(mirror::Object* object) argument 189 SetInt(mirror::Object* object, int32_t i) argument 197 GetLong(mirror::Object* object) argument 206 SetLong(mirror::Object* object, int64_t j) argument 214 GetFloat(mirror::Object* object) argument 222 SetFloat(mirror::Object* object, float f) argument 229 GetDouble(mirror::Object* object) argument 237 SetDouble(mirror::Object* object, double d) argument 244 GetObject(mirror::Object* object) argument 250 SetObject(mirror::Object* object, mirror::Object* l) argument [all...] |
H A D | intern_table.cc | 25 #include "mirror/object-inl.h" 68 // corresponding object. This is slow, but luckily for us, this may only happen with a 404 mirror::Object* object = it->Read<kWithoutReadBarrier>(); local 405 mirror::Object* new_object = callback(object, arg);
|
H A D | jni_internal_test.cc | 349 : "attempt to get byte primitive array elements with an object of type boolean[]"); 353 : "attempt to get short primitive array elements with an object of type boolean[]"); 357 : "attempt to get char primitive array elements with an object of type boolean[]"); 361 : "attempt to get int primitive array elements with an object of type boolean[]"); 365 : "attempt to get long primitive array elements with an object of type boolean[]"); 369 : "attempt to get float primitive array elements with an object of type boolean[]"); 373 : "attempt to get double primitive array elements with an object of type boolean[]"); 379 : "attempt to get boolean primitive array elements with an object of type byte[]"); 380 jobject object = env_->NewStringUTF("Test String"); local 381 EXPECT_EQ(env_->GetBooleanArrayElements(reinterpret_cast<jbooleanArray>(object), 448 jobject object = env_->NewStringUTF("Test String"); local 466 jobject object = env_->NewStringUTF("Test String"); local 526 jobject object = env_->NewStringUTF("Test String"); local 584 jobject object = env_->NewStringUTF("Test String"); local 2062 jobject object = env_->AllocObject(object_class); local [all...] |
H A D | monitor.cc | 33 #include "mirror/object-inl.h" 182 // Deflated monitors have a null object. 225 void Monitor::SetObject(mirror::Object* object) { argument 226 obj_ = GcRoot<mirror::Object>(object); 344 ThrowIllegalMonitorStateExceptionF("unlock of unowned monitor on object of type '%s'" 350 ThrowIllegalMonitorStateExceptionF("unlock of monitor owned by '%s' on object of type '%s'" 359 ThrowIllegalMonitorStateExceptionF("unlock of monitor owned by '%s' on object of type '%s'" 368 " owned by '%s') on object of type '%s' on thread '%s'", 374 ThrowIllegalMonitorStateExceptionF("unlock of monitor owned by '%s' on object of type '%s'" 419 ThrowIllegalMonitorStateExceptionF("object no [all...] |
/art/test/406-fields/src/ |
H A D | TestCase.java | 176 public static void assertNull(String message, Object object) { argument 177 if (object != null) { 182 public static void assertNull(Object object) { argument 183 assertNull("Expected null", object); 186 public static void assertNotNull(String message, Object object) { argument 187 if (object == null) { 192 public static void assertNotNull(Object object) { argument 193 assertNotNull("Expected non-null", object);
|
/art/test/407-arrays/src/ |
H A D | TestCase.java | 176 public static void assertNull(String message, Object object) { argument 177 if (object != null) { 182 public static void assertNull(Object object) { argument 183 assertNull("Expected null", object); 186 public static void assertNotNull(String message, Object object) { argument 187 if (object == null) { 192 public static void assertNotNull(Object object) { argument 193 assertNotNull("Expected non-null", object);
|
/art/test/412-new-array/src/ |
H A D | TestCase.java | 176 public static void assertNull(String message, Object object) { argument 177 if (object != null) { 182 public static void assertNull(Object object) { argument 183 assertNull("Expected null", object); 186 public static void assertNotNull(String message, Object object) { argument 187 if (object == null) { 192 public static void assertNotNull(Object object) { argument 193 assertNotNull("Expected non-null", object);
|
/art/test/414-static-fields/src/ |
H A D | TestCase.java | 176 public static void assertNull(String message, Object object) { argument 177 if (object != null) { 182 public static void assertNull(Object object) { argument 183 assertNull("Expected null", object); 186 public static void assertNotNull(String message, Object object) { argument 187 if (object == null) { 192 public static void assertNotNull(Object object) { argument 193 assertNotNull("Expected non-null", object);
|
/art/runtime/mirror/ |
H A D | array.cc | 25 #include "object-inl.h" 124 void Array::ThrowArrayStoreException(Object* object) { argument 125 art::ThrowArrayStoreException(object->GetClass(), this->GetClass());
|
H A D | object_array-inl.h | 68 inline bool ObjectArray<T>::CheckAssignable(T* object) { argument 69 if (object != nullptr) { 71 if (UNLIKELY(!object->InstanceOf(element_class))) { 72 ThrowArrayStoreException(object); 80 inline void ObjectArray<T>::Set(int32_t i, T* object) { argument 82 Set<true>(i, object); 84 Set<false>(i, object); 90 inline void ObjectArray<T>::Set(int32_t i, T* object) { argument 91 if (CheckIsValidIndex(i) && CheckAssignable<kVerifyFlags>(object)) { 92 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags>(OffsetOfElement(i), object); local 100 SetWithoutChecks(int32_t i, T* object) argument 103 SetFieldObject<kTransactionActive, kCheckTransaction, kVerifyFlags>(OffsetOfElement(i), object); local 108 SetWithoutChecksAndWriteBarrier(int32_t i, T* object) argument 113 OffsetOfElement(i), object); local [all...] |
/art/test/021-string2/src/junit/framework/ |
H A D | Assert.java | 208 * Asserts that an object isn't null. 210 static public void assertNotNull(Object object) { argument 211 assertNotNull(null, object); 214 * Asserts that an object isn't null. If it is 217 static public void assertNotNull(String message, Object object) { argument 218 assertTrue(message, object != null); 221 * Asserts that an object is null. If it isn't an {@link AssertionError} is 223 * Message contains: Expected: <null> but was: object 225 * @param object 228 static public void assertNull(Object object) { argument 236 assertNull(String message, Object object) argument [all...] |
/art/test/082-inline-execute/src/junit/framework/ |
H A D | Assert.java | 208 * Asserts that an object isn't null. 210 static public void assertNotNull(Object object) { argument 211 assertNotNull(null, object); 214 * Asserts that an object isn't null. If it is 217 static public void assertNotNull(String message, Object object) { argument 218 assertTrue(message, object != null); 221 * Asserts that an object is null. If it isn't an {@link AssertionError} is 223 * Message contains: Expected: <null> but was: object 225 * @param object 228 static public void assertNull(Object object) { argument 236 assertNull(String message, Object object) argument [all...] |
/art/runtime/native/ |
H A D | java_lang_Thread.cc | 23 #include "mirror/object.h" 102 mirror::Object* object = soa.Decode<mirror::Object*>(java_object); local 103 if (object == nullptr) { 104 ThrowNullPointerException("object == null"); 109 return thread->HoldsLock(object);
|
/art/test/423-invoke-interface/src/ |
H A D | Main.java | 98 public static void $opt$InvokeInterface(Itf object, int factor) { argument 99 assertEquals(factor * 1, object.return1()); 100 assertEquals(factor * 2, object.return2()); 101 assertEquals(factor * 3, object.return3()); 102 assertEquals(factor * 4, object.return4()); 103 assertEquals(factor * 5, object.return5()); 104 assertEquals(factor * 6, object.return6()); 105 assertEquals(factor * 7, object.return7()); 106 assertEquals(factor * 8, object.return8()); 107 assertEquals(factor * 9, object [all...] |
/art/runtime/gc/space/ |
H A D | space_test.h | 28 #include "mirror/object-inl.h" 100 // Like the proper heap object allocation, install and verify 432 size_t last_object = 0; // last object for which allocation succeeded 453 auto object(hs.NewHandle<mirror::Object>(nullptr)); 457 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, 460 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, 465 if (object.Get() != nullptr) { // allocation succeeded 466 lots_of_objects[i] = object.Get(); 467 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); 520 mirror::Object* object local [all...] |
/art/runtime/gc/collector/ |
H A D | mark_compact.cc | 42 #include "mirror/object-inl.h" 151 // Marking a large object, make sure its aligned as a sanity check. 172 MarkStackPush(obj); // This object was not previously marked. 178 // This object was not previously marked. 287 // The object must be pushed on to the mark stack. 380 // Update object references in mod union tables and spaces. 404 << "Didn't update large object classes since they are assumed to not move."; 498 inline bool MarkCompact::IsMarked(const Object* object) const { 499 if (immune_region_.ContainsObject(object)) { 502 if (objects_before_forwarding_->HasAddress(object)) { 508 IsMarkedCallback(mirror::Object* object, void* arg) argument [all...] |
H A D | semi_space.cc | 46 #include "mirror/object-inl.h" 84 // We won't collect the large object space if a bump pointer space only collection. 305 DCHECK(!from_space_->HasAddress(obj)) << "Scanning object " << obj << " in from space"; 388 // When the large object space is immune, we need to scan the 389 // large object space as roots as they contain references to their 437 // The object must be pushed on to the mark stack. 444 // that the next object copied will also dirty that page. 445 // TODO: Worth considering the last object copied? We may end up dirtying one page which is 524 // bitmap marking of the promoted object until it's popped off 531 // mark the promoted object her 631 HeapReferenceMarkedCallback(mirror::HeapReference<mirror::Object>* object, void* arg) argument 647 MarkedForwardingAddressCallback(mirror::Object* object, void* arg) argument [all...] |
H A D | mark_sweep.cc | 44 #include "mirror/object-inl.h" 226 // 3. GC scans the object (the RecursiveMarkDirtyObjects call below) 229 // wrote into the object stored in the card. 351 // The object must be pushed on to the mark stack. 443 LOG(FATAL) << "Can't mark invalid object"; 469 PushOnMarkStack(obj); // This object was not previously marked. 476 // TODO: We already know that the object is not in the current_space_bitmap_ but MarkBitmap::Set 490 // The object must be pushed on to the mark stack. 514 // Used to mark objects when processing the mark stack. If an object is null, it is not marked. 868 // as a side effect when a Reference object i 991 IsMarkedCallback(mirror::Object* object, void* arg) argument [all...] |
/art/patchoat/ |
H A D | patchoat.cc | 40 #include "mirror/object-inl.h" 495 void PatchOat::FixupNativePointerArray(mirror::PointerArray* object) { argument 496 if (object->IsIntArray()) { 497 mirror::IntArray* arr = object->AsIntArray(); 504 CHECK(object->IsLongArray()); 505 mirror::LongArray* arr = object->AsLongArray(); 586 void PatchOat::VisitObject(mirror::Object* object) { argument 587 mirror::Object* copy = RelocatedCopyOf(object); 590 object->AssertReadBarrierPointer(); 592 mirror::Object* moved_to = RelocatedAddressOfPointer(object); 642 FixupMethod(ArtMethod* object, ArtMethod* copy) argument [all...] |
/art/compiler/dex/quick/ |
H A D | gen_common.cc | 32 #include "mirror/object-inl.h" 1160 RegLocation object = LoadValue(rl_src, kRefReg); local 1163 if (IsSameReg(result_reg, object.reg)) { 1165 DCHECK(!IsSameReg(result_reg, object.reg)); 1168 LIR* null_branchover = OpCmpImmBranch(kCondEq, object.reg, 0, nullptr); 1177 LoadRefDisp(object.reg, mirror::Object::ClassOffset().Int32Value(), object_class, 1182 LoadRefDisp(object.reg, mirror::Object::ClassOffset().Int32Value(), object_class, 1188 LoadRefDisp(object.reg, mirror::Object::ClassOffset().Int32Value(), object_class, 1268 /* load object->klass_ */ 1428 /* load object [all...] |
/art/compiler/ |
H A D | image_writer.cc | 53 #include "mirror/object-inl.h" 227 void ImageWriter::SetImageOffset(mirror::Object* object, size_t offset) { argument 228 DCHECK(object != nullptr); 231 // The object is already deflated from when we set the bin slot. Just overwrite the lock word. 232 object->SetLockWord(LockWord::FromForwardingAddress(offset), false); 233 DCHECK_EQ(object->GetLockWord(false).ReadBarrierState(), 0u); 234 DCHECK(IsImageOffsetAssigned(object)); 243 void ImageWriter::AssignImageOffset(mirror::Object* object, ImageWriter::BinSlot bin_slot) { argument 244 DCHECK(object != nullptr); 251 SetImageOffset(object, new_offse 270 SetImageBinSlot(mirror::Object* object, BinSlot bin_slot) argument 276 Monitor::Deflate(Thread::Current(), object);; local 357 AssignImageBinSlot(mirror::Object* object) argument [all...] |
/art/compiler/optimizing/ |
H A D | builder.cc | 844 HInstruction* object = LoadLocal(obj_reg, Primitive::kPrimNot); local 845 current_block_->AddInstruction(new (arena_) HNullCheck(object, dex_pc)); 1033 HInstruction* object = LoadLocal(array_reg, Primitive::kPrimNot); local 1034 object = new (arena_) HNullCheck(object, dex_pc); 1035 current_block_->AddInstruction(object); 1036 temps.Add(object); 1038 HInstruction* length = new (arena_) HArrayLength(object); 1049 object, index, value, anticipated_type, dex_pc)); 1051 current_block_->AddInstruction(new (arena_) HArrayGet(object, inde 1067 HInstruction* object = new (arena_) HNewArray(length, dex_pc, type_index, entrypoint); local 1091 BuildFillArrayData(HInstruction* object, const T* data, uint32_t element_count, Primitive::Type anticipated_type, uint32_t dex_pc) argument 1159 BuildFillWideArrayData(HInstruction* object, const int64_t* data, uint32_t element_count, uint32_t dex_pc) argument 1190 HInstruction* object = LoadLocal(reference, Primitive::kPrimNot); local 2174 HInstruction* object = LoadLocal(instruction.VRegB_12x(), Primitive::kPrimNot); local [all...] |