Searched refs:thunk_offset (Results 1 – 4 of 4) sorted by relevance
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 248 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument 250 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 252 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 255 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 485 uint32_t thunk_offset = CompiledCode::AlignCode( in TEST_F() local 488 thunk_offset - (last_method_offset + bl_offset_in_last_method + 4u /* PC adjustment */); in TEST_F() 494 EXPECT_TRUE(CheckThunk(thunk_offset)); in TEST_F() 578 uint32_t thunk_offset = RoundDown(method_after_thunk_header_offset - thunk_size, kArmAlignment); in TEST_F() local 579 DCHECK_EQ(thunk_offset + thunk_size + CodeAlignmentSize(thunk_offset + thunk_size), in TEST_F() 581 ASSERT_TRUE(IsAligned<kArmAlignment>(thunk_offset)); in TEST_F() [all …]
|
D | relative_patcher_arm_base.cc | 183 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/ |
D | relative_patcher_arm64_test.cc | 221 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument 223 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk() 225 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk() 228 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk() 392 uint32_t thunk_offset = in TestNopsAdrpInsn2AndUseHasThunk() local 394 uint32_t b_diff = thunk_offset - (method1_offset + num_nops * 4u); in TestNopsAdrpInsn2AndUseHasThunk() 408 auto expected_thunk_code = GenNopsAndAdrpLdr(0u, thunk_offset, target_offset); in TestNopsAdrpInsn2AndUseHasThunk() 415 ASSERT_EQ(thunk_offset + thunk_size, output_.size()); in TestNopsAdrpInsn2AndUseHasThunk() 417 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk() 653 uint32_t thunk_offset = in TEST_F() local [all …]
|
D | relative_patcher_arm64.cc | 134 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() local 140 adrp_thunk_locations_.emplace_back(patch_offset, thunk_offset); in ReserveSpace() 141 thunk_offset += kAdrpThunkSize; in ReserveSpace() 230 uint32_t thunk_offset = adrp_thunk_locations_[processed_adrp_thunks_].second; in PatchPcRelativeReference() local 231 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference() 234 uint32_t out_disp = thunk_offset - patch_offset; in PatchPcRelativeReference()
|