From ba1b94e8ebf35947e1ce127d67ab164a76ec251c Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 10 Jun 2021 09:52:53 +0100 Subject: Clean up Class::GetDirectInterface(). Fetch array interfaces from the `IfTable`. This removes the only use of the `Thread* self` argument, so we can remove that argument. We also make the function non-static to avoid the explicit `klass` argument. Similarly clean up arguments of `Class::FindClass()` and `Class::FindStaticClass()`. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 (cherry picked from commit b10668cb6a34398eb720f9a6305ff9a51b3ebfd4) Merged-In: Id639b675b4eb331a777cf318eb61bd19e05de4f0 Change-Id: I34d11499aea5a95864bf1cdcb4f210547a07f33c --- runtime/oat_file_assistant_test.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/oat_file_assistant_test.cc') diff --git a/runtime/oat_file_assistant_test.cc b/runtime/oat_file_assistant_test.cc index 68ae83da6f..5a77fabdab 100644 --- a/runtime/oat_file_assistant_test.cc +++ b/runtime/oat_file_assistant_test.cc @@ -1419,8 +1419,7 @@ TEST_F(OatFileAssistantTest, DexOptStatusValues) { linker->EnsureInitialized(soa.Self(), dexfile, true, true); for (std::pair field : mapping) { - ArtField* art_field = mirror::Class::FindStaticField( - soa.Self(), dexfile.Get(), field.second, "I"); + ArtField* art_field = dexfile->FindStaticField(field.second, "I"); ASSERT_FALSE(art_field == nullptr); EXPECT_EQ(art_field->GetTypeAsPrimitiveType(), Primitive::kPrimInt); EXPECT_EQ(field.first, art_field->GetInt(dexfile.Get())); -- cgit v1.2.3-59-g8ed1b