Home
last modified time | relevance | path

Searched refs:MethodReference (Results 1 – 25 of 75) sorted by relevance

123

/art/compiler/utils/
Datomic_dex_ref_map_test.cc35 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 …]
Datomic_dex_ref_map-inl.h36 static_assert(std::is_same<DexFileReferenceType, MethodReference>::value || in NumberOfDexIndices()
40 if (std::is_same<DexFileReferenceType, MethodReference>::value) { in NumberOfDexIndices()
/art/tools/veridex/
Dhidden_api_finder.h50 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_;
Dprecise_hidden_api_finder.h57 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_;
Dprecise_hidden_api_finder.cc52 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()
Dhidden_api_finder.cc34 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/
Dmethod_reference.h29 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/
Dverification_results.h43 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_);
Dverification_results.cc51 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()
Dquick_compiler_callbacks.cc25 void QuickCompilerCallbacks::AddUncompilableMethod(MethodReference ref) { in AddUncompilableMethod()
/art/dex2oat/linker/arm/
Drelative_patcher_arm_base.h34 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_;
Drelative_patcher_arm_base.cc170 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/
Dmulti_oat_relative_patcher.h40 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;
Dmulti_oat_relative_patcher_test.cc28 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()
Drelative_patcher_test.h98 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_;
Drelative_patcher.h81 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0;
116 MethodReference method_ref) = 0;
/art/libprofile/profile/
Dprofile_compilation_info_test.cc72 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/
Dmethod_verifier-inl.h33 inline MethodReference MethodVerifier::GetMethodReference() const { in GetMethodReference()
34 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
/art/runtime/jit/
Dprofiling_info_test.cc81 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/
Dnoop_compiler_callbacks.h30 void AddUncompilableMethod([[maybe_unused]] MethodReference ref) override {} in AddUncompilableMethod()
Dcompiler_callbacks.h51 virtual void AddUncompilableMethod(MethodReference ref) = 0;
/art/dex2oat/driver/
Dcompiler_driver.h138 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/
Drelative_patcher_x86_base.h29 MethodReference method_ref) override;
Drelative_patcher_x86_base.cc27 [[maybe_unused]] MethodReference method_ref) { in ReserveSpace()
/art/compiler/optimizing/
Dintrinsics.cc240 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()

123