Home
last modified time | relevance | path

Searched refs:LinkerPatch (Results 1 – 25 of 27) sorted by relevance

12

/art/compiler/
Dcompiled_method.h167 class LinkerPatch {
169 static LinkerPatch MethodPatch(size_t literal_offset, in MethodPatch()
172 LinkerPatch patch(literal_offset, kLinkerPatchMethod, target_dex_file); in MethodPatch()
177 static LinkerPatch CodePatch(size_t literal_offset, in CodePatch()
180 LinkerPatch patch(literal_offset, kLinkerPatchCall, target_dex_file); in CodePatch()
185 static LinkerPatch RelativeCodePatch(size_t literal_offset, in RelativeCodePatch()
188 LinkerPatch patch(literal_offset, kLinkerPatchCallRelative, target_dex_file); in RelativeCodePatch()
193 static LinkerPatch TypePatch(size_t literal_offset, in TypePatch()
196 LinkerPatch patch(literal_offset, kLinkerPatchType, target_dex_file); in TypePatch()
201 static LinkerPatch DexCacheArrayPatch(size_t literal_offset, in DexCacheArrayPatch()
[all …]
Dcompiled_method.cc135 const ArrayRef<const LinkerPatch>& patches) in CompiledMethod()
182 const ArrayRef<const LinkerPatch>& patches) { in SwapAllocCompiledMethod()
Doat_writer.cc444 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in VisitMethod()
523 for (const LinkerPatch& lpatch : lhs_patches) { in operator ()()
735 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in VisitMethod()
791 ArtMethod* GetTargetMethod(const LinkerPatch& patch) in GetTargetMethod()
802 uint32_t GetTargetOffset(const LinkerPatch& patch) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetTargetOffset()
826 mirror::Class* GetTargetType(const LinkerPatch& patch) in GetTargetType()
835 uint32_t GetDexCacheOffset(const LinkerPatch& patch) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetDexCacheOffset()
/art/compiler/linker/x86/
Drelative_patcher_x86_test.cc45 LinkerPatch patches[] = { in TEST_F()
46 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), in TEST_F()
48 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
58 LinkerPatch method1_patches[] = { in TEST_F()
59 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 2u), in TEST_F()
61 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
62 LinkerPatch method2_patches[] = { in TEST_F()
63 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), in TEST_F()
65 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
87 LinkerPatch patches[] = { in TEST_F()
[all …]
Drelative_patcher_x86.h29 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
Drelative_patcher_x86.cc25 const LinkerPatch& patch, in PatchDexCacheReference()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64_test.cc55 LinkerPatch patches[] = { in TEST_F()
56 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), in TEST_F()
58 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
68 LinkerPatch method1_patches[] = { in TEST_F()
69 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 2u), in TEST_F()
71 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
72 LinkerPatch method2_patches[] = { in TEST_F()
73 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), in TEST_F()
75 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
97 LinkerPatch patches[] = { in TEST_F()
[all …]
Drelative_patcher_x86_64.h29 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
Drelative_patcher_x86_64.cc25 const LinkerPatch& patch, in PatchDexCacheReference()
/art/compiler/linker/arm/
Drelative_patcher_thumb2_test.cc42 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
44 const ArrayRef<const LinkerPatch>& method3_patches, in Create2MethodsWithGap()
62 AddCompiledMethod(MethodRef(2u), method2_code, ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
134 LinkerPatch patches[] = { in TestDexCachereference()
135 LinkerPatch::DexCacheArrayPatch(0u, nullptr, pc_insn_offset, element_offset), in TestDexCachereference()
136 LinkerPatch::DexCacheArrayPatch(4u, nullptr, pc_insn_offset, element_offset), in TestDexCachereference()
138 AddCompiledMethod(MethodRef(1u), code, ArrayRef<const LinkerPatch>(patches)); in TestDexCachereference()
181 LinkerPatch patches[] = { in TEST_F()
182 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u), in TEST_F()
184 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
[all …]
Drelative_patcher_thumb2.h31 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
Drelative_patcher_thumb2.cc58 const LinkerPatch& patch, in PatchDexCacheReference()
Drelative_patcher_arm_base.cc107 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpaceInternal()
/art/compiler/linker/arm64/
Drelative_patcher_arm64_test.cc55 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
57 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
82 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
88 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
182 LinkerPatch patches[] = { in TestNopsAdrpLdr()
183 LinkerPatch::DexCacheArrayPatch(num_nops * 4u , nullptr, num_nops * 4u, element_offset), in TestNopsAdrpLdr()
184 LinkerPatch::DexCacheArrayPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, element_offset), in TestNopsAdrpLdr()
187 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
211 LinkerPatch patches[] = { in PrepareNopsAdrpInsn2Ldr()
212 LinkerPatch::DexCacheArrayPatch(num_nops * 4u , nullptr, num_nops * 4u, element_offset), in PrepareNopsAdrpInsn2Ldr()
[all …]
Drelative_patcher_arm64.cc62 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpace()
79 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpace()
152 const LinkerPatch& patch, in PatchDexCacheReference()
Drelative_patcher_arm64.h37 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
/art/compiler/linker/
Drelative_patcher.h31 class LinkerPatch; variable
101 virtual void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
Drelative_patcher.cc57 const LinkerPatch& patch ATTRIBUTE_UNUSED, in Create()
Drelative_patcher_test.h72 const ArrayRef<const LinkerPatch>& patches) { in AddCompiledMethod()
131 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in Link()
/art/compiler/dex/quick/
Dcodegen_util.cc502 patches_.push_back(LinkerPatch::CodePatch(code_buffer_.size(), in InstallLiteralPools()
511 patches_.push_back(LinkerPatch::MethodPatch(code_buffer_.size(), in InstallLiteralPools()
521 patches_.push_back(LinkerPatch::TypePatch(code_buffer_.size(), in InstallLiteralPools()
1156 std::sort(patches_.begin(), patches_.end(), [](const LinkerPatch& lhs, const LinkerPatch& rhs) { in GetCompiledMethod()
1169 ArrayRef<const LinkerPatch>(patches_)); in GetCompiledMethod()
/art/compiler/optimizing/
Doptimizing_compiler.cc437 ArrayRef<const LinkerPatch>()); in CompileOptimized()
474 ArrayRef<const LinkerPatch>()); in CompileBaseline()
/art/compiler/dex/quick/arm64/
Dtarget_arm64.cc856 patches_.push_back(LinkerPatch::RelativeCodePatch(p->offset, in InstallLiteralPools()
870 patches_.push_back(LinkerPatch::DexCacheArrayPatch(p->offset, dex_file, adrp->offset, offset)); in InstallLiteralPools()
/art/compiler/dex/quick/arm/
Dtarget_arm.cc913 patches_.push_back(LinkerPatch::RelativeCodePatch(p->offset, in InstallLiteralPools()
926 patches_.push_back(LinkerPatch::DexCacheArrayPatch(p->offset, in InstallLiteralPools()
/art/compiler/dex/quick/x86/
Dtarget_x86.cc1076 patches_.push_back(LinkerPatch::MethodPatch(patch_offset, in InstallLiteralPools()
1089 patches_.push_back(LinkerPatch::TypePatch(patch_offset, in InstallLiteralPools()
1101 patches_.push_back(LinkerPatch::RelativeCodePatch(patch_offset, in InstallLiteralPools()
1113 patches_.push_back(LinkerPatch::DexCacheArrayPatch(patch_offset, dex_file, in InstallLiteralPools()
/art/compiler/jni/quick/
Djni_compiler.cc494 ArrayRef<const LinkerPatch>()); in ArtJniCompileMethodInternal()

12