Lines Matching refs:ArrayRef
29 static const ArrayRef<const uint8_t> kCallCode;
31 static const ArrayRef<const uint8_t> kNopCode;
41 bool Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, in Create2MethodsWithGap()
42 const ArrayRef<const LinkerPatch>& method1_patches, in Create2MethodsWithGap()
43 const ArrayRef<const uint8_t>& method3_code, in Create2MethodsWithGap()
44 const ArrayRef<const LinkerPatch>& method3_patches, in Create2MethodsWithGap()
61 ArrayRef<const uint8_t> method2_code(method2_raw_code); in Create2MethodsWithGap()
62 AddCompiledMethod(MethodRef(2u), method2_code, ArrayRef<const LinkerPatch>()); in Create2MethodsWithGap()
96 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); in CheckThunk()
102 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
133 const ArrayRef<const uint8_t> code(raw_code); in TestDexCachereference()
138 AddCompiledMethod(MethodRef(1u), code, ArrayRef<const LinkerPatch>(patches)); in TestDexCachereference()
164 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestDexCachereference()
172 const ArrayRef<const uint8_t> Thumb2RelativePatcherTest::kCallCode(kCallRawCode);
178 const ArrayRef<const uint8_t> Thumb2RelativePatcherTest::kNopCode(kNopRawCode);
184 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
190 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
197 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F()
201 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F()
212 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F()
217 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F()
224 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F()
232 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
238 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
246 kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
252 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
258 ArrayRef<const uint8_t> method3_code(method3_raw_code); in TEST_F()
265 bool thunk_in_gap = Create2MethodsWithGap(kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
272 EXPECT_TRUE(CheckLinkedMethod(MethodRef(3u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
278 ArrayRef<const uint8_t> method1_code(method1_raw_code); in TEST_F()
286 kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
300 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()
307 ArrayRef<const uint8_t> method3_code(method3_raw_code); in TEST_F()
314 bool thunk_in_gap = Create2MethodsWithGap(kNopCode, ArrayRef<const LinkerPatch>(), in TEST_F()
326 EXPECT_TRUE(CheckLinkedMethod(MethodRef(3u), ArrayRef<const uint8_t>(expected_code))); in TEST_F()