Lines Matching refs:self

61   Thread::tls_ptr_sized_values* GetTlsPtr(Thread* self) {  in GetTlsPtr()  argument
62 return &self->tlsPtr_; in GetTlsPtr()
66 size_t Invoke3(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self) { in Invoke3() argument
67 return Invoke3WithReferrer(arg0, arg1, arg2, code, self, nullptr); in Invoke3()
71 size_t Invoke3WithReferrer(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, in Invoke3WithReferrer() argument
75 self->PushManagedStackFragment(&fragment); in Invoke3WithReferrer()
126 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrer()
254 : [arg0] "0"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrer()
285 self->PopManagedStackFragment(fragment); in Invoke3WithReferrer()
295 Thread* self, mirror::ArtMethod* referrer, size_t hidden) { in Invoke3WithReferrerAndHidden() argument
298 self->PushManagedStackFragment(&fragment); in Invoke3WithReferrerAndHidden()
352 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrerAndHidden()
479 : [arg0] "0"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrerAndHidden()
512 self->PopManagedStackFragment(fragment); in Invoke3WithReferrerAndHidden()
521 size_t Invoke3UWithReferrer(size_t arg0, uint64_t arg1, uintptr_t code, Thread* self, in Invoke3UWithReferrer() argument
525 return Invoke3WithReferrer(arg0, arg1, 0U, code, self, referrer); in Invoke3UWithReferrer()
531 return Invoke3WithReferrer(arg0, lower, upper, code, self, referrer); in Invoke3UWithReferrer()
537 Thread* self, mirror::ArtMethod* referrer) { in Invoke3UUWithReferrer() argument
540 return Invoke3WithReferrer(arg0, arg1, arg2, code, self, referrer); in Invoke3UUWithReferrer()
547 static uintptr_t GetEntrypoint(Thread* self, QuickEntrypointEnum entrypoint) { in GetEntrypoint() argument
554 return *reinterpret_cast<uintptr_t*>(reinterpret_cast<uint8_t*>(self) + offset); in GetEntrypoint()
564 Thread* self = Thread::Current(); in TEST_F() local
574 10 * sizeof(uint32_t), StubTest::GetEntrypoint(self, kQuickMemcpy), self); in TEST_F()
603 Thread* self = Thread::Current(); in TEST_F() local
605 const uintptr_t art_quick_lock_object = StubTest::GetEntrypoint(self, kQuickLockObject); in TEST_F()
608 ScopedObjectAccess soa(self); in TEST_F()
618 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
626 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
642 Invoke3(reinterpret_cast<size_t>(obj2.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
676 Thread* self = Thread::Current(); in TestUnlockObject() local
678 const uintptr_t art_quick_lock_object = StubTest::GetEntrypoint(self, kQuickLockObject); in TestUnlockObject()
679 const uintptr_t art_quick_unlock_object = StubTest::GetEntrypoint(self, kQuickUnlockObject); in TestUnlockObject()
681 ScopedObjectAccess soa(self); in TestUnlockObject()
684 StackHandleScope<kNumberOfLocks + 1> hs(self); in TestUnlockObject()
691 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
693 EXPECT_TRUE(self->IsExceptionPending()); in TestUnlockObject()
694 self->ClearException(); in TestUnlockObject()
700 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TestUnlockObject()
706 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
761 self); in TestUnlockObject()
765 art_quick_unlock_object, self); in TestUnlockObject()
769 EXPECT_FALSE(self->IsExceptionPending()); in TestUnlockObject()
797 self); in TestUnlockObject()
825 Thread* self = Thread::Current(); in TEST_F() local
827 const uintptr_t art_quick_check_cast = StubTest::GetEntrypoint(self, kQuickCheckCast); in TEST_F()
830 ScopedObjectAccess soa(self); in TEST_F()
839 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
842 art_quick_check_cast, self); in TEST_F()
844 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
847 art_quick_check_cast, self); in TEST_F()
849 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
852 art_quick_check_cast, self); in TEST_F()
854 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
859 art_quick_check_cast, self); in TEST_F()
861 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
862 self->ClearException(); in TEST_F()
876 Thread* self = Thread::Current(); in TEST_F() local
880 StubTest::GetEntrypoint(self, kQuickAputObjectWithNullAndBoundCheck); in TEST_F()
883 ScopedObjectAccess soa(self); in TEST_F()
908 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
911 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
913 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
917 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
919 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
923 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
925 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
929 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
931 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
937 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
939 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
943 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
945 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
949 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
951 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
955 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
957 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
976 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
978 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
979 self->ClearException(); in TEST_F()
984 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
986 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
987 self->ClearException(); in TEST_F()
992 art_quick_aput_obj_with_null_and_bound_check, self); in TEST_F()
994 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
995 self->ClearException(); in TEST_F()
1011 Thread* self = Thread::Current(); in TEST_F() local
1013 ScopedObjectAccess soa(self); in TEST_F()
1022 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1028 StubTest::GetEntrypoint(self, kQuickAllocObject), in TEST_F()
1029 self); in TEST_F()
1031 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1042 StubTest::GetEntrypoint(self, kQuickAllocObjectResolved), in TEST_F()
1043 self); in TEST_F()
1045 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1056 StubTest::GetEntrypoint(self, kQuickAllocObjectInitialized), in TEST_F()
1057 self); in TEST_F()
1059 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1078 std::unique_ptr<StackHandleScope<kMaxHandles>> hsp(new StackHandleScope<kMaxHandles>(self)); in TEST_F()
1086 if (self->IsExceptionPending() || h.Get() == nullptr) { in TEST_F()
1087 self->ClearException(); in TEST_F()
1103 while (!self->IsExceptionPending()) { in TEST_F()
1105 if (!self->IsExceptionPending() && h.Get() != nullptr) { in TEST_F()
1109 self->ClearException(); in TEST_F()
1112 StubTest::GetEntrypoint(self, kQuickAllocObjectInitialized), in TEST_F()
1113 self); in TEST_F()
1114 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
1115 self->ClearException(); in TEST_F()
1133 Thread* self = Thread::Current(); in TEST_F() local
1135 ScopedObjectAccess soa(self); in TEST_F()
1138 StackHandleScope<2> hs(self); in TEST_F()
1148 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1158 StubTest::GetEntrypoint(self, kQuickAllocArray), in TEST_F()
1159 self); in TEST_F()
1161 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1173 StubTest::GetEntrypoint(self, kQuickAllocArrayResolved), in TEST_F()
1174 self); in TEST_F()
1175 EXPECT_FALSE(self->IsExceptionPending()) << PrettyTypeOf(self->GetException(nullptr)); in TEST_F()
1192 StubTest::GetEntrypoint(self, kQuickAllocArrayResolved), in TEST_F()
1193 self); in TEST_F()
1195 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
1196 self->ClearException(); in TEST_F()
1215 Thread* self = Thread::Current(); in TEST_F() local
1217 const uintptr_t art_quick_string_compareto = StubTest::GetEntrypoint(self, kQuickStringCompareTo); in TEST_F()
1219 ScopedObjectAccess soa(self); in TEST_F()
1235 StackHandleScope<kStringCount> hs(self); in TEST_F()
1277 art_quick_string_compareto, self); in TEST_F()
1279 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1309 static void GetSet32Static(Handle<mirror::Object>* obj, Handle<mirror::ArtField>* f, Thread* self, in GetSet32Static() argument
1320 StubTest::GetEntrypoint(self, kQuickSet32Static), in GetSet32Static()
1321 self, in GetSet32Static()
1326 StubTest::GetEntrypoint(self, kQuickGet32Static), in GetSet32Static()
1327 self, in GetSet32Static()
1341 Thread* self, mirror::ArtMethod* referrer, StubTest* test) in GetSet32Instance() argument
1351 StubTest::GetEntrypoint(self, kQuickSet32Instance), in GetSet32Instance()
1352 self, in GetSet32Instance()
1364 StubTest::GetEntrypoint(self, kQuickGet32Instance), in GetSet32Instance()
1365 self, in GetSet32Instance()
1379 static void set_and_check_static(uint32_t f_idx, mirror::Object* val, Thread* self, in set_and_check_static() argument
1385 StubTest::GetEntrypoint(self, kQuickSetObjStatic), in set_and_check_static()
1386 self, in set_and_check_static()
1391 StubTest::GetEntrypoint(self, kQuickGetObjStatic), in set_and_check_static()
1392 self, in set_and_check_static()
1399 static void GetSetObjStatic(Handle<mirror::Object>* obj, Handle<mirror::ArtField>* f, Thread* self, in GetSetObjStatic() argument
1403 set_and_check_static((*f)->GetDexFieldIndex(), nullptr, self, referrer, test); in GetSetObjStatic()
1406 mirror::String* str = mirror::String::AllocFromModifiedUtf8(self, "Test"); in GetSetObjStatic()
1407 set_and_check_static((*f)->GetDexFieldIndex(), str, self, referrer, test); in GetSetObjStatic()
1409 set_and_check_static((*f)->GetDexFieldIndex(), nullptr, self, referrer, test); in GetSetObjStatic()
1420 mirror::Object* val, Thread* self, mirror::ArtMethod* referrer, in set_and_check_instance() argument
1426 StubTest::GetEntrypoint(self, kQuickSetObjInstance), in set_and_check_instance()
1427 self, in set_and_check_instance()
1433 StubTest::GetEntrypoint(self, kQuickGetObjInstance), in set_and_check_instance()
1434 self, in set_and_check_instance()
1444 Thread* self, mirror::ArtMethod* referrer, StubTest* test) in GetSetObjInstance() argument
1447 set_and_check_instance(f, obj->Get(), nullptr, self, referrer, test); in GetSetObjInstance()
1450 mirror::String* str = mirror::String::AllocFromModifiedUtf8(self, "Test"); in GetSetObjInstance()
1451 set_and_check_instance(f, obj->Get(), str, self, referrer, test); in GetSetObjInstance()
1453 set_and_check_instance(f, obj->Get(), nullptr, self, referrer, test); in GetSetObjInstance()
1464 static void GetSet64Static(Handle<mirror::Object>* obj, Handle<mirror::ArtField>* f, Thread* self, in GetSet64Static() argument
1474 StubTest::GetEntrypoint(self, kQuickSet64Static), in GetSet64Static()
1475 self, in GetSet64Static()
1480 StubTest::GetEntrypoint(self, kQuickGet64Static), in GetSet64Static()
1481 self, in GetSet64Static()
1495 Thread* self, mirror::ArtMethod* referrer, StubTest* test) in GetSet64Instance() argument
1505 StubTest::GetEntrypoint(self, kQuickSet64Instance), in GetSet64Instance()
1506 self, in GetSet64Instance()
1518 StubTest::GetEntrypoint(self, kQuickGet64Instance), in GetSet64Instance()
1519 self, in GetSet64Instance()
1530 static void TestFields(Thread* self, StubTest* test, Primitive::Type test_type) { in TestFields() argument
1539 ScopedObjectAccess soa(self); in TestFields()
1540 StackHandleScope<5> hs(self); in TestFields()
1553 StackHandleScope<1> hs(self); in TestFields()
1560 GetSet32Static(&obj, &f, self, m.Get(), test); in TestFields()
1566 GetSet64Static(&obj, &f, self, m.Get(), test); in TestFields()
1573 GetSetObjStatic(&obj, &f, self, m.Get(), test); in TestFields()
1588 StackHandleScope<1> hs(self); in TestFields()
1595 GetSet32Instance(&obj, &f, self, m.Get(), test); in TestFields()
1601 GetSet64Instance(&obj, &f, self, m.Get(), test); in TestFields()
1608 GetSetObjInstance(&obj, &f, self, m.Get(), test); in TestFields()
1625 Thread* self = Thread::Current(); in TEST_F() local
1627 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1632 TestFields(self, this, Primitive::Type::kPrimInt); in TEST_F()
1638 Thread* self = Thread::Current(); in TEST_F() local
1640 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1645 TestFields(self, this, Primitive::Type::kPrimNot); in TEST_F()
1651 Thread* self = Thread::Current(); in TEST_F() local
1653 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1658 TestFields(self, this, Primitive::Type::kPrimLong); in TEST_F()
1666 Thread* self = Thread::Current(); in TEST_F() local
1668 ScopedObjectAccess soa(self); in TEST_F()
1669 StackHandleScope<7> hs(self); in TEST_F()
1691 StubTest::GetEntrypoint(self, kQuickQuickToInterpreterBridge))); in TEST_F()
1740 StubTest::GetEntrypoint(self, kQuickQuickImtConflictTrampoline), in TEST_F()
1741 self, contains_amethod.Get(), in TEST_F()
1744 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1751 ASSERT_FALSE(self->IsExceptionPending()) << PrettyTypeOf(self->GetException(nullptr)); in TEST_F()
1757 … StubTest::GetEntrypoint(self, kQuickQuickImtConflictTrampoline), in TEST_F()
1758 self, contains_amethod.Get(), in TEST_F()
1761 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1774 Thread* self = Thread::Current(); in TEST_F() local
1775 ScopedObjectAccess soa(self); in TEST_F()
1787 StackHandleScope<kStringCount> hs(self); in TEST_F()
1819 StubTest::GetEntrypoint(self, kQuickIndexOf), self); in TEST_F()
1821 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()