Searched refs:thunk_offset (Results 1 – 3 of 3) sorted by relevance
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 98 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument 101 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 103 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 106 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 283 uint32_t thunk_offset = CompiledCode::AlignCode(method3_offset + method3_code.size(), kThumb2); in TEST_F() local 284 uint32_t diff = thunk_offset - (method3_offset + bl_offset_in_method3 + 4u /* PC adjustment */); in TEST_F() 289 EXPECT_TRUE(CheckThunk(thunk_offset)); in TEST_F() 357 uint32_t thunk_offset = method3_header_offset - CompiledCode::AlignCode(ThunkSize(), kThumb2); in TEST_F() local 358 ASSERT_TRUE(IsAligned<kArmAlignment>(thunk_offset)); in TEST_F() 359 uint32_t diff = thunk_offset - (method1_offset + bl_offset_in_method1 + 4u /* PC adjustment */); in TEST_F() [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 129 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument 132 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 134 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 137 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 307 uint32_t thunk_offset = CompiledCode::AlignCode(method1_offset + method1_size, kArm64); in TestNopsAdrpInsn2AndUseHasThunk() local 308 uint32_t b_diff = thunk_offset - (method1_offset + num_nops * 4u); in TestNopsAdrpInsn2AndUseHasThunk() 322 auto expected_thunk_code = GenNopsAndAdrpLdr(0u, thunk_offset, target_offset); in TestNopsAdrpInsn2AndUseHasThunk() 329 ASSERT_EQ(thunk_offset + thunk_size, output_.size()); in TestNopsAdrpInsn2AndUseHasThunk() 331 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk() 533 uint32_t thunk_offset = in TEST_F() local [all …]
|
D | relative_patcher_arm64.cc | 88 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() local 94 adrp_thunk_locations_.emplace_back(patch_offset, thunk_offset); in ReserveSpace() 95 thunk_offset += kAdrpThunkSize; in ReserveSpace() 183 uint32_t thunk_offset = adrp_thunk_locations_[processed_adrp_thunks_].second; in PatchPcRelativeReference() local 184 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference() 187 uint32_t out_disp = thunk_offset - patch_offset; in PatchPcRelativeReference()
|