Lines Matching refs:LinkerPatch
111 const ArrayRef<const LinkerPatch>& method1_patches,
113 const ArrayRef<const LinkerPatch>& last_method_patches,
175 std::vector<uint8_t> CompileThunk(const LinkerPatch& patch,
196 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) {
200 for (const LinkerPatch& patch : patches) {
201 if (patch.GetType() == LinkerPatch::Type::kBakerReadBarrierBranch ||
202 patch.GetType() == LinkerPatch::Type::kCallRelative) {
211 LinkerPatch patch = LinkerPatch::RelativeCodePatch(/* literal_offset */ 0u,
300 const LinkerPatch patches[] = {
301 LinkerPatch::StringBssEntryPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex),
302 LinkerPatch::StringBssEntryPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex),
306 ArrayRef<const LinkerPatch>(patches));
325 const LinkerPatch patches[] = {
326 LinkerPatch::RelativeStringPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex),
327 LinkerPatch::RelativeStringPatch(num_nops * 4u + 4u, nullptr, num_nops * 4u, kStringIndex),
331 ArrayRef<const LinkerPatch>(patches));
348 const LinkerPatch patches[] = {
349 LinkerPatch::StringBssEntryPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex),
350 LinkerPatch::StringBssEntryPatch(num_nops * 4u + 8u, nullptr, num_nops * 4u, kStringIndex),
354 ArrayRef<const LinkerPatch>(patches));
363 const LinkerPatch patches[] = {
364 LinkerPatch::RelativeStringPatch(num_nops * 4u , nullptr, num_nops * 4u, kStringIndex),
365 LinkerPatch::RelativeStringPatch(num_nops * 4u + 8u, nullptr, num_nops * 4u, kStringIndex),
369 ArrayRef<const LinkerPatch>(patches));
532 const LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch(
538 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch(
544 LinkerPatch patch = LinkerPatch::BakerReadBarrierBranchPatch(
579 const LinkerPatch patches[] = {
580 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u),
582 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches));
590 const LinkerPatch method1_patches[] = {
591 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u),
593 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches));
594 const LinkerPatch method2_patches[] = {
595 LinkerPatch::RelativeCodePatch(0u, nullptr, 1u),
597 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches));
615 const LinkerPatch patches[] = {
616 LinkerPatch::RelativeCodePatch(0u, nullptr, 2u),
618 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches));
635 const LinkerPatch last_method_patches[] = {
636 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, missing_method_index),
642 ArrayRef<const LinkerPatch>(),
644 ArrayRef<const LinkerPatch>(last_method_patches),
670 const LinkerPatch method1_patches[] = {
671 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx),
676 ArrayRef<const LinkerPatch>(method1_patches),
678 ArrayRef<const LinkerPatch>(),
696 const LinkerPatch last_method_patches[] = {
697 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u),
702 ArrayRef<const LinkerPatch>(),
704 ArrayRef<const LinkerPatch>(last_method_patches),
722 const LinkerPatch method1_patches[] = {
723 LinkerPatch::RelativeCodePatch(bl_offset_in_method1, nullptr, kExpectedLastMethodIdx),
729 ArrayRef<const LinkerPatch>(method1_patches),
731 ArrayRef<const LinkerPatch>(),
766 const LinkerPatch last_method_patches[] = {
767 LinkerPatch::RelativeCodePatch(bl_offset_in_last_method, nullptr, 1u),
772 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code,
773 ArrayRef<const LinkerPatch>(last_method_patches),
1027 const LinkerPatch patches[] = {
1028 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset, encoded_data),
1031 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches));
1119 const LinkerPatch patches1[] = {
1120 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data),
1122 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1));
1152 const LinkerPatch patches2[] = {
1153 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data),
1155 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2));
1179 const LinkerPatch patches1[] = {
1180 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data),
1182 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1));
1208 const LinkerPatch patches1[] = {
1209 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset1, encoded_data),
1211 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1));
1242 const LinkerPatch patches2[] = {
1243 LinkerPatch::BakerReadBarrierBranchPatch(kLiteralOffset2, encoded_data),
1245 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2));
1278 const LinkerPatch patches[] = {
1279 LinkerPatch::BakerReadBarrierBranchPatch(
1282 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches));
1355 const LinkerPatch patches[] = {
1356 LinkerPatch::BakerReadBarrierBranchPatch(
1359 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches));
1406 const LinkerPatch method1_patches[] = {
1407 LinkerPatch::RelativeCodePatch(kMethodCallLiteralOffset, nullptr, 2u),
1411 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches));
1455 const LinkerPatch last_method_patches[] = {
1456 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset1, encoded_data1),
1457 LinkerPatch::BakerReadBarrierBranchPatch(kBakerLiteralOffset2, encoded_data2),
1462 ArrayRef<const LinkerPatch>(last_method_patches));