/art/compiler/utils/ |
D | atomic_dex_ref_map_test.cc | 34 using Map = AtomicDexRefMap<MethodReference, int>; in TEST_F() 38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 41 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F() 49 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 53 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F() 55 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 58 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F() 60 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 62 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value)); in TEST_F() 65 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue + 1) == in TEST_F() [all …]
|
D | atomic_dex_ref_map-inl.h | 35 static_assert(std::is_same<DexFileReferenceType, MethodReference>::value || in NumberOfDexIndices() 39 if (std::is_same<DexFileReferenceType, MethodReference>::value) { in NumberOfDexIndices()
|
/art/tools/veridex/ |
D | hidden_api_finder.h | 50 void CheckMethod(uint32_t method_idx, VeridexResolver* resolver, MethodReference ref); 51 void CheckField(uint32_t field_idx, VeridexResolver* resolver, MethodReference ref); 52 void DumpReferences(std::ostream& os, const std::vector<MethodReference>& references); 57 std::map<std::string, std::vector<MethodReference>> reflection_locations_; 58 std::map<std::string, std::vector<MethodReference>> method_locations_; 59 std::map<std::string, std::vector<MethodReference>> field_locations_;
|
D | precise_hidden_api_finder.h | 57 void AddUsesAt(const std::vector<ReflectAccessInfo>& accesses, MethodReference ref); 61 std::map<MethodReference, std::vector<ReflectAccessInfo>> concrete_uses_; 62 std::map<MethodReference, std::vector<ReflectAccessInfo>> abstract_uses_;
|
D | precise_hidden_api_finder.cc | 52 MethodReference ref) { in AddUsesAt() 80 std::map<MethodReference, std::vector<ReflectAccessInfo>> current_uses in Run() 95 std::map<std::string, std::vector<MethodReference>> named_uses; in Dump() 97 MethodReference ref = it.first; in Dump() 115 for (const MethodReference& ref : it.second) { in Dump()
|
D | hidden_api_finder.cc | 34 MethodReference ref) { in CheckMethod() 43 MethodReference ref) { in CheckField() 177 std::vector<MethodReference>>& pair : method_locations_) { in Dump() 193 std::vector<MethodReference>>& pair : field_locations_) { in Dump() 233 const std::vector<MethodReference>& references) { in DumpReferences() 238 for (const MethodReference& ref : references) { in DumpReferences()
|
/art/compiler/dex/ |
D | verification_results.h | 51 void CreateVerifiedMethodFor(MethodReference ref) 54 const VerifiedMethod* GetVerifiedMethod(MethodReference ref) const 60 bool IsCandidateForCompilation(MethodReference& method_ref, const uint32_t access_flags) const; 67 using AtomicMap = AtomicDexRefMap<MethodReference, const VerifiedMethod*>; 68 using VerifiedMethodMap = SafeMap<MethodReference, const VerifiedMethod*>;
|
D | inline_method_analyser.h | 123 static bool IsSyntheticAccessor(MethodReference ref); 127 const MethodReference& method_ref, 135 const MethodReference& method_ref, 141 const MethodReference& method_ref,
|
D | verification_results.cc | 49 MethodReference ref = method_verifier->GetMethodReference(); in ProcessVerifiedMethod() 99 const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) const { in GetVerifiedMethod() 109 void VerificationResults::CreateVerifiedMethodFor(MethodReference ref) { in CreateVerifiedMethodFor() 136 bool VerificationResults::IsCandidateForCompilation(MethodReference&, in IsCandidateForCompilation() argument 156 MethodReference ref = it->first; in AddDexFile()
|
/art/libdexfile/dex/ |
D | method_reference.h | 28 class MethodReference : public DexFileReference { 30 MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} in MethodReference() function 41 bool operator()(MethodReference mr1, MethodReference mr2) const { in operator() 50 bool SlowCompare(MethodReference mr1, MethodReference mr2) const { in SlowCompare()
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_arm_base.h | 34 MethodReference method_ref) override; 93 MethodReference method_ref, 109 void ResolveMethodCalls(uint32_t quick_code_offset, MethodReference method_ref); 126 UnprocessedMethodCallPatch(uint32_t patch_offset, MethodReference target_method) in UnprocessedMethodCallPatch() 133 MethodReference GetTargetMethod() const { in GetTargetMethod() 139 MethodReference target_method_;
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 77 return info->AddMethod(ProfileMethodInfo(MethodReference(dex, method_idx)), in AddMethod() 88 ProfileMethodInfo(MethodReference(dex, method_idx), inline_caches), in AddMethod() 110 return info.GetHotMethodInfo(MethodReference(dex, method_idx), annotation); in GetMethod() 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() 783 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex2, 2)).IsStartup()); in TEST_F() [all …]
|
D | profile_compilation_info.h | 55 explicit ProfileMethodInfo(MethodReference reference) : ref(reference) {} in ProfileMethodInfo() 57 ProfileMethodInfo(MethodReference reference, const std::vector<ProfileInlineCache>& caches) in ProfileMethodInfo() 61 MethodReference ref; 452 const MethodReference& method_ref, 470 const MethodReference& method_ref, 1017 const SafeMap<MethodReference, ItemMetadata>& GetMethodData() const { in GetMethodData() 1037 SafeMap<MethodReference, ItemMetadata> method_metadata_;
|
/art/dex2oat/linker/ |
D | multi_oat_relative_patcher.h | 40 using const_iterator = SafeMap<MethodReference, uint32_t>::const_iterator; 59 uint32_t GetOffset(MethodReference method_ref) { in GetOffset() 65 void SetOffset(MethodReference method_ref, uint32_t offset) { in SetOffset() 72 MethodReference method_ref) { in ReserveSpace() 159 std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) override; 160 SafeMap<MethodReference, uint32_t> map;
|
D | multi_oat_relative_patcher_test.cc | 28 static const MethodReference kNullMethodRef = MethodReference(nullptr, 0u); 38 MethodReference method_ref) override { in ReserveSpace() 116 MethodReference last_reserve_method_ = kNullMethodRef; 144 MethodReference ref1(dex_file, 1u); in TEST_F() 145 MethodReference ref2(dex_file, 2u); in TEST_F() 177 MethodReference ref1(dex_file, 1u); in TEST_F() 178 MethodReference ref2(dex_file, 2u); in TEST_F() 179 MethodReference ref3(dex_file, 3u); in TEST_F()
|
D | relative_patcher.h | 81 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0; 116 MethodReference method_ref) = 0;
|
D | relative_patcher_test.h | 96 MethodReference MethodRef(uint32_t method_idx) { in MethodRef() 98 return MethodReference(nullptr, method_idx); in MethodRef() 102 MethodReference method_ref, 216 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() 370 std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) override { in FindMethodOffset() 378 SafeMap<MethodReference, uint32_t> map; 393 std::vector<MethodReference> compiled_method_refs_;
|
D | multi_oat_relative_patcher.cc | 77 MethodReference ref) { in FindMethodOffset()
|
/art/runtime/verifier/ |
D | method_verifier-inl.h | 33 inline MethodReference MethodVerifier::GetMethodReference() const { in GetMethodReference() 34 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
|
/art/dex2oat/dex/ |
D | dex_to_dex_compiler.h | 67 const MethodReference& method_ref); 79 bool ShouldCompileMethod(const MethodReference& ref); 92 std::vector<MethodReference> methods_;
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 77 MethodReference(method->GetDexFile(), method->GetDexMethodIndex())); in SaveProfilingInfo() 136 ProfileMethodInfo pmi(MethodReference(method->GetDexFile(), in SaveProfilingInfoWithFakeInlineCaches() 224 Hotness h = info1.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 245 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 250 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 285 MethodReference method_ref(m->GetDexFile(), m->GetDexMethodIndex()); in TEST_F()
|
/art/dex2oat/driver/ |
D | compiler_driver.h | 136 CompiledMethod* GetCompiledMethod(MethodReference ref) const; 138 void AddCompiledMethod(const MethodReference& method_ref, CompiledMethod* const compiled_method); 139 CompiledMethod* RemoveCompiledMethod(const MethodReference& method_ref); 202 bool ShouldCompileBasedOnProfile(const MethodReference& method_ref) const; 318 typedef AtomicDexRefMap<MethodReference, CompiledMethod*> MethodTable;
|
/art/dex2oat/linker/x86/ |
D | relative_patcher_x86_base.h | 29 MethodReference method_ref) override;
|
D | relative_patcher_x86_base.cc | 27 MethodReference method_ref ATTRIBUTE_UNUSED) { in ReserveSpace()
|
/art/test/595-profile-saving/ |
D | profile-saving.cc | 62 MethodReference(art_method->GetDexFile(), in Java_Main_presentInProfile()
|