Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 40) sorted by relevance

12

/art/compiler/linker/
Dlinker_patch.h61 LinkerPatch patch(literal_offset, Type::kIntrinsicReference, /* target_dex_file= */ nullptr); in IntrinsicReferencePatch()
62 patch.intrinsic_data_ = intrinsic_data; in IntrinsicReferencePatch()
63 patch.pc_insn_offset_ = pc_insn_offset; in IntrinsicReferencePatch()
64 return patch; in IntrinsicReferencePatch()
70 LinkerPatch patch(literal_offset, Type::kDataBimgRelRo, /* target_dex_file= */ nullptr); in DataBimgRelRoPatch()
71 patch.boot_image_offset_ = boot_image_offset; in DataBimgRelRoPatch()
72 patch.pc_insn_offset_ = pc_insn_offset; in DataBimgRelRoPatch()
73 return patch; in DataBimgRelRoPatch()
80 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); in RelativeMethodPatch()
81 patch.method_idx_ = target_method_idx; in RelativeMethodPatch()
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.cc58 inline bool IsAdrpPatch(const LinkerPatch& patch) { in IsAdrpPatch() argument
59 switch (patch.GetType()) { in IsAdrpPatch()
71 return patch.LiteralOffset() == patch.PcInsnOffset(); in IsAdrpPatch()
119 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpace() local
120 if (IsAdrpPatch(patch)) { in ReserveSpace()
136 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ReserveSpace() local
137 if (IsAdrpPatch(patch)) { in ReserveSpace()
138 uint32_t patch_offset = quick_code_offset + patch.LiteralOffset(); in ReserveSpace()
139 if (NeedsErratum843419Thunk(code, patch.LiteralOffset(), patch_offset)) { in ReserveSpace()
211 const LinkerPatch& patch, in PatchPcRelativeReference() argument
[all …]
/art/dex2oat/linker/
Drelative_patcher_test.h172 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in Link() local
173 if (patch.GetType() == LinkerPatch::Type::kCallRelative) { in Link()
174 auto result = method_offset_map_.FindMethodOffset(patch.TargetMethod()); in Link()
177 patcher_->PatchCall(&patched_code_, patch.LiteralOffset(), in Link()
178 offset + patch.LiteralOffset(), target_offset); in Link()
179 } else if (patch.GetType() == LinkerPatch::Type::kStringBssEntry) { in Link()
181 bss_begin_ + string_index_to_offset_map_.Get(patch.TargetStringIndex().index_); in Link()
183 patch, in Link()
184 offset + patch.LiteralOffset(), in Link()
186 } else if (patch.GetType() == LinkerPatch::Type::kStringRelative) { in Link()
[all …]
Dmulti_oat_relative_patcher.h109 const LinkerPatch& patch, in PatchPcRelativeReference() argument
114 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); in PatchPcRelativeReference()
118 const LinkerPatch& patch, in PatchBakerReadBarrierBranch() argument
121 relative_patcher_->PatchBakerReadBarrierBranch(code, patch, patch_offset); in PatchBakerReadBarrierBranch()
140 void GetThunkCode(const LinkerPatch& patch,
Drelative_patcher.h54 virtual void GetThunkCode(const LinkerPatch& patch,
136 const LinkerPatch& patch,
142 const LinkerPatch& patch,
/art/dex2oat/linker/x86_64/
Drelative_patcher_x86_64.cc26 const LinkerPatch& patch, in PatchPcRelativeReference() argument
29 DCHECK_LE(patch.LiteralOffset() + 4u, code->size()); in PatchPcRelativeReference()
35 reinterpret_cast<unaligned_int32_t*>(&(*code)[patch.LiteralOffset()])[0] = displacement; in PatchPcRelativeReference()
39 const LinkerPatch& patch ATTRIBUTE_UNUSED, in PatchBakerReadBarrierBranch()
Drelative_patcher_x86_64.h30 const LinkerPatch& patch,
34 const LinkerPatch& patch,
/art/dex2oat/linker/x86/
Drelative_patcher_x86.cc26 const LinkerPatch& patch, in PatchPcRelativeReference() argument
29 uint32_t anchor_literal_offset = patch.PcInsnOffset(); in PatchPcRelativeReference()
30 uint32_t literal_offset = patch.LiteralOffset(); in PatchPcRelativeReference()
61 const LinkerPatch& patch ATTRIBUTE_UNUSED, in PatchBakerReadBarrierBranch()
Drelative_patcher_x86.h30 const LinkerPatch& patch,
34 const LinkerPatch& patch,
/art/test/1932-monitor-events-misc/
Dcheck19 patch -p0 expected.txt < jvm-expected.patch >/dev/null
/art/test/1936-thread-end-events/
Dcheck19 patch -p0 expected.txt < jvm-expected.patch >/dev/null
/art/test/1931-monitor-events/
Dcheck19 patch -p0 expected.txt < jvm-expected.patch >/dev/null
/art/test/1950-unprepared-transform/
Dcheck19 patch -p0 expected.txt < jvm-expected.patch >/dev/null
/art/test/1954-pop-frame-jit/
Dcheck21 (patch -p0 expected.txt < jvm-expected.patch >/dev/null && ./default-check "$@")
/art/test/1955-pop-frame-jit-called/
Dcheck21 (patch -p0 expected.txt < jvm-expected.patch >/dev/null && ./default-check "$@")
/art/test/1956-pop-frame-jit-calling/
Dcheck21 (patch -p0 expected.txt < jvm-expected.patch >/dev/null && ./default-check "$@")
/art/dex2oat/linker/mips64/
Drelative_patcher_mips64.cc49 const LinkerPatch& patch, in PatchPcRelativeReference() argument
52 uint32_t anchor_literal_offset = patch.PcInsnOffset(); in PatchPcRelativeReference()
53 uint32_t literal_offset = patch.LiteralOffset(); in PatchPcRelativeReference()
88 const LinkerPatch& patch ATTRIBUTE_UNUSED, in PatchBakerReadBarrierBranch()
Drelative_patcher_mips64.h39 const LinkerPatch& patch,
43 const LinkerPatch& patch,
/art/test/1953-pop-frame/
Dcheck21 (patch -p0 expected.txt < class-loading-expected.patch >/dev/null && ./default-check "$@")
/art/dex2oat/linker/mips/
Drelative_patcher_mips.cc49 const LinkerPatch& patch, in PatchPcRelativeReference() argument
52 uint32_t anchor_literal_offset = patch.PcInsnOffset(); in PatchPcRelativeReference()
53 uint32_t literal_offset = patch.LiteralOffset(); in PatchPcRelativeReference()
90 const LinkerPatch& patch ATTRIBUTE_UNUSED, in PatchBakerReadBarrierBranch()
Drelative_patcher_mips.h41 const LinkerPatch& patch,
45 const LinkerPatch& patch,
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc86 const LinkerPatch& patch, in PatchPcRelativeReference() argument
89 uint32_t literal_offset = patch.LiteralOffset(); in PatchPcRelativeReference()
90 uint32_t pc_literal_offset = patch.PcInsnOffset(); in PatchPcRelativeReference()
106 const LinkerPatch& patch, in PatchBakerReadBarrierBranch() argument
109 uint32_t literal_offset = patch.LiteralOffset(); in PatchBakerReadBarrierBranch()
114 ThunkKey key = GetBakerThunkKey(patch); in PatchBakerReadBarrierBranch()
Drelative_patcher_arm_base.cc390 const LinkerPatch& patch) { in GetBakerThunkKey() argument
391 DCHECK_EQ(patch.GetType(), LinkerPatch::Type::kBakerReadBarrierBranch); in GetBakerThunkKey()
393 patch.GetBakerCustomValue1(), in GetBakerThunkKey()
394 patch.GetBakerCustomValue2()); in GetBakerThunkKey()
399 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in ProcessPatches() local
400 uint32_t patch_offset = code_offset + patch.LiteralOffset(); in ProcessPatches()
403 if (patch.GetType() == LinkerPatch::Type::kCallRelative) { in ProcessPatches()
405 unprocessed_method_call_patches_.emplace_back(patch_offset, patch.TargetMethod()); in ProcessPatches()
408 auto it = thunks_.Put(key, ThunkDataForPatch(patch, max_next_offset)); in ProcessPatches()
414 } else if (patch.GetType() == LinkerPatch::Type::kBakerReadBarrierBranch) { in ProcessPatches()
[all …]
Drelative_patcher_thumb2.h42 const LinkerPatch& patch,
46 const LinkerPatch& patch,
/art/test/909-attach-agent/
Drun28 patch -s expected.txt <interpreter-expected.patch

12