Lines Matching refs:patch
754 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in VisitMethod() local
755 if (!patch.IsPcRelative()) { in VisitMethod()
756 writer_->absolute_patch_locations_.push_back(base_loc + patch.LiteralOffset()); in VisitMethod()
1041 for (const LinkerPatch& patch : compiled_method->GetPatches()) { in VisitMethod() local
1042 uint32_t literal_offset = patch.LiteralOffset(); in VisitMethod()
1043 switch (patch.GetType()) { in VisitMethod()
1046 uint32_t target_offset = GetTargetOffset(patch); in VisitMethod()
1054 uint32_t target_offset = GetDexCacheOffset(patch); in VisitMethod()
1056 patch, in VisitMethod()
1062 uint32_t target_offset = GetTargetObjectOffset(GetTargetString(patch)); in VisitMethod()
1064 patch, in VisitMethod()
1070 uint32_t target_offset = GetTargetOffset(patch); in VisitMethod()
1075 ArtMethod* method = GetTargetMethod(patch); in VisitMethod()
1080 mirror::String* string = GetTargetString(patch); in VisitMethod()
1085 mirror::Class* type = GetTargetType(patch); in VisitMethod()
1090 DCHECK_EQ(patch.GetType(), LinkerPatch::Type::kRecordPosition); in VisitMethod()
1125 ArtMethod* GetTargetMethod(const LinkerPatch& patch) in GetTargetMethod() argument
1127 MethodReference ref = patch.TargetMethod(); in GetTargetMethod()
1137 uint32_t GetTargetOffset(const LinkerPatch& patch) SHARED_REQUIRES(Locks::mutator_lock_) { in GetTargetOffset() argument
1138 uint32_t target_offset = writer_->relative_patcher_->GetOffset(patch.TargetMethod()); in GetTargetOffset()
1142 ArtMethod* target = GetTargetMethod(patch); in GetTargetOffset()
1161 mirror::Class* GetTargetType(const LinkerPatch& patch) SHARED_REQUIRES(Locks::mutator_lock_) { in GetTargetType() argument
1162 mirror::DexCache* dex_cache = (dex_file_ == patch.TargetTypeDexFile()) in GetTargetType()
1164 : class_linker_->FindDexCache(Thread::Current(), *patch.TargetTypeDexFile()); in GetTargetType()
1165 mirror::Class* type = dex_cache->GetResolvedType(patch.TargetTypeIndex()); in GetTargetType()
1170 mirror::String* GetTargetString(const LinkerPatch& patch) SHARED_REQUIRES(Locks::mutator_lock_) { in GetTargetString() argument
1171 mirror::String* string = dex_cache_->GetResolvedString(patch.TargetStringIndex()); in GetTargetString()
1178 uint32_t GetDexCacheOffset(const LinkerPatch& patch) SHARED_REQUIRES(Locks::mutator_lock_) { in GetDexCacheOffset() argument
1181 patch.TargetDexCacheDexFile(), patch.TargetDexCacheElementOffset()); in GetDexCacheOffset()
1186 size_t start = writer_->dex_cache_arrays_offsets_.Get(patch.TargetDexCacheDexFile()); in GetDexCacheOffset()
1187 return start + patch.TargetDexCacheElementOffset(); in GetDexCacheOffset()