• Home
  • Raw
  • Download

Lines Matching refs:ArrayRef

39   static const ArrayRef<const uint8_t> kCallCode;
41 static const ArrayRef<const uint8_t> kNopCode;
43 static const ArrayRef<const uint8_t> kUnpatchedPcRelativeCode;
143 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
144 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
145 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap()
146 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
175 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
222 const ArrayRef<const uint8_t>& code, in AddCompiledMethod()
223 const ArrayRef<const LinkerPatch>& patches = ArrayRef<const LinkerPatch>()) { in AddCompiledMethod()
232 thunk_provider_.SetThunkCode(patch, ArrayRef<const uint8_t>(thunk_code), debug_name); in AddCompiledMethod()
255 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
256 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
260 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
276 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset);
336 const ArrayRef<const uint8_t> Thumb2RelativePatcherTest::kCallCode(kCallRawCode);
342 const ArrayRef<const uint8_t> Thumb2RelativePatcherTest::kNopCode(kNopRawCode);
349 const ArrayRef<const uint8_t> Thumb2RelativePatcherTest::kUnpatchedPcRelativeCode(
362 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), bss_begin_ + string_entry_offset); in TestStringBssEntry()
372 CheckPcRelativePatch(ArrayRef<const LinkerPatch>(patches), string_offset); in TestStringReference()
375 void Thumb2RelativePatcherTest::CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, in CheckPcRelativePatch()
377 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch()
403 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
410 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
416 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
423 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
427 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
438 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
443 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
450 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
458 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
465 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
474 ArrayRef<const LinkerPatch>(), in TEST_F()
476 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
493 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
500 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
509 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
511 ArrayRef<const LinkerPatch>(), in TEST_F()
517 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
523 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
531 ArrayRef<const LinkerPatch>(), in TEST_F()
533 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
542 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
548 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
558 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
560 ArrayRef<const LinkerPatch>(), in TEST_F()
587 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
594 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
603 ArrayRef<const LinkerPatch>(), in TEST_F()
605 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
621 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
685 ArrayRef<const uint8_t> code(raw_code); in TestBakerFieldWide()
692 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerFieldWide()
708 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerFieldWide()
714 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TestBakerFieldWide()
716 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TestBakerFieldWide()
717 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TestBakerFieldWide()
783 ArrayRef<const uint8_t> code(raw_code); in TestBakerFieldNarrow()
790 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerFieldNarrow()
809 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerFieldNarrow()
815 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TestBakerFieldNarrow()
817 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TestBakerFieldNarrow()
818 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TestBakerFieldNarrow()
908 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
914 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
922 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
945 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
949 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
953 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
966 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
967 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
976 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
982 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
990 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
997 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1006 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1012 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1020 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1045 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1050 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1054 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1069 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1070 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1086 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1091 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1103 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1108 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1110 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1111 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1163 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1168 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1181 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1186 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1188 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1189 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1218 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1223 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1236 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1241 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1243 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1244 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1277 ArrayRef<const uint8_t>(code), in TEST_F()
1278 ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1289 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1306 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1308 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1320 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1327 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1357 ArrayRef<const uint8_t>(last_method_raw_code), in TEST_F()
1358 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()