Home
last modified time | relevance | path

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

123

/art/compiler/utils/
Datomic_method_ref_map_test.cc38 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()
46 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
50 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F()
52 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
55 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F()
57 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
59 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value)); in TEST_F()
62 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue + 1) == in TEST_F()
65 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), kInsertValue, kInsertValue + 1) == in TEST_F()
[all …]
Datomic_method_ref_map-inl.h28 MethodReference ref, in Insert()
42 inline bool AtomicMethodRefMap<T>::Get(MethodReference ref, T* out) const { in Get()
76 visitor(MethodReference(dex_file, i), elements[i].LoadRelaxed()); in Visit()
Datomic_method_ref_map.h41 InsertResult Insert(MethodReference ref, const T& expected, const T& desired);
44 bool Get(MethodReference ref, T* out) const;
/art/runtime/
Dmethod_reference.h27 struct MethodReference { struct
28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { in MethodReference() function
38 bool operator()(MethodReference mr1, MethodReference mr2) const { in operator() argument
/art/compiler/dex/
Dverification_results.h51 void CreateVerifiedMethodFor(MethodReference ref)
54 const VerifiedMethod* GetVerifiedMethod(MethodReference ref)
60 bool IsCandidateForCompilation(MethodReference& method_ref, const uint32_t access_flags);
68 using VerifiedMethodMap = SafeMap<MethodReference,
Dverification_results.cc40 atomic_verified_methods_.Visit([](const MethodReference& ref ATTRIBUTE_UNUSED, in ~VerificationResults()
48 MethodReference ref = method_verifier->GetMethodReference(); in ProcessVerifiedMethod()
93 const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) { in GetVerifiedMethod()
103 void VerificationResults::CreateVerifiedMethodFor(MethodReference ref) { in CreateVerifiedMethodFor()
128 bool VerificationResults::IsCandidateForCompilation(MethodReference&, in IsCandidateForCompilation() argument
148 MethodReference ref = it->first; in AddDexFile()
Dinline_method_analyser.h121 static bool IsSyntheticAccessor(MethodReference ref);
125 const MethodReference& method_ref,
133 const MethodReference& method_ref,
139 const MethodReference& method_ref,
Ddex_to_dex_decompiler_test.cc100 compiler_driver_->GetCompiledMethod(MethodReference(updated_dex_file, method_idx)); in RunTest()
112 compiler_driver_->GetCompiledMethod(MethodReference(updated_dex_file, method_idx)); in RunTest()
/art/compiler/linker/
Dmulti_oat_relative_patcher.h40 SafeMap<MethodReference, uint32_t, MethodReferenceComparator>::const_iterator;
57 uint32_t GetOffset(MethodReference method_ref) { in GetOffset()
63 void SetOffset(MethodReference method_ref, uint32_t offset) { in SetOffset()
70 MethodReference method_ref) { in ReserveSpace()
132 std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) OVERRIDE;
133 SafeMap<MethodReference, uint32_t, MethodReferenceComparator> map;
Dmulti_oat_relative_patcher_test.cc25 static const MethodReference kNullMethodRef = MethodReference(nullptr, 0u);
27 static bool EqualRef(MethodReference lhs, MethodReference rhs) { in EqualRef()
39 MethodReference method_ref) OVERRIDE { in ReserveSpace()
105 MethodReference last_reserve_method_ = kNullMethodRef;
133 MethodReference ref1(dex_file, 1u); in TEST_F()
134 MethodReference ref2(dex_file, 2u); in TEST_F()
166 MethodReference ref1(dex_file, 1u); in TEST_F()
167 MethodReference ref2(dex_file, 2u); in TEST_F()
168 MethodReference ref3(dex_file, 3u); in TEST_F()
Drelative_patcher_test.h74 MethodReference MethodRef(uint32_t method_idx) { in MethodRef()
76 return MethodReference(nullptr, method_idx); in MethodRef()
80 MethodReference method_ref,
191 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { in CheckLinkedMethod()
257 std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) OVERRIDE { in FindMethodOffset()
265 SafeMap<MethodReference, uint32_t, MethodReferenceComparator> map;
281 std::vector<MethodReference> compiled_method_refs_;
Drelative_patcher.h55 virtual std::pair<bool, uint32_t> FindMethodOffset(MethodReference ref) = 0;
88 MethodReference method_ref) = 0;
Dmulti_oat_relative_patcher.cc63 MethodReference ref) { in FindMethodOffset()
Drelative_patcher.cc52 MethodReference method_ref ATTRIBUTE_UNUSED) OVERRIDE { in Create()
/art/compiler/linker/arm/
Drelative_patcher_arm_base.h34 MethodReference method_ref) OVERRIDE;
115 MethodReference method_ref,
133 void ResolveMethodCalls(uint32_t quick_code_offset, MethodReference method_ref);
148 UnprocessedMethodCallPatch(uint32_t patch_offset, MethodReference target_method) in UnprocessedMethodCallPatch()
155 MethodReference GetTargetMethod() const { in GetTargetMethod()
161 MethodReference target_method_;
Drelative_patcher_arm_base.cc141 MethodReference method_ref) { in ReserveSpace()
151 ResolveMethodCalls(offset, MethodReference(nullptr, DexFile::kDexNoIndex)); in ReserveSpaceEnd()
221 MethodReference method_ref, in ReserveSpaceInternal()
384 MethodReference method_ref) { in ResolveMethodCalls()
392 MethodReference target_method = unprocessed_method_call_patches_.front().GetTargetMethod(); in ResolveMethodCalls()
/art/runtime/verifier/
Dmethod_verifier-inl.h57 inline MethodReference MethodVerifier::GetMethodReference() const { in GetMethodReference()
58 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
/art/compiler/linker/x86/
Drelative_patcher_x86_base.h29 MethodReference method_ref) OVERRIDE;
Drelative_patcher_x86_base.cc25 MethodReference method_ref ATTRIBUTE_UNUSED) { in ReserveSpace()
/art/runtime/jit/
Dprofile_saver.cc186 GetMethodsVisitor(std::vector<MethodReference>* methods, uint32_t startup_method_samples) in GetMethodsVisitor()
203 methods_->push_back(MethodReference(dex_file, method.GetDexMethodIndex())); in operator ()()
211 std::vector<MethodReference>* const methods_;
222 std::vector<MethodReference> methods; in FetchAndCacheResolvedClassesAndMethods()
249 for (const MethodReference& ref : methods) { in FetchAndCacheResolvedClassesAndMethods()
605 return info.ContainsMethod(MethodReference(dex_file, method_idx)); in HasSeenMethod()
/art/compiler/linker/mips64/
Drelative_patcher_mips64.h31 MethodReference method_ref) OVERRIDE;
Drelative_patcher_mips64.cc27 MethodReference method_ref ATTRIBUTE_UNUSED) { in ReserveSpace()
/art/compiler/linker/mips/
Drelative_patcher_mips.h33 MethodReference method_ref) OVERRIDE;
Drelative_patcher_mips.cc27 MethodReference method_ref ATTRIBUTE_UNUSED) { in ReserveSpace()
/art/compiler/driver/
Dcompiler_driver.h170 CompiledMethod* GetCompiledMethod(MethodReference ref) const;
173 void AddCompiledMethod(const MethodReference& method_ref,
304 bool IsMethodToCompile(const MethodReference& method_ref) const;
308 bool ShouldCompileBasedOnProfile(const MethodReference& method_ref) const;
349 void MarkForDexToDexCompilation(Thread* self, const MethodReference& method_ref)

123