/art/compiler/linker/ |
linker_patch_test.cc | 24 TEST(LinkerPatch, LinkerPatchOperators) { 27 LinkerPatch patches[] = { 28 LinkerPatch::RelativeMethodPatch(16u, dex_file1, 3000u, 1000u), 29 LinkerPatch::RelativeMethodPatch(16u, dex_file1, 3001u, 1000u), 30 LinkerPatch::RelativeMethodPatch(16u, dex_file1, 3000u, 1001u), 31 LinkerPatch::RelativeMethodPatch(16u, dex_file1, 3001u, 1001u), // Index 3. 32 LinkerPatch::RelativeMethodPatch(16u, dex_file2, 3000u, 1000u), 33 LinkerPatch::RelativeMethodPatch(16u, dex_file2, 3001u, 1000u), 34 LinkerPatch::RelativeMethodPatch(16u, dex_file2, 3000u, 1001u), 35 LinkerPatch::RelativeMethodPatch(16u, dex_file2, 3001u, 1001u) [all...] |
linker_patch.h | 34 class LinkerPatch { 38 // 'art::LinkerPatch::patch_type_' is too small to hold all 39 // values of 'enum class art::LinkerPatch::Type' 57 static LinkerPatch RelativeMethodPatch(size_t literal_offset, 61 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); 67 static LinkerPatch MethodBssEntryPatch(size_t literal_offset, 71 LinkerPatch patch(literal_offset, Type::kMethodBssEntry, target_dex_file); 77 static LinkerPatch CodePatch(size_t literal_offset, 80 LinkerPatch patch(literal_offset, Type::kCall, target_dex_file); 85 static LinkerPatch RelativeCodePatch(size_t literal_offset [all...] |
relative_patcher.h | 38 class LinkerPatch; 113 const LinkerPatch& patch, 119 const LinkerPatch& patch,
|
relative_patcher_test.h | 80 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { 151 for (const LinkerPatch& patch : compiled_method->GetPatches()) { 152 if (patch.GetType() == LinkerPatch::Type::kCallRelative) { 158 } else if (patch.GetType() == LinkerPatch::Type::kStringBssEntry) { 165 } else if (patch.GetType() == LinkerPatch::Type::kStringRelative) { 172 } else if (patch.GetType() == LinkerPatch::Type::kBakerReadBarrierBranch) {
|
/art/compiler/linker/x86/ |
relative_patcher_x86.h | 30 const LinkerPatch& patch, 34 const LinkerPatch& patch,
|
relative_patcher_x86_test.cc | 46 LinkerPatch patches[] = { 47 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), 49 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); 59 LinkerPatch method1_patches[] = { 60 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 2u), 62 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); 63 LinkerPatch method2_patches[] = { 64 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), 66 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); 92 LinkerPatch patches[] = [all...] |
relative_patcher_x86.cc | 26 const LinkerPatch& patch, 61 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
/art/compiler/linker/x86_64/ |
relative_patcher_x86_64.h | 30 const LinkerPatch& patch, 34 const LinkerPatch& patch,
|
relative_patcher_x86_64.cc | 26 const LinkerPatch& patch, 39 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
relative_patcher_x86_64_test.cc | 66 LinkerPatch patches[] = { 67 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), 69 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); 79 LinkerPatch method1_patches[] = { 80 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 2u), 82 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); 83 LinkerPatch method2_patches[] = { 84 LinkerPatch::RelativeCodePatch(kCallCode.size() - 4u, nullptr, 1u), 86 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); 112 LinkerPatch patches[] = [all...] |
/art/compiler/linker/mips/ |
relative_patcher_mips32r6_test.cc | 41 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 58 void Mips32r6RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, 60 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); 82 LinkerPatch patches[] = { 83 LinkerPatch::StringBssEntryPatch(kLiteralOffsetHigh, nullptr, kAnchorOffset, kStringIndex), 84 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow1, nullptr, kAnchorOffset, kStringIndex), 85 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow2, nullptr, kAnchorOffset, kStringIndex) 87 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); 93 LinkerPatch patches[] = { 94 LinkerPatch::RelativeStringPatch(kLiteralOffsetHigh, nullptr, kAnchorOffset, kStringIndex) [all...] |
relative_patcher_mips_test.cc | 42 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 61 void MipsRelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, 63 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); 87 LinkerPatch patches[] = { 88 LinkerPatch::StringBssEntryPatch(kLiteralOffsetHigh, nullptr, kAnchorOffset, kStringIndex), 89 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow1, nullptr, kAnchorOffset, kStringIndex), 90 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow2, nullptr, kAnchorOffset, kStringIndex) 92 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); 98 LinkerPatch patches[] = { 99 LinkerPatch::RelativeStringPatch(kLiteralOffsetHigh, nullptr, kAnchorOffset, kStringIndex) [all...] |
relative_patcher_mips.h | 41 const LinkerPatch& patch, 45 const LinkerPatch& patch,
|
relative_patcher_mips.cc | 49 const LinkerPatch& patch, 90 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
/art/compiler/linker/mips64/ |
relative_patcher_mips64_test.cc | 43 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 60 void Mips64RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, 62 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); 84 LinkerPatch patches[] = { 85 LinkerPatch::StringBssEntryPatch(kLiteralOffsetHigh, nullptr, kAnchorOffset, kStringIndex), 86 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow1, nullptr, kAnchorOffset, kStringIndex), 87 LinkerPatch::StringBssEntryPatch(kLiteralOffsetLow2, nullptr, kAnchorOffset, kStringIndex) 89 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset);
|
relative_patcher_mips64.h | 39 const LinkerPatch& patch, 43 const LinkerPatch& patch,
|
relative_patcher_mips64.cc | 49 const LinkerPatch& patch, 88 const LinkerPatch& patch ATTRIBUTE_UNUSED,
|
/art/compiler/driver/ |
compiled_method_storage.h | 32 class LinkerPatch; 66 const LengthPrefixedArray<linker::LinkerPatch>* DeduplicateLinkerPatches( 67 const ArrayRef<const linker::LinkerPatch>& linker_patches); 68 void ReleaseLinkerPatches(const LengthPrefixedArray<linker::LinkerPatch>* linker_patches); 103 ArrayDedupeSet<linker::LinkerPatch> dedupe_linker_patches_;
|
compiled_method_storage_test.cc | 70 const linker::LinkerPatch raw_patches1[] = { 71 linker::LinkerPatch::CodePatch(0u, nullptr, 1u), 72 linker::LinkerPatch::RelativeMethodPatch(4u, nullptr, 0u, 1u), 74 const linker::LinkerPatch raw_patches2[] = { 75 linker::LinkerPatch::CodePatch(0u, nullptr, 1u), 76 linker::LinkerPatch::RelativeMethodPatch(4u, nullptr, 0u, 2u), 78 ArrayRef<const linker::LinkerPatch> patches[] = { 79 ArrayRef<const linker::LinkerPatch>(raw_patches1), 80 ArrayRef<const linker::LinkerPatch>(raw_patches2),
|
/art/compiler/linker/arm/ |
relative_patcher_thumb2_test.cc | 140 const ArrayRef<const LinkerPatch>& method1_patches, 142 const ArrayRef<const LinkerPatch>& method3_patches, 229 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset); 234 const LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( 241 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( 248 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( 300 const LinkerPatch patches[] = [all...] |
/art/compiler/linker/arm64/ |
relative_patcher_arm64_test.cc | 107 const ArrayRef<const LinkerPatch>& method1_patches, 109 const ArrayRef<const LinkerPatch>& last_method_patches, 259 const LinkerPatch patches[] = { 260 LinkerPatch::StringBssEntryPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), 261 LinkerPatch::StringBssEntryPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex), 265 ArrayRef<const LinkerPatch>(patches)); 284 const LinkerPatch patches[] = { 285 LinkerPatch::RelativeStringPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), 286 LinkerPatch::RelativeStringPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex), 290 ArrayRef<const LinkerPatch>(patches)) [all...] |
relative_patcher_arm64.cc | 57 inline bool IsAdrpPatch(const LinkerPatch& patch) { 59 case LinkerPatch::Type::kCall: 60 case LinkerPatch::Type::kCallRelative: 61 case LinkerPatch::Type::kBakerReadBarrierBranch: 63 case LinkerPatch::Type::kMethodRelative: 64 case LinkerPatch::Type::kMethodBssEntry: 65 case LinkerPatch::Type::kTypeRelative: 66 case LinkerPatch::Type::kTypeClassTable: 67 case LinkerPatch::Type::kTypeBssEntry: 68 case LinkerPatch::Type::kStringRelative [all...] |
/art/compiler/ |
compiled_method.h | 36 class LinkerPatch; 121 const ArrayRef<const linker::LinkerPatch>& patches); 135 const ArrayRef<const linker::LinkerPatch>& patches); 169 ArrayRef<const linker::LinkerPatch> GetPatches() const; 193 const LengthPrefixedArray<linker::LinkerPatch>* const patches_;
|
compiled_method-inl.h | 53 inline ArrayRef<const linker::LinkerPatch> CompiledMethod::GetPatches() const {
|
/art/dex2oat/linker/ |
multi_oat_relative_patcher.h | 106 const LinkerPatch& patch, 115 const LinkerPatch& patch,
|