Lines Matching refs:LinkerPatch
111 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
113 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
175 std::vector<uint8_t> CompileThunk(const LinkerPatch& patch, in CompileThunk()
196 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod()
200 for (const LinkerPatch& patch : patches) { in AddCompiledMethod()
201 if (patch.GetType() == LinkerPatch::Type::kCallEntrypoint || in AddCompiledMethod()
202 patch.GetType() == LinkerPatch::Type::kBakerReadBarrierBranch || in AddCompiledMethod()
203 patch.GetType() == LinkerPatch::Type::kCallRelative) { in AddCompiledMethod()
212 LinkerPatch patch = LinkerPatch::RelativeCodePatch(/* literal_offset */ 0u, in CompileMethodCallThunk()
301 const LinkerPatch patches[] = { in TestNopsAdrpLdr()
302 LinkerPatch::StringBssEntryPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), in TestNopsAdrpLdr()
303 LinkerPatch::StringBssEntryPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex), in TestNopsAdrpLdr()
307 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
326 const LinkerPatch patches[] = { in TestNopsAdrpAdd()
327 LinkerPatch::RelativeStringPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), in TestNopsAdrpAdd()
328 LinkerPatch::RelativeStringPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex), in TestNopsAdrpAdd()
332 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpAdd()
349 const LinkerPatch patches[] = { in PrepareNopsAdrpInsn2Ldr()
350 LinkerPatch::StringBssEntryPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), in PrepareNopsAdrpInsn2Ldr()
351 LinkerPatch::StringBssEntryPatch(num_nops * 4u + 8u, nullptr, num_nops * 4u, kStringIndex), in PrepareNopsAdrpInsn2Ldr()
355 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Ldr()
364 const LinkerPatch patches[] = { in PrepareNopsAdrpInsn2Add()
365 LinkerPatch::RelativeStringPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex), in PrepareNopsAdrpInsn2Add()
366 LinkerPatch::RelativeStringPatch(num_nops * 4u + 8u, nullptr, num_nops * 4u, kStringIndex), in PrepareNopsAdrpInsn2Add()
370 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Add()
533 const LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerOffsetThunk()
539 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerArrayThunk()
545 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch( in CompileBakerGcRootThunk()
580 const LinkerPatch patches[] = { in TEST_F()
581 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u), in TEST_F()
583 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
591 const LinkerPatch method1_patches[] = { in TEST_F()
592 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u), in TEST_F()
594 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
595 const LinkerPatch method2_patches[] = { in TEST_F()
596 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u), in TEST_F()
598 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
616 const LinkerPatch patches[] = { in TEST_F()
617 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u), in TEST_F()
619 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
636 const LinkerPatch last_method_patches[] = { in TEST_F()
637 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, missing_method_index), in TEST_F()
643 ArrayRef<const LinkerPatch>(), in TEST_F()
645 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
671 const LinkerPatch method1_patches[] = { in TEST_F()
672 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx), in TEST_F()
677 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
679 ArrayRef<const LinkerPatch>(), in TEST_F()
697 const LinkerPatch last_method_patches[] = { in TEST_F()
698 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u), in TEST_F()
703 ArrayRef<const LinkerPatch>(), in TEST_F()
705 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
723 const LinkerPatch method1_patches[] = { in TEST_F()
724 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx), in TEST_F()
730 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
732 ArrayRef<const LinkerPatch>(), in TEST_F()
767 const LinkerPatch last_method_patches[] = { in TEST_F()
768 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u), in TEST_F()
773 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, in TEST_F()
774 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
1011 const LinkerPatch patches[] = { in TEST_F()
1012 LinkerPatch::CallEntrypointPatch(0u, kEntrypointOffset), in TEST_F()
1014 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1058 const LinkerPatch patches[] = { in TestBakerField()
1059 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset, encoded_data), in TestBakerField()
1062 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerField()
1150 const LinkerPatch patches1[] = { in TEST_F()
1151 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
1153 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1183 const LinkerPatch patches2[] = { in TEST_F()
1184 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data), in TEST_F()
1186 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1210 const LinkerPatch patches1[] = { in TEST_F()
1211 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
1213 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1239 const LinkerPatch patches1[] = { in TEST_F()
1240 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data), in TEST_F()
1242 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1273 const LinkerPatch patches2[] = { in TEST_F()
1274 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data), in TEST_F()
1276 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1309 const LinkerPatch patches[] = { in TEST_F()
1310 LinkerPatch::BakerReadBarrierBranchPatch( in TEST_F()
1313 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1386 const LinkerPatch patches[] = { in TEST_F()
1387 LinkerPatch::BakerReadBarrierBranchPatch( in TEST_F()
1390 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1437 const LinkerPatch method1_patches[] = { in TEST_F()
1438 LinkerPatch::RelativeCodePatch(kMethodCallLiteralOffset, nullptr, 2u), in TEST_F()
1442 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1486 const LinkerPatch last_method_patches[] = { in TEST_F()
1487 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset1, encoded_data1), in TEST_F()
1488 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset2, encoded_data2), in TEST_F()
1493 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()