Lines Matching refs:dex1

53     dex1 = fake_dex_storage.AddFakeDex("location1", /* checksum= */ 1, /* num_method_ids= */ 10001);  in SetUp()
125 std::vector<TypeReference> types = {TypeReference(dex1, dex::TypeIndex(0))}; in GetTestInlineCaches()
131 TypeReference(dex1, dex::TypeIndex(0)), in GetTestInlineCaches()
140 TypeReference(dex1, dex::TypeIndex(0)), in GetTestInlineCaches()
141 TypeReference(dex1, dex::TypeIndex(1)), in GetTestInlineCaches()
142 TypeReference(dex1, dex::TypeIndex(2)), in GetTestInlineCaches()
143 TypeReference(dex1, dex::TypeIndex(3)), in GetTestInlineCaches()
144 TypeReference(dex1, dex::TypeIndex(4))}; in GetTestInlineCaches()
160 TypeReference type_ref(dex1, dex::TypeIndex(k++)); in MakeMegamorphic()
183 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TestProfileLoadFromZip()
281 const DexFile* dex1; member in art::ProfileCompilationInfoTest
305 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TEST_F()
319 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TEST_F()
338 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ 1)); in TEST_F()
347 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ 1)); in TEST_F()
360 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ 1)); in TEST_F()
383 ASSERT_TRUE(AddClass(&saved_info, dex1, dex::TypeIndex(i))); in TEST_F()
487 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TEST_F()
512 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
528 GetMethod(loaded_info, dex1, /* method_idx= */ 3); in TEST_F()
543 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
555 ASSERT_TRUE(AddMethod(&saved_info_extra, dex1, method_idx, inline_caches_extra)); in TEST_F()
573 GetMethod(loaded_info, dex1, /* method_idx= */ 3); in TEST_F()
585 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
597 ASSERT_TRUE(AddMethod(&saved_info_extra, dex1, method_idx, inline_caches)); in TEST_F()
605 ASSERT_TRUE(AddMethod(&saved_info_extra, dex1, method_idx, missing_types)); in TEST_F()
623 GetMethod(loaded_info, dex1, /* method_idx= */ 3); in TEST_F()
639 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ 0, inline_caches1)); in TEST_F()
654 TypeReference(dex1, dex::TypeIndex(0)), in TEST_F()
663 TypeReference(dex1, dex::TypeIndex(0))}; in TEST_F()
669 ASSERT_TRUE(AddMethod(&info, dex1, method_idx, inline_caches)); in TEST_F()
675 ASSERT_TRUE(AddMethod(&info_reindexed, dex1, method_idx, inline_caches_reindexed)); in TEST_F()
685 GetMethod(info, dex1, method_idx); in TEST_F()
729 TypeReference(dex1, dex::TypeIndex(0)), in TEST_F()
730 TypeReference(dex1, dex::TypeIndex(1)), in TEST_F()
731 TypeReference(dex1, dex::TypeIndex(2)), in TEST_F()
732 TypeReference(dex1, dex::TypeIndex(3)), in TEST_F()
733 TypeReference(dex1, dex::TypeIndex(4))}; in TEST_F()
737 ASSERT_TRUE(AddMethod(&info_megamorphic, dex1, 0, inline_caches)); in TEST_F()
741 ASSERT_TRUE(AddMethod(&info_no_inline_cache, dex1, 0)); in TEST_F()
757 ASSERT_TRUE(AddMethod(&info_missing_types, dex1, /*method_idx=*/ 0, inline_caches)); in TEST_F()
761 ASSERT_TRUE(AddMethod(&info_no_inline_cache, dex1, /*method_idx=*/ 0)); in TEST_F()
772 AddMethod(&test_info, dex1, 1, Hotness::kFlagStartup); in TEST_F()
773 AddMethod(&test_info, dex1, 5, Hotness::kFlagPostStartup); in TEST_F()
776 auto run_test = [&dex1 = dex1, &dex2 = dex2](const ProfileCompilationInfo& info) { in TEST_F()
777 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 2)).IsInProfile()); in TEST_F()
778 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 4)).IsInProfile()); in TEST_F()
779 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)).IsStartup()); in TEST_F()
780 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 3)).IsStartup()); in TEST_F()
781 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 5)).IsPostStartup()); in TEST_F()
782 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 6)).IsStartup()); in TEST_F()
800 EXPECT_FALSE(test_info.GetMethodHotness(MethodReference(dex1, 11)).IsStartup()); in TEST_F()
803 AddMethod(&merge_info, dex1, 11, Hotness::kFlagStartup); in TEST_F()
806 EXPECT_TRUE(test_info.GetMethodHotness(MethodReference(dex1, 11)).IsStartup()); in TEST_F()
914 AddMethod(&info, dex1, /* method_idx= */ 0); in TEST_F()
935 dex_files.push_back(std::unique_ptr<const DexFile>(dex1)); in TEST_F()
967 AddMethod(&info, dex1, /* method_idx= */ 0); in TEST_F()
990 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
1005 [&dex1 = dex1, &dex3 = dex3](const std::string& dex_location, uint32_t checksum) -> bool { in TEST_F()
1006 return (dex_location == dex1->GetLocation() && checksum == dex1->GetLocationChecksum()) in TEST_F()
1024 GetMethod(loaded_info, dex1, method_idx); in TEST_F()
1064 dex1->GetLocation(), dex1->GetLocationChecksum(), dex1->NumMethodIds()); in TEST_F()
1082 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
1114 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
1136 GetMethod(loaded_info, dex1, method_idx); in TEST_F()
1157 ASSERT_TRUE(AddClass(&saved_info, dex1, dex::TypeIndex(i))); in TEST_F()
1188 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i)); in TEST_F()
1198 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i)); in TEST_F()
1242 AddMethod(&info, dex1, index, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1245 auto run_test = [&dex1 = dex1](const ProfileCompilationInfo& info) { in TEST_F()
1247 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, index)).IsInProfile()); in TEST_F()
1248 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, index)) in TEST_F()
1250 << info.GetMethodHotness(MethodReference(dex1, index)).GetFlags(); in TEST_F()
1272 AddMethod(&info, dex1, 0, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1275 auto run_test = [&dex1 = dex1](const ProfileCompilationInfo& info) { in TEST_F()
1277 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 0)).IsInProfile()); in TEST_F()
1278 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 0)) in TEST_F()
1303 AddMethod(&info1, dex1, 0, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1304 AddMethod(&info2, dex1, 1, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1311 AddMethod(&info2, dex1, 1, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1316 auto run_test = [&dex1 = dex1](const ProfileCompilationInfo& info) { in TEST_F()
1319 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 0)).IsInProfile()); in TEST_F()
1320 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 0)) in TEST_F()
1323 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)).IsInProfile()); in TEST_F()
1324 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)) in TEST_F()
1332 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 0)).IsInProfile()); in TEST_F()
1333 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 0)) in TEST_F()
1336 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)).IsInProfile()); in TEST_F()
1337 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)) in TEST_F()
1345 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 0)) in TEST_F()
1347 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 1)) in TEST_F()
1406 MethodReference hot(dex1, 0); in TEST_F()
1407 MethodReference startup(dex1, 2); in TEST_F()
1418 GetMethod(info, dex1, hot.index); in TEST_F()
1424 ASSERT_TRUE(GetMethod(info, dex1, startup.index) == nullptr); in TEST_F()
1431 MethodReference hot(dex1, 0); in TEST_F()
1432 MethodReference bad_ref(dex1, kMaxMethodIds); in TEST_F()
1446 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1449 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1452 auto run_test = [&dex1 = dex1, &psa1 = psa1, &psa2 = psa2](const ProfileCompilationInfo& info) { in TEST_F()
1455 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, i), psa1).IsInProfile()); in TEST_F()
1456 EXPECT_TRUE(info.GetHotMethodInfo(MethodReference(dex1, i), psa1) != nullptr); in TEST_F()
1459 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, i), psa2).IsInProfile()); in TEST_F()
1460 EXPECT_TRUE(info.GetHotMethodInfo(MethodReference(dex1, i), psa2) != nullptr); in TEST_F()
1464 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, i), psa1).IsInProfile()); in TEST_F()
1465 EXPECT_FALSE(info.GetHotMethodInfo(MethodReference(dex1, i), psa1) != nullptr); in TEST_F()
1468 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, i), psa2).IsInProfile()); in TEST_F()
1469 EXPECT_FALSE(info.GetHotMethodInfo(MethodReference(dex1, i), psa2) != nullptr); in TEST_F()
1473 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, i)).IsInProfile()); in TEST_F()
1474 EXPECT_TRUE(info.GetHotMethodInfo(MethodReference(dex1, i)) != nullptr); in TEST_F()
1478 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, i)).IsInProfile()); in TEST_F()
1479 EXPECT_FALSE(info.GetHotMethodInfo(MethodReference(dex1, i)) != nullptr); in TEST_F()
1483 MethodReference ref(dex1, 0); in TEST_F()
1514 ASSERT_TRUE(AddClass(&info, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1517 ASSERT_TRUE(AddClass(&info, dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1520 auto run_test = [&dex1 = dex1, &psa1 = psa1, &psa2 = psa2](const ProfileCompilationInfo& info) { in TEST_F()
1523 EXPECT_TRUE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1526 EXPECT_TRUE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1530 EXPECT_FALSE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1533 EXPECT_FALSE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1537 EXPECT_TRUE(info.ContainsClass(*dex1, dex::TypeIndex(i))); in TEST_F()
1541 EXPECT_FALSE(info.ContainsClass(*dex1, dex::TypeIndex(i))); in TEST_F()
1545 EXPECT_FALSE(info.ContainsClass(*dex1, dex::TypeIndex(0), ProfileSampleAnnotation("new_test"))); in TEST_F()
1574 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1575 ASSERT_TRUE(AddClass(&info1, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1578 ASSERT_TRUE(AddMethod(&info2, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1579 ASSERT_TRUE(AddMethod(&info2, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1581 ASSERT_TRUE(AddClass(&info2, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1582 ASSERT_TRUE(AddClass(&info2, dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1591 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, i), psa1).IsInProfile()); in TEST_F()
1592 EXPECT_TRUE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1595 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, i), psa2).IsInProfile()); in TEST_F()
1597 EXPECT_TRUE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1602 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, i), psa2).IsInProfile()); in TEST_F()
1604 EXPECT_FALSE(info.ContainsClass(*dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1621 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1622 ASSERT_TRUE(AddClass(&info, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1627 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1628 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa1)); in TEST_F()
1638 *dex1, &classes, &hot_methods, &startup_methods, &post_startup_methods, psa1)); in TEST_F()
1645 *dex1, in TEST_F()
1660 MethodReference ref(dex1, 0); in TEST_F()
1676 MethodReference ref(dex1, 0); in TEST_F()
1694 AddMethod(&info, dex1, /* method_idx= */ 0, Hotness::kFlagHot); in TEST_F()
1704 AddMethod(&info, dex1, /* method_idx= */ 0, Hotness::kFlagHot); in TEST_F()
1728 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1729 ASSERT_TRUE(AddClass(&info, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1730 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1731 ASSERT_TRUE(AddClass(&info, dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1738 dex_files.push_back(std::unique_ptr<const DexFile>(dex1)); in TEST_F()
1758 auto mIt1 = methods.find(MethodReference(dex1, i)); in TEST_F()
1763 auto cIt1 = classes.find(TypeReference(dex1, dex::TypeIndex(i))); in TEST_F()
1792 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1793 ASSERT_TRUE(AddClass(&info2, dex1, dex::TypeIndex(i), psa1)); in TEST_F()
1794 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1795 ASSERT_TRUE(AddClass(&info1, dex1, dex::TypeIndex(i), psa2)); in TEST_F()
1803 dex_files.push_back(std::unique_ptr<const DexFile>(dex1)); in TEST_F()
1824 auto mIt1 = methods.find(MethodReference(dex1, i)); in TEST_F()
1829 auto cIt1 = classes.find(TypeReference(dex1, dex::TypeIndex(i))); in TEST_F()