• Home
  • Raw
  • Download

Lines Matching refs:ArrayRef

36   static const ArrayRef<const uint8_t> kCallCode;
38 static const ArrayRef<const uint8_t> kNopCode;
106 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
107 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
108 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap()
109 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
138 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap()
187 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
188 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { in CheckThunk()
192 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); in CheckThunk()
264 ArrayRef<const uint8_t>(code), in TestNopsAdrpLdr()
265 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
271 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
289 ArrayRef<const uint8_t>(code), in TestNopsAdrpAdd()
290 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpAdd()
295 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd()
312 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Ldr()
313 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Ldr()
327 ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Add()
328 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Add()
339 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUse()
365 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2AndUseHasThunk()
376 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk()
377 if (ArrayRef<const uint8_t>(expected_thunk_code) != thunk_code) { in TestNopsAdrpInsn2AndUseHasThunk()
378 DumpDiff(ArrayRef<const uint8_t>(expected_thunk_code), thunk_code); in TestNopsAdrpInsn2AndUseHasThunk()
515 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kCallCode(kCallRawCode);
521 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kNopCode(kNopRawCode);
537 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
541 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
548 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
552 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
561 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
566 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
573 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
581 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
588 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
596 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, in TEST_F()
597 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
613 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
620 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
629 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
631 ArrayRef<const LinkerPatch>(), in TEST_F()
641 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
647 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
655 ArrayRef<const LinkerPatch>(), in TEST_F()
657 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
666 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
672 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
682 ArrayRef<const LinkerPatch>(method1_patches), in TEST_F()
684 ArrayRef<const LinkerPatch>(), in TEST_F()
700 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
707 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
715 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, in TEST_F()
716 ArrayRef<const LinkerPatch>(last_method_patches), in TEST_F()
731 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
921 ArrayRef<const uint8_t> code(raw_code); in TestBakerField()
928 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TestBakerField()
945 CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TestBakerField()
950 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TestBakerField()
952 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TestBakerField()
953 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TestBakerField()
1007 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1013 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1020 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1037 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1042 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1046 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1058 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1059 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1068 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1074 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1081 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1089 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1098 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1104 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(patches1)); in TEST_F()
1111 ArrayRef<const uint8_t> filler1_code(raw_filler1_code); in TEST_F()
1128 ArrayRef<const uint8_t> filler2_code(raw_filler2_code); in TEST_F()
1134 ArrayRef<const uint8_t> code2(raw_code2); in TEST_F()
1138 AddCompiledMethod(MethodRef(5u), code2, ArrayRef<const LinkerPatch>(patches2)); in TEST_F()
1147 ASSERT_TRUE(CheckLinkedMethod(MethodRef(1), ArrayRef<const uint8_t>(expected_code1))); in TEST_F()
1148 ASSERT_TRUE(CheckLinkedMethod(MethodRef(5), ArrayRef<const uint8_t>(expected_code2))); in TEST_F()
1170 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1175 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1188 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1193 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1195 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1196 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1247 ArrayRef<const uint8_t> code(raw_code); in TEST_F()
1252 AddCompiledMethod(MethodRef(method_idx), code, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
1266 EXPECT_TRUE(CheckLinkedMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
1271 ArrayRef<const uint8_t> compiled_thunk(output_.data() + thunk_offset, in TEST_F()
1273 if (ArrayRef<const uint8_t>(expected_thunk) != compiled_thunk) { in TEST_F()
1274 DumpDiff(ArrayRef<const uint8_t>(expected_thunk), compiled_thunk); in TEST_F()
1302 ArrayRef<const uint8_t> code1(raw_code1); in TEST_F()
1304 AddCompiledMethod(MethodRef(1u), code1, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
1316 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1323 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(filler_code)); in TEST_F()
1354 ArrayRef<const uint8_t>(last_method_raw_code), in TEST_F()
1355 ArrayRef<const LinkerPatch>(last_method_patches)); in TEST_F()