Lines Matching refs:ArrayRef

30   static const ArrayRef<const uint8_t> kCallCode;
32 static const ArrayRef<const uint8_t> kNopCode;
54 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
55 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
56 const ArrayRef<const uint8_t>& last_method_code, in Create2MethodsWithGap()
57 const ArrayRef<const LinkerPatch>& last_method_patches, in Create2MethodsWithGap()
81 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap()
82 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
87 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), in Create2MethodsWithGap()
88 ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
121 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); in CheckThunk()
127 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
186 AddCompiledMethod(MethodRef(1u), ArrayRef<const uint8_t>(code), in TestNopsAdrpLdr()
187 ArrayRef<const LinkerPatch>(patches)); in TestNopsAdrpLdr()
193 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr()
215 AddCompiledMethod(MethodRef(1u), ArrayRef<const uint8_t>(code), in PrepareNopsAdrpInsn2Ldr()
216 ArrayRef<const LinkerPatch>(patches)); in PrepareNopsAdrpInsn2Ldr()
228 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2Ldr()
254 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpInsn2LdrHasThunk()
265 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2LdrHasThunk()
266 if (ArrayRef<const uint8_t>(expected_thunk_code) != thunk_code) { in TestNopsAdrpInsn2LdrHasThunk()
267 DumpDiff(ArrayRef<const uint8_t>(expected_thunk_code), thunk_code); in TestNopsAdrpInsn2LdrHasThunk()
315 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kCallCode(kCallRawCode);
321 const ArrayRef<const uint8_t> Arm64RelativePatcherTest::kNopCode(kNopRawCode);
337 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
343 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
350 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
354 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
365 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
370 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
377 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
385 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
391 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
400 kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
410 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
416 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
423 uint32_t last_method_idx = Create2MethodsWithGap(kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
433 ArrayRef<const uint8_t>(expected_code))); in TEST_F()
439 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
448 method1_code, method1_patches, kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
462 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
469 ArrayRef<const uint8_t> last_method_code(last_method_raw_code); in TEST_F()
477 kNopCode, ArrayRef<const LinkerPatch>(), last_method_code, last_method_patches, in TEST_F()
492 ArrayRef<const uint8_t>(expected_code))); in TEST_F()