Lines Matching refs:self

69   Thread::tls_ptr_sized_values* GetTlsPtr(Thread* self) {  in GetTlsPtr()  argument
70 return &self->tlsPtr_; in GetTlsPtr()
74 size_t Invoke3(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self) { in Invoke3() argument
75 return Invoke3WithReferrer(arg0, arg1, arg2, code, self, nullptr); in Invoke3()
79 size_t Invoke3WithReferrer(size_t arg0, size_t arg1, size_t arg2, uintptr_t code, Thread* self, in Invoke3WithReferrer() argument
81 return Invoke3WithReferrerAndHidden(arg0, arg1, arg2, code, self, referrer, 0); in Invoke3WithReferrer()
86 Thread* self, ArtMethod* referrer, size_t hidden) { in Invoke3WithReferrerAndHidden() argument
89 self->PushManagedStackFragment(&fragment); in Invoke3WithReferrerAndHidden()
179 : [arg0] "r"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrerAndHidden()
310 : [arg0] "0"(arg0), [arg1] "r"(arg1), [arg2] "r"(arg2), [code] "r"(code), [self] "r"(self), in Invoke3WithReferrerAndHidden()
397 self->PopManagedStackFragment(fragment); in Invoke3WithReferrerAndHidden()
405 static uintptr_t GetEntrypoint(Thread* self, QuickEntrypointEnum entrypoint) { in GetEntrypoint() argument
408 return *reinterpret_cast<uintptr_t*>(reinterpret_cast<uint8_t*>(self) + offset); in GetEntrypoint()
418 Thread* self = Thread::Current(); in TEST_F() local
428 10 * sizeof(uint32_t), StubTest::GetEntrypoint(self, kQuickMemcpy), self); in TEST_F()
458 Thread* self = Thread::Current(); in TEST_F() local
460 const uintptr_t art_quick_lock_object = StubTest::GetEntrypoint(self, kQuickLockObject); in TEST_F()
463 ScopedObjectAccess soa(self); in TEST_F()
473 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
481 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
497 Invoke3(reinterpret_cast<size_t>(obj2.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
532 Thread* self = Thread::Current(); in TestUnlockObject() local
534 const uintptr_t art_quick_lock_object = StubTest::GetEntrypoint(self, kQuickLockObject); in TestUnlockObject()
535 const uintptr_t art_quick_unlock_object = StubTest::GetEntrypoint(self, kQuickUnlockObject); in TestUnlockObject()
537 ScopedObjectAccess soa(self); in TestUnlockObject()
540 StackHandleScope<kNumberOfLocks + 1> hs(self); in TestUnlockObject()
547 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
549 EXPECT_TRUE(self->IsExceptionPending()); in TestUnlockObject()
550 self->ClearException(); in TestUnlockObject()
556 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TestUnlockObject()
562 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
617 self); in TestUnlockObject()
621 art_quick_unlock_object, self); in TestUnlockObject()
625 EXPECT_FALSE(self->IsExceptionPending()); in TestUnlockObject()
653 self); in TestUnlockObject()
687 Thread* self = Thread::Current(); in TEST_F() local
690 StubTest::GetEntrypoint(self, kQuickCheckInstanceOf); in TEST_F()
693 ScopedObjectAccess soa(self); in TEST_F()
712 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
718 self); in TEST_F()
719 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
726 self); in TEST_F()
727 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
734 self); in TEST_F()
735 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
742 self); in TEST_F()
743 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
744 self->ClearException(); in TEST_F()
750 self); in TEST_F()
751 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
757 self); in TEST_F()
758 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
764 self); in TEST_F()
765 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
766 self->ClearException(); in TEST_F()
772 self); in TEST_F()
773 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
774 self->ClearException(); in TEST_F()
791 Thread* self = Thread::Current(); in TEST_F() local
793 ScopedObjectAccess soa(self); in TEST_F()
802 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
805 StubTest::GetEntrypoint(self, kQuickAllocObjectWithChecks), in TEST_F()
806 self); in TEST_F()
808 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
817 StubTest::GetEntrypoint(self, kQuickAllocObjectResolved), in TEST_F()
818 self); in TEST_F()
820 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
829 StubTest::GetEntrypoint(self, kQuickAllocObjectInitialized), in TEST_F()
830 self); in TEST_F()
832 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
851 std::unique_ptr<StackHandleScope<kMaxHandles>> hsp(new StackHandleScope<kMaxHandles>(self)); in TEST_F()
859 if (self->IsExceptionPending() || h == nullptr) { in TEST_F()
860 self->ClearException(); in TEST_F()
876 while (!self->IsExceptionPending()) { in TEST_F()
878 if (!self->IsExceptionPending() && h != nullptr) { in TEST_F()
882 self->ClearException(); in TEST_F()
885 StubTest::GetEntrypoint(self, kQuickAllocObjectInitialized), in TEST_F()
886 self); in TEST_F()
887 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
888 self->ClearException(); in TEST_F()
908 Thread* self = Thread::Current(); in TEST_F() local
910 ScopedObjectAccess soa(self); in TEST_F()
913 StackHandleScope<1> hs(self); in TEST_F()
919 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
926 StubTest::GetEntrypoint(self, kQuickAllocArrayResolved32), in TEST_F()
927 self); in TEST_F()
928 EXPECT_FALSE(self->IsExceptionPending()) << mirror::Object::PrettyTypeOf(self->GetException()); in TEST_F()
946 StubTest::GetEntrypoint(self, kQuickAllocArrayResolved32), in TEST_F()
947 self); in TEST_F()
949 EXPECT_TRUE(self->IsExceptionPending()); in TEST_F()
950 self->ClearException(); in TEST_F()
969 Thread* self = Thread::Current(); in TEST_F() local
971 const uintptr_t art_quick_string_compareto = StubTest::GetEntrypoint(self, kQuickStringCompareTo); in TEST_F()
973 ScopedObjectAccess soa(self); in TEST_F()
987 StackHandleScope<kStringCount> hs(self); in TEST_F()
1013 art_quick_string_compareto, self); in TEST_F()
1015 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1045 static void GetSetBooleanStatic(ArtField* f, Thread* self, in GetSetBooleanStatic() argument
1057 StubTest::GetEntrypoint(self, kQuickSet8Static), in GetSetBooleanStatic()
1058 self, in GetSetBooleanStatic()
1063 StubTest::GetEntrypoint(self, kQuickGetBooleanStatic), in GetSetBooleanStatic()
1064 self, in GetSetBooleanStatic()
1070 UNUSED(f, self, referrer, test); in GetSetBooleanStatic()
1076 static void GetSetByteStatic(ArtField* f, Thread* self, ArtMethod* referrer, in GetSetByteStatic() argument
1087 StubTest::GetEntrypoint(self, kQuickSet8Static), in GetSetByteStatic()
1088 self, in GetSetByteStatic()
1093 StubTest::GetEntrypoint(self, kQuickGetByteStatic), in GetSetByteStatic()
1094 self, in GetSetByteStatic()
1099 UNUSED(f, self, referrer, test); in GetSetByteStatic()
1107 static void GetSetBooleanInstance(Handle<mirror::Object>* obj, ArtField* f, Thread* self, in GetSetBooleanInstance() argument
1118 StubTest::GetEntrypoint(self, kQuickSet8Instance), in GetSetBooleanInstance()
1119 self, in GetSetBooleanInstance()
1130 StubTest::GetEntrypoint(self, kQuickGetBooleanInstance), in GetSetBooleanInstance()
1131 self, in GetSetBooleanInstance()
1136 UNUSED(obj, f, self, referrer, test); in GetSetBooleanInstance()
1143 Thread* self, ArtMethod* referrer, StubTest* test) in GetSetByteInstance() argument
1153 StubTest::GetEntrypoint(self, kQuickSet8Instance), in GetSetByteInstance()
1154 self, in GetSetByteInstance()
1164 StubTest::GetEntrypoint(self, kQuickGetByteInstance), in GetSetByteInstance()
1165 self, in GetSetByteInstance()
1170 UNUSED(obj, f, self, referrer, test); in GetSetByteInstance()
1177 static void GetSetCharStatic(ArtField* f, Thread* self, ArtMethod* referrer, in GetSetCharStatic() argument
1188 StubTest::GetEntrypoint(self, kQuickSet16Static), in GetSetCharStatic()
1189 self, in GetSetCharStatic()
1194 StubTest::GetEntrypoint(self, kQuickGetCharStatic), in GetSetCharStatic()
1195 self, in GetSetCharStatic()
1201 UNUSED(f, self, referrer, test); in GetSetCharStatic()
1207 static void GetSetShortStatic(ArtField* f, Thread* self, in GetSetShortStatic() argument
1218 StubTest::GetEntrypoint(self, kQuickSet16Static), in GetSetShortStatic()
1219 self, in GetSetShortStatic()
1224 StubTest::GetEntrypoint(self, kQuickGetShortStatic), in GetSetShortStatic()
1225 self, in GetSetShortStatic()
1231 UNUSED(f, self, referrer, test); in GetSetShortStatic()
1239 Thread* self, ArtMethod* referrer, StubTest* test) in GetSetCharInstance() argument
1249 StubTest::GetEntrypoint(self, kQuickSet16Instance), in GetSetCharInstance()
1250 self, in GetSetCharInstance()
1260 StubTest::GetEntrypoint(self, kQuickGetCharInstance), in GetSetCharInstance()
1261 self, in GetSetCharInstance()
1266 UNUSED(obj, f, self, referrer, test); in GetSetCharInstance()
1273 Thread* self, ArtMethod* referrer, StubTest* test) in GetSetShortInstance() argument
1283 StubTest::GetEntrypoint(self, kQuickSet16Instance), in GetSetShortInstance()
1284 self, in GetSetShortInstance()
1294 StubTest::GetEntrypoint(self, kQuickGetShortInstance), in GetSetShortInstance()
1295 self, in GetSetShortInstance()
1300 UNUSED(obj, f, self, referrer, test); in GetSetShortInstance()
1307 static void GetSet32Static(ArtField* f, Thread* self, ArtMethod* referrer, in GetSet32Static() argument
1318 StubTest::GetEntrypoint(self, kQuickSet32Static), in GetSet32Static()
1319 self, in GetSet32Static()
1324 StubTest::GetEntrypoint(self, kQuickGet32Static), in GetSet32Static()
1325 self, in GetSet32Static()
1331 UNUSED(f, self, referrer, test); in GetSet32Static()
1340 Thread* self, ArtMethod* referrer, StubTest* test) in GetSet32Instance() argument
1350 StubTest::GetEntrypoint(self, kQuickSet32Instance), in GetSet32Instance()
1351 self, in GetSet32Instance()
1363 StubTest::GetEntrypoint(self, kQuickGet32Instance), in GetSet32Instance()
1364 self, in GetSet32Instance()
1369 UNUSED(obj, f, self, referrer, test); in GetSet32Instance()
1382 Thread* self, in set_and_check_static() argument
1386 StackHandleScope<1u> hs(self); in set_and_check_static()
1391 StubTest::GetEntrypoint(self, kQuickSetObjStatic), in set_and_check_static()
1392 self, in set_and_check_static()
1398 StubTest::GetEntrypoint(self, kQuickGetObjStatic), in set_and_check_static()
1399 self, in set_and_check_static()
1406 static void GetSetObjStatic(ArtField* f, Thread* self, ArtMethod* referrer, in GetSetObjStatic() argument
1411 set_and_check_static(f->GetDexFieldIndex(), nullptr, self, referrer, test); in GetSetObjStatic()
1414 ObjPtr<mirror::String> str = mirror::String::AllocFromModifiedUtf8(self, "Test"); in GetSetObjStatic()
1415 set_and_check_static(f->GetDexFieldIndex(), str, self, referrer, test); in GetSetObjStatic()
1417 set_and_check_static(f->GetDexFieldIndex(), nullptr, self, referrer, test); in GetSetObjStatic()
1419 UNUSED(f, self, referrer, test); in GetSetObjStatic()
1432 Thread* self, in set_and_check_instance() argument
1436 StackHandleScope<2u> hs(self); in set_and_check_instance()
1442 StubTest::GetEntrypoint(self, kQuickSetObjInstance), in set_and_check_instance()
1443 self, in set_and_check_instance()
1449 StubTest::GetEntrypoint(self, kQuickGetObjInstance), in set_and_check_instance()
1450 self, in set_and_check_instance()
1460 Thread* self, ArtMethod* referrer, StubTest* test) in GetSetObjInstance() argument
1464 set_and_check_instance(f, obj->Get(), nullptr, self, referrer, test); in GetSetObjInstance()
1467 ObjPtr<mirror::String> str = mirror::String::AllocFromModifiedUtf8(self, "Test"); in GetSetObjInstance()
1468 set_and_check_instance(f, obj->Get(), str, self, referrer, test); in GetSetObjInstance()
1470 set_and_check_instance(f, obj->Get(), nullptr, self, referrer, test); in GetSetObjInstance()
1472 UNUSED(obj, f, self, referrer, test); in GetSetObjInstance()
1482 static void GetSet64Static(ArtField* f, Thread* self, ArtMethod* referrer, in GetSet64Static() argument
1493 StubTest::GetEntrypoint(self, kQuickSet64Static), in GetSet64Static()
1494 self, in GetSet64Static()
1499 StubTest::GetEntrypoint(self, kQuickGet64Static), in GetSet64Static()
1500 self, in GetSet64Static()
1506 UNUSED(f, self, referrer, test); in GetSet64Static()
1515 Thread* self, ArtMethod* referrer, StubTest* test) in GetSet64Instance() argument
1524 StubTest::GetEntrypoint(self, kQuickSet64Instance), in GetSet64Instance()
1525 self, in GetSet64Instance()
1537 StubTest::GetEntrypoint(self, kQuickGet64Instance), in GetSet64Instance()
1538 self, in GetSet64Instance()
1543 UNUSED(obj, f, self, referrer, test); in GetSet64Instance()
1550 static void TestFields(Thread* self, StubTest* test, Primitive::Type test_type) { in TestFields() argument
1559 ScopedObjectAccess soa(self); in TestFields()
1560 StackHandleScope<3> hs(self); in TestFields()
1576 GetSetBooleanStatic(&f, self, m, test); in TestFields()
1579 GetSetByteStatic(&f, self, m, test); in TestFields()
1582 GetSetCharStatic(&f, self, m, test); in TestFields()
1585 GetSetShortStatic(&f, self, m, test); in TestFields()
1588 GetSet32Static(&f, self, m, test); in TestFields()
1591 GetSet64Static(&f, self, m, test); in TestFields()
1596 GetSetObjStatic(&f, self, m, test); in TestFields()
1612 GetSetBooleanInstance(&obj, &f, self, m, test); in TestFields()
1615 GetSetByteInstance(&obj, &f, self, m, test); in TestFields()
1618 GetSetCharInstance(&obj, &f, self, m, test); in TestFields()
1621 GetSetShortInstance(&obj, &f, self, m, test); in TestFields()
1624 GetSet32Instance(&obj, &f, self, m, test); in TestFields()
1627 GetSet64Instance(&obj, &f, self, m, test); in TestFields()
1632 GetSetObjInstance(&obj, &f, self, m, test); in TestFields()
1644 Thread* self = Thread::Current(); in TEST_F() local
1646 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1651 TestFields(self, this, Primitive::Type::kPrimBoolean); in TEST_F()
1652 TestFields(self, this, Primitive::Type::kPrimByte); in TEST_F()
1656 Thread* self = Thread::Current(); in TEST_F() local
1658 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1663 TestFields(self, this, Primitive::Type::kPrimChar); in TEST_F()
1664 TestFields(self, this, Primitive::Type::kPrimShort); in TEST_F()
1668 Thread* self = Thread::Current(); in TEST_F() local
1670 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1675 TestFields(self, this, Primitive::Type::kPrimInt); in TEST_F()
1679 Thread* self = Thread::Current(); in TEST_F() local
1681 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1686 TestFields(self, this, Primitive::Type::kPrimNot); in TEST_F()
1690 Thread* self = Thread::Current(); in TEST_F() local
1692 self->TransitionFromSuspendedToRunnable(); in TEST_F()
1697 TestFields(self, this, Primitive::Type::kPrimLong); in TEST_F()
1708 Thread* self = Thread::Current(); in TEST_F() local
1710 ScopedObjectAccess soa(self); in TEST_F()
1711 StackHandleScope<7> hs(self); in TEST_F()
1734 StubTest::GetEntrypoint(self, kQuickQuickToInterpreterBridge))); in TEST_F()
1779 self, in TEST_F()
1789 StubTest::GetEntrypoint(self, kQuickQuickImtConflictTrampoline), in TEST_F()
1790 self, in TEST_F()
1794 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1801 ASSERT_FALSE(self->IsExceptionPending()) << mirror::Object::PrettyTypeOf(self->GetException()); in TEST_F()
1809 StubTest::GetEntrypoint(self, kQuickQuickImtConflictTrampoline), in TEST_F()
1810 self, in TEST_F()
1814 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1822 StubTest::GetEntrypoint(self, in TEST_F()
1824 self, contains_amethod); in TEST_F()
1826 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1832 StubTest::GetEntrypoint(self, kQuickInvokeInterfaceTrampolineWithAccessCheck), self, in TEST_F()
1835 ASSERT_FALSE(self->IsExceptionPending()); in TEST_F()
1846 Thread* self = Thread::Current(); in TEST_F() local
1847 ScopedObjectAccess soa(self); in TEST_F()
1859 StackHandleScope<kStringCount> hs(self); in TEST_F()
1891 StubTest::GetEntrypoint(self, kQuickIndexOf), self); in TEST_F()
1893 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1923 Thread* self = Thread::Current(); in TEST_F() local
1925 const uintptr_t readBarrierSlow = StubTest::GetEntrypoint(self, kQuickReadBarrierSlow); in TEST_F()
1928 ScopedObjectAccess soa(self); in TEST_F()
1938 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1941 mirror::Object::ClassOffset().SizeValue(), readBarrierSlow, self); in TEST_F()
1943 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1959 Thread* self = Thread::Current(); in TEST_F() local
1962 StubTest::GetEntrypoint(self, kQuickReadBarrierForRootSlow); in TEST_F()
1965 ScopedObjectAccess soa(self); in TEST_F()
1973 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()
1976 size_t result = Invoke3(reinterpret_cast<size_t>(&root), 0U, 0U, readBarrierForRootSlow, self); in TEST_F()
1978 EXPECT_FALSE(self->IsExceptionPending()); in TEST_F()