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.cc262 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument
264 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
266 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
269 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
507 uint32_t thunk_offset = CompiledCode::AlignCode( in TEST_F() local
510 thunk_offset - (last_method_offset + bl_offset_in_last_method + 4u /* PC adjustment */); in TEST_F()
516 EXPECT_TRUE(CheckThunk(thunk_offset)); in TEST_F()
600 uint32_t thunk_offset = in TEST_F() local
602 DCHECK_EQ(thunk_offset + thunk_size + CodeAlignmentSize(thunk_offset + thunk_size), in TEST_F()
604 ASSERT_TRUE(IsAligned<kArmCodeAlignment>(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.cc228 bool CheckThunk(uint32_t thunk_offset) { in CheckThunk() argument
230 if (output_.size() < thunk_offset + expected_code.size()) { in CheckThunk()
232 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); in CheckThunk()
235 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); in CheckThunk()
399 uint32_t thunk_offset = in TestNopsAdrpInsn2AndUseHasThunk() local
401 uint32_t b_diff = thunk_offset - (method1_offset + num_nops * 4u); in TestNopsAdrpInsn2AndUseHasThunk()
415 auto expected_thunk_code = GenNopsAndAdrpLdr(0u, thunk_offset, target_offset); in TestNopsAdrpInsn2AndUseHasThunk()
422 ASSERT_EQ(thunk_offset + thunk_size, output_.size()); in TestNopsAdrpInsn2AndUseHasThunk()
424 ArrayRef<const uint8_t> thunk_code(&output_[thunk_offset], thunk_size); in TestNopsAdrpInsn2AndUseHasThunk()
668 uint32_t thunk_offset = in TEST_F() local
[all …]
Drelative_patcher_arm64.cc139 uint32_t thunk_offset = compiled_method->AlignCode(quick_code_offset + code.size()); in ReserveSpace() local
145 adrp_thunk_locations_.emplace_back(patch_offset, thunk_offset); in ReserveSpace()
146 thunk_offset += kAdrpThunkSize; in ReserveSpace()
226 uint32_t thunk_offset = adrp_thunk_locations_[processed_adrp_thunks_].second; in PatchPcRelativeReference() local
227 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference()
230 uint32_t out_disp = thunk_offset - patch_offset; in PatchPcRelativeReference()