Lines Matching refs:LinkerPatch

144                                  const ArrayRef<const LinkerPatch>& method1_patches,  in Create2MethodsWithGap()
146 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
209 std::vector<uint8_t> CompileThunk(const LinkerPatch& patch, in CompileThunk()
223 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod()
227 for (const LinkerPatch& patch : patches) { in AddCompiledMethod()
228 if (patch.GetType() == LinkerPatch::Type::kCallEntrypoint || in AddCompiledMethod()
229 patch.GetType() == LinkerPatch::Type::kBakerReadBarrierBranch || in AddCompiledMethod()
230 patch.GetType() == LinkerPatch::Type::kCallRelative) { in AddCompiledMethod()
239 LinkerPatch patch = LinkerPatch::RelativeCodePatch(/* literal_offset */ 0u, in CompileMethodCallThunk()
277 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset);
296 const LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerOffsetThunk()
302 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerArrayThunk()
308 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerGcRootThunk()
359 const LinkerPatch patches[] = { in TestStringBssEntry()
360 LinkerPatch::StringBssEntryPatch(0u, nullptr, kPcInsnOffset, kStringIndex), in TestStringBssEntry()
361 LinkerPatch::StringBssEntryPatch(4u, nullptr, kPcInsnOffset, kStringIndex), in TestStringBssEntry()
363 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); in TestStringBssEntry()
369 const LinkerPatch patches[] = { in TestStringReference()
370 LinkerPatch::RelativeStringPatch(0u, nullptr, kPcInsnOffset, kStringIndex), in TestStringReference()
371 LinkerPatch::RelativeStringPatch(4u, nullptr, kPcInsnOffset, kStringIndex), in TestStringReference()
373 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), string_offset); in TestStringReference()
376 void Thumb2RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, in CheckPcRelativePatch()
378 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch()
408 const LinkerPatch patches[] = { in TEST_F()
409 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u), in TEST_F()
411 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
421 const LinkerPatch method1_patches[] = { in TEST_F()
422 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u), in TEST_F()
424 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
425 const LinkerPatch method2_patches[] = { in TEST_F()
426 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u), in TEST_F()
428 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
448 const LinkerPatch patches[] = { in TEST_F()
449 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u), in TEST_F()
451 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
468 const LinkerPatch last_method_patches[] = { in TEST_F()
469 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, missing_method_index), in TEST_F()
475 ArrayRef<const LinkerPatch>(), in TEST_F()
477 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
504 const LinkerPatch method1_patches[] = { in TEST_F()
505 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx), in TEST_F()
510 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
512 ArrayRef<const LinkerPatch>(), in TEST_F()
526 const LinkerPatch last_method_patches[] = { in TEST_F()
527 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u), in TEST_F()
532 ArrayRef<const LinkerPatch>(), in TEST_F()
534 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
552 const LinkerPatch method1_patches[] = { in TEST_F()
553 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx), in TEST_F()
559 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
561 ArrayRef<const LinkerPatch>(), in TEST_F()
597 const LinkerPatch last_method_patches[] = { in TEST_F()
598 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u), in TEST_F()
604 ArrayRef<const LinkerPatch>(), in TEST_F()
606 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
668 const LinkerPatch patches[] = { in TEST_F()
669 LinkerPatch::CallEntrypointPatch(0u, kEntrypointOffset), in TEST_F()
671 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
718 const LinkerPatch patches[] = { in TestBakerFieldWide()
719 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset, encoded_data), in TestBakerFieldWide()
722 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerFieldWide()
816 const LinkerPatch patches[] = { in TestBakerFieldNarrow()
817 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset, encoded_data), in TestBakerFieldNarrow()
820 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerFieldNarrow()
941 const LinkerPatch patches1[] = { in TEST_F()
942 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
944 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
980 const LinkerPatch patches2[] = { in TEST_F()
981 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data), in TEST_F()
983 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1009 const LinkerPatch patches1[] = { in TEST_F()
1010 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
1012 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1039 const LinkerPatch patches1[] = { in TEST_F()
1040 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
1042 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1081 const LinkerPatch patches2[] = { in TEST_F()
1082 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data), in TEST_F()
1084 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1117 const LinkerPatch patches[] = { in TEST_F()
1118 LinkerPatch::BakerReadBarrierBranchPatch( in TEST_F()
1121 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1194 const LinkerPatch patches[] = { in TEST_F()
1195 LinkerPatch::BakerReadBarrierBranchPatch( in TEST_F()
1198 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1249 const LinkerPatch patches[] = { in TEST_F()
1250 LinkerPatch::BakerReadBarrierBranchPatch( in TEST_F()
1253 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1294 std::vector<LinkerPatch> patches; in TEST_F()
1302 patches.push_back(LinkerPatch::BakerReadBarrierBranchPatch(8u * i + 4u, encoded_data)); in TEST_F()
1308 ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1317 patches.push_back(LinkerPatch::BakerReadBarrierBranchPatch(8u * i + 4u, encoded_data)); in TEST_F()
1333 const LinkerPatch method1_patches[] = { in TEST_F()
1334 LinkerPatch::RelativeCodePatch(kMethodCallLiteralOffset, nullptr, 2u), in TEST_F()
1338 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1381 const LinkerPatch last_method_patches[] = { in TEST_F()
1382 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset1, encoded_data1), in TEST_F()
1383 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset2, encoded_data2), in TEST_F()
1388 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()