Lines Matching refs:offset

90   uint32_t ReserveOffset(size_t offset) {  in ReserveOffset()  argument
92 DCHECK_LE(offset, max_next_offset_); in ReserveOffset()
94 offsets_.push_back(offset); in ReserveOffset()
95 return offset + CodeSize(); in ReserveOffset()
130 size_t IndexOfFirstThunkAtOrAfter(uint32_t offset) const { in IndexOfFirstThunkAtOrAfter()
133 if (GetThunkOffset(i) >= offset) { in IndexOfFirstThunkAtOrAfter()
168 uint32_t ArmBaseRelativePatcher::ReserveSpace(uint32_t offset, in ReserveSpace() argument
171 return ReserveSpaceInternal(offset, compiled_method, method_ref, 0u); in ReserveSpace()
174 uint32_t ArmBaseRelativePatcher::ReserveSpaceEnd(uint32_t offset) { in ReserveSpaceEnd() argument
180 ResolveMethodCalls(offset, MethodReference(nullptr, dex::kDexNoIndex)); in ReserveSpaceEnd()
183 uint32_t thunk_offset = CompiledCode::AlignCode(offset, instruction_set_); in ReserveSpaceEnd()
184 offset = data->ReserveOffset(thunk_offset); in ReserveSpaceEnd()
190 return offset; in ReserveSpaceEnd()
193 uint32_t ArmBaseRelativePatcher::WriteThunks(OutputStream* out, uint32_t offset) { in WriteThunks() argument
196 return offset; in WriteThunks()
208 uint32_t aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in WriteThunks()
212 uint32_t aligned_code_delta = aligned_offset - offset; in WriteThunks()
219 offset = aligned_offset + pending_thunks_.front()->CodeSize(); in WriteThunks()
228 aligned_offset = CompiledMethod::AlignCode(offset, instruction_set_); in WriteThunks()
231 return offset; in WriteThunks()
291 uint32_t ArmBaseRelativePatcher::ReserveSpaceInternal(uint32_t offset, in ReserveSpaceInternal() argument
300 code_offset = compiled_method->AlignCode(offset + sizeof(OatQuickMethodHeader)); in ReserveSpaceInternal()
318 uint32_t thunk_offset = CompiledCode::AlignCode(offset, instruction_set_); in ReserveSpaceInternal()
319 offset = thunk->ReserveOffset(thunk_offset); in ReserveSpaceInternal()
338 return offset; in ReserveSpaceInternal()
372 uint32_t offset = data.LastWrittenOffset(); in GetThunkTargetOffset() local
373 DCHECK_LT(offset, patch_offset); in GetThunkTargetOffset()
374 if (patch_offset - offset <= MaxNegativeDisplacement(key)) { in GetThunkTargetOffset()
375 return offset; in GetThunkTargetOffset()
379 uint32_t offset = data.GetPendingOffset(); in GetThunkTargetOffset() local
380 DCHECK_GT(offset, patch_offset); in GetThunkTargetOffset()
381 DCHECK_LE(offset - patch_offset, MaxPositiveDisplacement(key)); in GetThunkTargetOffset()
382 return offset; in GetThunkTargetOffset()