Home
last modified time | relevance | path

Searched refs:thunk_offset (Results 1 – 4 of 4) sorted by relevance

/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc249 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument
251 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
253 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
256 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
486 uint32_t thunk_offset = CompiledCode::AlignCode( in TEST_F() local
489 thunk_offset - (last_method_offset + bl_offset_in_last_method + 4u /* PC adjustment */); in TEST_F()
495 EXPECT_TRUE(CheckThunk(thunk_offset)); in TEST_F()
579 uint32_t thunk_offset = RoundDown(method_after_thunk_header_offset - thunk_size, kArmAlignment); in TEST_F() local
580 DCHECK_EQ(thunk_offset + thunk_size + CodeAlignmentSize(thunk_offset + thunk_size), in TEST_F()
582 ASSERT_TRUE(IsAligned<kArmAlignment>(thunk_offset)); in TEST_F()
[all …]
Drelative_patcher_arm_base.cc183 uint32_t thunk_offset = CompiledCode::AlignCode(offset, instruction_set_); in ReserveSpaceEnd() local
184 offset = data->ReserveOffset(thunk_offset); in ReserveSpaceEnd()
318 uint32_t thunk_offset = CompiledCode::AlignCode(offset, instruction_set_); in ReserveSpaceInternal() local
319 offset = thunk->ReserveOffset(thunk_offset); in ReserveSpaceInternal()
323 DCHECK_LE(thunk_offset - unprocessed_method_call_patches_.front().GetPatchOffset(), in ReserveSpaceInternal()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64_test.cc222 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument
224 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
226 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
229 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
393 uint32_t thunk_offset = in TestNopsAdrpInsn2AndUseHasThunk() local
395 uint32_t b_diff = thunk_offset - (method1_offset + num_nops * 4u); in TestNopsAdrpInsn2AndUseHasThunk()
409 auto expected_thunk_code = GenNopsAndAdrpLdr(0u, thunk_offset, target_offset); in TestNopsAdrpInsn2AndUseHasThunk()
416 ASSERT_EQ(thunk_offset + thunk_size, output_.size()); in TestNopsAdrpInsn2AndUseHasThunk()
418 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk()
654 uint32_t thunk_offset = in TEST_F() local
[all …]
Drelative_patcher_arm64.cc135 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() local
141 adrp_thunk_locations_.emplace_back(patch_offset, thunk_offset); in ReserveSpace()
142 thunk_offset += kAdrpThunkSize; in ReserveSpace()
222 uint32_t thunk_offset = adrp_thunk_locations_[processed_adrp_thunks_].second; in PatchPcRelativeReference() local
223 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference()
226 uint32_t out_disp = thunk_offset - patch_offset; in PatchPcRelativeReference()