• Home
  • Raw
  • Download

Lines Matching refs:ArrayRef

40   static const ArrayRef<const uint8_t> kCallCode;
42 static const ArrayRef<const uint8_t> kNopCode;
110 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
111 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
112 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap()
113 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
142 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
195 const ArrayRef<const uint8_t>& code, in AddCompiledMethod()
196 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod()
205 thunk_provider_.SetThunkCode(patch, ArrayRef<const uint8_t>(thunk_code), debug_name); in AddCompiledMethod()
228 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
229 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
233 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
305 ArrayRef<const uint8_t>(code), in TestNopsAdrpLdr()
306 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
312 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
330 ArrayRef<const uint8_t>(code), in TestNopsAdrpAdd()
331 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpAdd()
336 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd()
353 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Ldr()
354 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Ldr()
368 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Add()
369 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Add()
380 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUse()
406 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUseHasThunk()
417 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk()
418 if (ArrayRef<const uint8_t>(expected_thunk_code) != thunk_code) { in TestNopsAdrpInsn2AndUseHasThunk()
419 DumpDiff(ArrayRef<const uint8_t>(expected_thunk_code), thunk_code); in TestNopsAdrpInsn2AndUseHasThunk()
565 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kCallCode(kCallRawCode);
571 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kNopCode(kNopRawCode);
582 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
586 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
593 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
597 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
606 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
611 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
618 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
626 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
633 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
642 ArrayRef<const LinkerPatch>(), in TEST_F()
644 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
660 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
667 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
676 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
678 ArrayRef<const LinkerPatch>(), in TEST_F()
688 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
694 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
702 ArrayRef<const LinkerPatch>(), in TEST_F()
704 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
713 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
719 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
729 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
731 ArrayRef<const LinkerPatch>(), in TEST_F()
757 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
764 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
772 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, in TEST_F()
773 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
788 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1025 ArrayRef<const uint8_t> code(raw_code); in TestBakerField()
1031 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerField()
1048 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerField()
1053 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TestBakerField()
1055 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TestBakerField()
1056 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TestBakerField()
1117 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1122 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1129 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1146 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1151 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1155 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1167 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1168 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1177 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1182 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1189 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1197 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1206 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1211 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1218 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1235 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1241 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1245 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1254 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1255 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1277 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1282 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1295 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1300 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1302 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1303 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1354 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1359 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1373 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1378 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1380 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1381 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1409 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1411 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1423 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1430 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1461 ArrayRef<const uint8_t>(last_method_raw_code), in TEST_F()
1462 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()