/art/compiler/utils/ |
D | atomic_dex_ref_map_test.cc | 35 using Map = AtomicDexRefMap<MethodReference, int>; in TEST_F() 39 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 42 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F() 50 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 54 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F() 56 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 59 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F() 61 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 63 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value)); in TEST_F() 66 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue + 1) == in TEST_F() [all …]
|
D | atomic_dex_ref_map-inl.h | 36 static_assert(std::is_same<DexFileReferenceType, MethodReference>::value || in NumberOfDexIndices() 40 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() 184 std::vector<MethodReference>>& pair : method_locations_) { in Dump() 200 std::vector<MethodReference>>& pair : field_locations_) { in Dump() 240 const std::vector<MethodReference>& references) { in DumpReferences() 245 for (const MethodReference& ref : references) { in DumpReferences()
|
/art/libdexfile/dex/ |
D | method_reference.h | 29 class MethodReference : public DexFileReference { 31 MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} in MethodReference() function 45 bool operator()(MethodReference mr1, MethodReference mr2) const { in operator() 54 bool SlowCompare(MethodReference mr1, MethodReference mr2) const { in SlowCompare()
|
/art/dex2oat/dex/ |
D | verification_results.h | 43 void AddUncompilableMethod(MethodReference ref) REQUIRES(!uncompilable_methods_lock_); 44 bool IsUncompilableMethod(MethodReference ref) const REQUIRES(!uncompilable_methods_lock_); 49 std::set<MethodReference> uncompilable_methods_ GUARDED_BY(uncompilable_methods_lock_);
|
D | verification_results.cc | 51 void VerificationResults::AddUncompilableMethod(MethodReference ref) { in AddUncompilableMethod() 65 MethodReference method_ref(&dex_file, method.GetIndex()); in AddUncompilableClass() 70 bool VerificationResults::IsUncompilableMethod(MethodReference ref) const { in IsUncompilableMethod()
|
D | quick_compiler_callbacks.cc | 25 void QuickCompilerCallbacks::AddUncompilableMethod(MethodReference ref) { in AddUncompilableMethod()
|
/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_;
|
D | relative_patcher_arm_base.cc | 170 MethodReference method_ref) { in ReserveSpace() 180 ResolveMethodCalls(offset, MethodReference(nullptr, dex::kDexNoIndex)); in ReserveSpaceEnd() 293 MethodReference method_ref, in ReserveSpaceInternal() 479 MethodReference method_ref) { in ResolveMethodCalls() 487 MethodReference target_method = unprocessed_method_call_patches_.front().GetTargetMethod(); in ResolveMethodCalls()
|
/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_test.h | 98 MethodReference MethodRef(uint32_t method_idx) { in MethodRef() 100 return MethodReference(nullptr, method_idx); in MethodRef() 104 MethodReference method_ref, 227 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod() 381 std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) override { in FindMethodOffset() 389 SafeMap<MethodReference, uint32_t> map; 405 std::vector<MethodReference> compiled_method_refs_;
|
D | relative_patcher.h | 81 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0; 116 MethodReference method_ref) = 0;
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 72 return info.GetMethodHotness(MethodReference(dex, method_idx), annotation); in GetMethod() 821 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 2)).IsInProfile()); in TEST_F() 822 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 4)).IsInProfile()); in TEST_F() 823 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 1)).IsStartup()); in TEST_F() 824 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 3)).IsStartup()); in TEST_F() 825 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex1, 5)).IsPostStartup()); in TEST_F() 826 EXPECT_FALSE(info.GetMethodHotness(MethodReference(dex1, 6)).IsStartup()); in TEST_F() 827 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex2, 2)).IsStartup()); in TEST_F() 828 EXPECT_TRUE(info.GetMethodHotness(MethodReference(dex2, 4)).IsPostStartup()); in TEST_F() 843 EXPECT_FALSE(test_info.GetMethodHotness(MethodReference(dex1, 11)).IsStartup()); in TEST_F() [all …]
|
/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/runtime/jit/ |
D | profiling_info_test.cc | 81 MethodReference(method->GetDexFile(), method->GetDexMethodIndex())); in SaveProfilingInfo() 140 ProfileMethodInfo pmi(MethodReference(method->GetDexFile(), in SaveProfilingInfoWithFakeInlineCaches() 202 Hotness h = info1.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 222 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 227 Hotness h = info2.GetMethodHotness(MethodReference(m->GetDexFile(), m->GetDexMethodIndex())); in TEST_F() 262 MethodReference method_ref(m->GetDexFile(), m->GetDexMethodIndex()); in TEST_F()
|
/art/runtime/ |
D | noop_compiler_callbacks.h | 30 void AddUncompilableMethod([[maybe_unused]] MethodReference ref) override {} in AddUncompilableMethod()
|
D | compiler_callbacks.h | 51 virtual void AddUncompilableMethod(MethodReference ref) = 0;
|
/art/dex2oat/driver/ |
D | compiler_driver.h | 138 CompiledMethod* GetCompiledMethod(MethodReference ref) const; 140 void AddCompiledMethod(const MethodReference& method_ref, CompiledMethod* const compiled_method); 141 CompiledMethod* RemoveCompiledMethod(const MethodReference& method_ref); 306 using MethodTable = AtomicDexRefMap<MethodReference, CompiledMethod*>;
|
/art/dex2oat/linker/x86/ |
D | relative_patcher_x86_base.h | 29 MethodReference method_ref) override;
|
D | relative_patcher_x86_base.cc | 27 [[maybe_unused]] MethodReference method_ref) { in ReserveSpace()
|
/art/compiler/optimizing/ |
D | intrinsics.cc | 240 MethodReference target_method(nullptr, 0); in InsertFpToIntegralIntrinsic() 244 MethodReference(resolved_method->GetDexFile(), resolved_method->GetDexMethodIndex()); in InsertFpToIntegralIntrinsic() 259 /*method_reference=*/ MethodReference(nullptr, dex::kDexNoIndex), in InsertFpToIntegralIntrinsic()
|