/art/compiler/linker/x86/ |
D | relative_patcher_x86_test.cc | 33 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 49 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 55 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 62 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 66 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F() 88 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F() 95 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 98 auto result = method_offset_map_.FindMethodOffset(MethodRef(1)); in TEST_F() 108 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() [all …]
|
/art/compiler/linker/x86_64/ |
D | relative_patcher_x86_64_test.cc | 37 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 69 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 75 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 82 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() 86 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); in TEST_F() 99 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); in TEST_F() 108 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); in TEST_F() 115 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 118 auto result = method_offset_map_.FindMethodOffset(MethodRef(1u)); in TEST_F() 128 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() [all …]
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 147 AddCompiledMethod(MethodRef(1u), method1_code, method1_patches); in Create2MethodsWithGap() 160 AddCompiledMethod(MethodRef(2u), method2_code); in Create2MethodsWithGap() 162 AddCompiledMethod(MethodRef(3u), method3_code, method3_patches); in Create2MethodsWithGap() 169 auto result3 = method_offset_map_.FindMethodOffset(MethodRef(3)); in Create2MethodsWithGap() 186 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 319 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 345 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch() 352 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); in TEST_F() 358 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TEST_F() 365 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); in TEST_F() [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 114 AddCompiledMethod(MethodRef(1u), method1_code, method1_patches); in Create2MethodsWithGap() 138 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code)); in Create2MethodsWithGap() 146 AddCompiledMethod(MethodRef(method_idx), last_method_code, last_method_patches); in Create2MethodsWithGap() 151 auto last_result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in Create2MethodsWithGap() 165 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 263 AddCompiledMethod(MethodRef(1u), in TestNopsAdrpLdr() 271 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpLdr() 288 AddCompiledMethod(MethodRef(1u), in TestNopsAdrpAdd() 295 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in TestNopsAdrpAdd() 311 AddCompiledMethod(MethodRef(1u), in PrepareNopsAdrpInsn2Ldr() [all …]
|
/art/compiler/linker/mips64/ |
D | relative_patcher_mips64_test.cc | 38 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 62 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 65 auto result = method_offset_map_.FindMethodOffset(MethodRef(1u)); in CheckPcRelativePatch() 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
|
/art/compiler/linker/mips/ |
D | relative_patcher_mips32r6_test.cc | 36 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 60 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 63 auto result = method_offset_map_.FindMethodOffset(MethodRef(1u)); in CheckPcRelativePatch() 74 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
|
D | relative_patcher_mips_test.cc | 37 auto result = method_offset_map_.FindMethodOffset(MethodRef(method_idx)); in GetMethodOffset() 63 AddCompiledMethod(MethodRef(1u), kUnpatchedPcRelativeCode, ArrayRef<const LinkerPatch>(patches)); in CheckPcRelativePatch() 66 auto result = method_offset_map_.FindMethodOffset(MethodRef(1u)); in CheckPcRelativePatch() 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); in CheckPcRelativePatch()
|
/art/compiler/linker/ |
D | relative_patcher_test.h | 72 MethodReference MethodRef(uint32_t method_idx) { in MethodRef() function
|