Lines Matching refs:AddMethod
72 bool AddMethod(ProfileCompilationInfo* info, in AddMethod() function in art::ProfileCompilationInfoTest
77 return info->AddMethod(ProfileMethodInfo(MethodReference(dex, method_idx)), in AddMethod()
82 bool AddMethod(ProfileCompilationInfo* info, in AddMethod() function in art::ProfileCompilationInfoTest
87 return info->AddMethod( in AddMethod()
183 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TestProfileLoadFromZip()
184 ASSERT_TRUE(AddMethod(&saved_info, dex2, /* method_idx= */ i)); in TestProfileLoadFromZip()
240 ASSERT_TRUE(AddMethod( in SizeStressTest()
249 ASSERT_TRUE(AddMethod( in SizeStressTest()
305 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TEST_F()
306 ASSERT_TRUE(AddMethod(&saved_info, dex2, /* method_idx= */ i)); in TEST_F()
319 ASSERT_TRUE(AddMethod(&saved_info, dex1, /* method_idx= */ i)); in TEST_F()
320 ASSERT_TRUE(AddMethod(&saved_info, dex2, /* method_idx= */ i)); in TEST_F()
321 ASSERT_TRUE(AddMethod(&saved_info, dex3, /* method_idx= */ i)); in TEST_F()
338 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ 1)); in TEST_F()
340 ASSERT_FALSE(AddMethod(&info, dex1_checksum_missmatch, /* method_idx= */ 2)); in TEST_F()
347 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ 1)); in TEST_F()
350 ASSERT_TRUE(AddMethod(&info2, dex1_checksum_missmatch, /* method_idx= */ 2)); in TEST_F()
360 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ 1)); in TEST_F()
363 ASSERT_TRUE(AddMethod(&info2, dex1_checksum_missmatch, /* method_idx= */ 2)); in TEST_F()
378 ASSERT_TRUE(AddMethod(&saved_info, dex_max_methods1, /* method_idx= */ i)); in TEST_F()
379 ASSERT_TRUE(AddMethod(&saved_info, dex_max_methods2, /* method_idx= */ 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()
514 ASSERT_TRUE(AddMethod(&saved_info, dex4, method_idx, inline_caches)); 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()
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()
639 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ 0, inline_caches1)); in TEST_F()
640 ASSERT_FALSE(AddMethod(&info, dex2, /* method_idx= */ 0, inline_caches2)); in TEST_F()
669 ASSERT_TRUE(AddMethod(&info, dex1, method_idx, inline_caches)); in TEST_F()
670 ASSERT_TRUE(AddMethod(&info, dex2, method_idx, inline_caches)); in TEST_F()
674 ASSERT_TRUE(AddMethod(&info_reindexed, dex2, method_idx, inline_caches_reindexed)); in TEST_F()
675 ASSERT_TRUE(AddMethod(&info_reindexed, dex1, method_idx, inline_caches_reindexed)); in TEST_F()
703 ASSERT_TRUE(AddMethod(&info, dex, /* method_idx= */ 0)); in TEST_F()
707 ASSERT_FALSE(AddMethod(&info, dex, /* method_idx= */ 0)); in TEST_F()
718 ASSERT_TRUE(AddMethod(&info, dex, /* method_idx= */ 0)); in TEST_F()
722 ASSERT_FALSE(AddMethod(&info, dex, /* method_idx= */ 0)); 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()
774 AddMethod(&test_info, dex2, 2, Hotness::kFlagStartup); in TEST_F()
775 AddMethod(&test_info, dex2, 4, Hotness::kFlagPostStartup); in TEST_F()
803 AddMethod(&merge_info, dex1, 11, Hotness::kFlagStartup); in TEST_F()
914 AddMethod(&info, dex1, /* method_idx= */ 0); in TEST_F()
915 AddMethod(&info, dex2, /* method_idx= */ 0); in TEST_F()
938 AddMethod(&info, dex2, /* method_idx= */ 0); in TEST_F()
967 AddMethod(&info, dex1, /* method_idx= */ 0); in TEST_F()
971 AddMethod(&info, dex1_renamed, /* method_idx= */ 0); in TEST_F()
990 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
991 ASSERT_TRUE(AddMethod(&saved_info, dex2, method_idx, inline_caches)); in TEST_F()
993 ASSERT_TRUE(AddMethod(&saved_info, dex4, method_idx, inline_caches)); in TEST_F()
1082 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
1083 ASSERT_TRUE(AddMethod(&saved_info, dex2, method_idx, inline_caches)); in TEST_F()
1085 ASSERT_TRUE(AddMethod(&saved_info, dex4, method_idx, inline_caches)); in TEST_F()
1114 ASSERT_TRUE(AddMethod(&saved_info, dex1, method_idx, inline_caches)); in TEST_F()
1116 ASSERT_TRUE(AddMethod(&saved_info, dex4, method_idx, inline_caches)); 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()
1272 AddMethod(&info, dex1, 0, static_cast<Hotness::Flag>(1 << index)); 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()
1385 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(hot), Hotness::kFlagHot)); in TEST_F()
1386 ASSERT_TRUE(info.AddMethod( in TEST_F()
1389 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(startup), Hotness::kFlagStartup)); in TEST_F()
1413 info.AddMethod(ProfileMethodInfo(hot, inline_caches), Hotness::kFlagHot); in TEST_F()
1414 info.AddMethod(ProfileMethodInfo(startup, inline_caches), Hotness::kFlagStartup); 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()
1574 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, 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()
1580 ASSERT_TRUE(AddMethod(&info2, dex2, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1621 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, 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()
1663 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref), Hotness::kFlagHot, psa1)); in TEST_F()
1665 ASSERT_FALSE(info.AddMethod(ProfileMethodInfo(ref_checksum_missmatch), Hotness::kFlagHot, psa1)); in TEST_F()
1667 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref_checksum_missmatch), Hotness::kFlagHot, psa2)); in TEST_F()
1679 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref), Hotness::kFlagHot, psa1)); 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()
1730 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1732 ASSERT_TRUE(AddMethod(&info, dex2, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1734 ASSERT_TRUE(AddMethod(&info, dex3, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1792 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1794 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1796 ASSERT_TRUE(AddMethod(i % 2 == 0 ? &info1 : &info2, dex2, in TEST_F()