/art/compiler/ |
D | compiled_method.h | 167 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 …]
|
D | compiled_method.cc | 135 const ArrayRef<const LinkerPatch>& patches) in CompiledMethod() 182 const ArrayRef<const LinkerPatch>& patches) { in SwapAllocCompiledMethod()
|
D | oat_writer.cc | 444 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/ |
D | relative_patcher_x86_test.cc | 45 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 …]
|
D | relative_patcher_x86.h | 29 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
|
D | relative_patcher_x86.cc | 25 const LinkerPatch& patch, in PatchDexCacheReference()
|
/art/compiler/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 55 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 …]
|
D | relative_patcher_x86_64.h | 29 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
|
D | relative_patcher_x86_64.cc | 25 const LinkerPatch& patch, in PatchDexCacheReference()
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 42 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 …]
|
D | relative_patcher_thumb2.h | 31 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
|
D | relative_patcher_thumb2.cc | 58 const LinkerPatch& patch, in PatchDexCacheReference()
|
D | relative_patcher_arm_base.cc | 107 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpaceInternal()
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 55 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 …]
|
D | relative_patcher_arm64.cc | 62 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()
|
D | relative_patcher_arm64.h | 37 void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
|
/art/compiler/linker/ |
D | relative_patcher.h | 31 class LinkerPatch; variable 101 virtual void PatchDexCacheReference(std::vector<uint8_t>* code, const LinkerPatch& patch,
|
D | relative_patcher.cc | 57 const LinkerPatch& patch ATTRIBUTE_UNUSED, in Create()
|
D | relative_patcher_test.h | 72 const ArrayRef<const LinkerPatch>& patches) { in AddCompiledMethod() 131 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in Link()
|
/art/compiler/dex/quick/ |
D | codegen_util.cc | 502 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/ |
D | optimizing_compiler.cc | 437 ArrayRef<const LinkerPatch>()); in CompileOptimized() 474 ArrayRef<const LinkerPatch>()); in CompileBaseline()
|
/art/compiler/dex/quick/arm64/ |
D | target_arm64.cc | 856 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/ |
D | target_arm.cc | 913 patches_.push_back(LinkerPatch::RelativeCodePatch(p->offset, in InstallLiteralPools() 926 patches_.push_back(LinkerPatch::DexCacheArrayPatch(p->offset, in InstallLiteralPools()
|
/art/compiler/dex/quick/x86/ |
D | target_x86.cc | 1076 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/ |
D | jni_compiler.cc | 494 ArrayRef<const LinkerPatch>()); in ArtJniCompileMethodInternal()
|