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()
206 thunk_provider_.SetThunkCode(patch, ArrayRef<const uint8_t>(thunk_code), debug_name); in AddCompiledMethod()
229 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
230 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
234 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
306 ArrayRef<const uint8_t>(code), in TestNopsAdrpLdr()
307 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
313 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
331 ArrayRef<const uint8_t>(code), in TestNopsAdrpAdd()
332 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpAdd()
337 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd()
354 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Ldr()
355 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Ldr()
369 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Add()
370 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Add()
381 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUse()
407 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUseHasThunk()
418 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk()
419 if (ArrayRef<const uint8_t>(expected_thunk_code) != thunk_code) { in TestNopsAdrpInsn2AndUseHasThunk()
420 DumpDiff(ArrayRef<const uint8_t>(expected_thunk_code), thunk_code); in TestNopsAdrpInsn2AndUseHasThunk()
566 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kCallCode(kCallRawCode);
572 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kNopCode(kNopRawCode);
583 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
587 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
594 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
598 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
607 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
612 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
619 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
627 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
634 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
643 ArrayRef<const LinkerPatch>(), in TEST_F()
645 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
661 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
668 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
677 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
679 ArrayRef<const LinkerPatch>(), in TEST_F()
689 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
695 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
703 ArrayRef<const LinkerPatch>(), in TEST_F()
705 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
714 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
720 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
730 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
732 ArrayRef<const LinkerPatch>(), in TEST_F()
758 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
765 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
773 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, in TEST_F()
774 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
789 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1014 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1024 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1056 ArrayRef<const uint8_t> code(raw_code); in TestBakerField()
1062 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerField()
1079 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerField()
1084 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TestBakerField()
1086 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TestBakerField()
1087 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TestBakerField()
1148 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1153 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1160 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1177 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1182 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1186 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1198 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1199 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1208 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1213 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1220 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1228 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1237 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1242 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1249 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1266 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1272 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1276 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1285 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1286 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1308 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1313 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1326 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1331 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1333 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1334 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1385 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1390 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1404 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1409 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1411 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1412 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1440 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1442 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1454 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1461 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1492 ArrayRef<const uint8_t>(last_method_raw_code), in TEST_F()
1493 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()