• Home
  • Raw
  • Download

Lines Matching full:auto

67     for (const auto &arg : cachedMethod.signature) {  in GetName()
83 auto str = GetName(cachedField.klass); in GetName()
144 const auto method_name_raw = StringDataToString(file.GetStringData(mda.GetNameId())); in GetMethodFlags()
169 auto get_file = [](const LibCache::CachedClass &cached_class1) { in LogConflictingClassDefinitions()
170 if (auto file = cached_class1.file; file.HasRef()) { in LogConflictingClassDefinitions()
178auto &options = Runtime::GetCurrent()->GetVerificationOptions().Debug.GetMethodOptions().GetOption… in LogConflictingClassDefinitions()
191 auto &data = GetContext(src_lang); in MakeSyntheticClass()
193 auto id = Class::CalcUniqId(descriptor); in MakeSyntheticClass()
195 auto emplace_result = in MakeSyntheticClass()
201auto descr_emplace_result = data.descr_lookup.try_emplace(cachedClass.descriptor, std::ref(cachedC… in MakeSyntheticClass()
222 auto id = Method::CalcUniqId(cachedClass.descriptor, name); in MakeSyntheticMethod()
234 auto &data = GetContext(cachedClass.source_lang); in MakeSyntheticMethod()
235 const auto MASK = 0xFFFFULL; in MakeSyntheticMethod()
236 const auto SHIFT = 0x8ULL; in MakeSyntheticMethod()
238auto &result = data.method_cache.try_emplace(cachedMethod.id, std::move(cachedMethod)).first->seco… in MakeSyntheticMethod()
248 auto &data = GetContext(src_lang); in AddArray()
249 auto &array = in AddArray()
255 auto comp_descr = DescriptorString(ClassHelper::GetComponentDescriptor(descr)); in AddArray()
263auto &ctor = MakeSyntheticMethod(array, ctor_name, true, [&](CachedClass &c, CachedMethod &cm) { in AddArray()
280 auto &data = GetContext(lang); in InitializeRootClasses()
290auto &C = MakeSyntheticClass(lang, ClassHelper::GetPrimitiveTypeDescriptorStr(type_id), type_id, in InitializeRootClasses()
307 auto &Str = MakeSyntheticClass(lang, data.string_descr, panda_file::Type::TypeId::REFERENCE, in InitializeRootClasses()
313auto &Class = MakeSyntheticClass(lang, ctx->GetClassClassDescriptor(), panda_file::Type::TypeId::R… in InitializeRootClasses()
339 auto hash_str = [&sig_hash](const LibCache::DescriptorString &descr) { in CalcMethodHash()
343 auto constexpr SHIFT = 32U; in CalcMethodHash()
349 return CalcMethodHash(pf.GetStringData(mda.GetNameId()).data, [&](auto hash_str) { in CalcMethodHash()
354 [&](auto type, auto class_file_id) { in CalcMethodHash()
356 auto string_data = pf.GetStringData(class_file_id).data; in CalcMethodHash()
369 return CalcMethodHash(cachedMethod.name, [&](auto hash_str) { in CalcMethodHash()
375 for (const auto &arg : cachedMethod.signature) { in CalcMethodHash()
394 auto type = panda_file::Type::GetTypeFromFieldEncoding(fda.GetType()); in CalcFieldNameAndTypeHash()
400 auto type_class_id = panda_file::File::EntityId(fda.GetType()); in CalcFieldNameAndTypeHash()
405 auto constexpr SHIFT = 32U; in CalcFieldNameAndTypeHash()
415 auto it = klass->methods.find(method_hash); in TryResolveMethod()
418 for (auto &ancestor : klass->ancestors) { in TryResolveMethod()
420 auto method_ref = TryResolveMethod(&LibCache::GetRef(ancestor), method_hash); in TryResolveMethod()
441 auto method_ref = TryResolveMethod(this, method_hash); in ResolveMethod()
452 auto it = klass->fields.find(field_hash); in TryResolveField()
455 for (auto &ancestor : klass->ancestors) { in TryResolveField()
457 auto field_ref = TryResolveField(&LibCache::GetRef(ancestor), field_hash); in TryResolveField()
475 auto field_ref = TryResolveField(this, field_hash); in ResolveField()
487 auto map_span_to_vector = [](auto *vector, auto entity_id_span, auto func) { in InitializeIndex()
491 for (auto id : entity_id_span) { in InitializeIndex()
498 auto id_to_ref_or_descriptor = [&](auto class_id) -> LibCache::CachedClassRefOrDescriptor { in InitializeIndex()
499 auto type = panda_file::Type::GetTypeFromFieldEncoding(class_id.GetOffset()); in InitializeIndex()
509 auto id_to_ref_or_id = [](auto entity_id) { return entity_id; }; in InitializeIndex()
517 auto &pf = cachedMethod->file.Get(); in InitializeSignature()
519 …const_cast<panda_file::MethodDataAccessor &>(mda).EnumerateTypesInProto([&](auto type, auto class_… in InitializeSignature()
520 auto type_id = type.GetId(); in InitializeSignature()
533auto try_block_start = reinterpret_cast<const uint8_t *>(reinterpret_cast<uintptr_t>(cachedMethod-… in InitializeTryBlock()
535auto try_block_end = reinterpret_cast<const uint8_t *>(reinterpret_cast<uintptr_t>(try_block_start… in InitializeTryBlock()
537 …_file::CodeDataAccessor::TryBlock &>(try_block).EnumerateCatchBlocks([&](const auto &catch_block) { in InitializeTryBlock()
538auto handler_pc_ptr = reinterpret_cast<const uint8_t *>(reinterpret_cast<uintptr_t>(cachedMethod->… in InitializeTryBlock()
540auto &cached_catch_block = cachedMethod->catch_blocks.emplace_back(LibCache::CachedCatchBlock { in InitializeTryBlock()
542 auto type_idx = catch_block.GetTypeIdx(); in InitializeTryBlock()
544 auto &class_index = cachedMethod->indexes.classes; in InitializeTryBlock()
559 auto code_id = const_cast<panda_file::MethodDataAccessor &>(mda).GetCodeId(); in InitializeCode()
568 auto &pf = cachedMethod->file.Get(); in InitializeCode()
574 …cda.EnumerateTryBlocks([&](const auto &try_block) { return InitializeTryBlock(try_block, cachedMet… in InitializeCode()
582 auto file_id = mda.GetMethodId(); in ProcessMethod()
584 auto id = Method::CalcUniqId(&pf, file_id); in ProcessMethod()
589 auto &data = GetContext(src_lang); in ProcessMethod()
591 auto cached_method_ref = GetFromCacheAndLink(&data.method_cache, id); in ProcessMethod()
598 auto [iter, is_new] = data.indexes_cache.try_emplace(header); in ProcessMethod()
604 auto emplace_result = in ProcessMethod()
627 auto file_id = fda.GetFieldId(); in ProcessField()
629 auto id = Field::CalcUniqId(&pf, file_id); in ProcessField()
631 auto src_lang = cachedClass->source_lang; in ProcessField()
633 auto &data = GetContext(src_lang); in ProcessField()
641 auto emplace_result = data.field_cache.try_emplace(id, in ProcessField()
648 auto type = panda_file::Type::GetTypeFromFieldEncoding(fda.GetType()); in ProcessField()
659 auto type_class_id = panda_file::File::EntityId(fda.GetType()); in ProcessField()
665 auto constexpr SHIFT = 32U; in ProcessField()
680 auto &pf = cda->GetPandaFile(); in AddAncestors()
682 auto add_ancestor = [&](auto entity_id) { in AddAncestors()
692 auto super_class_id = cda->GetSuperClassId(); in AddAncestors()
700 auto id = Class::CalcUniqId(&pf, entity_id); in ProcessClass()
706 auto &data = GetContext(src_lang); in ProcessClass()
708 auto cached_class_ref = GetFromCacheAndLink(&data.class_cache, id); in ProcessClass()
714 auto emplace_result = in ProcessClass()
729 auto &cachedMethod = ProcessMethod(&cachedClass, pf, mda); in ProcessClass()
736 auto &cachedField = ProcessField(&cachedClass, pf, fda); in ProcessClass()
743auto descr_emplace_result = data.descr_lookup.try_emplace(cachedClass.descriptor, std::ref(cachedC… in ProcessClass()
760 auto &data = GetContext(src_lang); in ResolveByDescriptor()
762 const auto it = data.descr_lookup.find(descriptor); in ResolveByDescriptor()
783 auto resolved = ResolveByDescriptor(src_lang, descriptor, reportError); in ResolveAndLink()
804 auto src_lang = cachedClass->source_lang; in Link()
806 for (auto &ancestor : cachedClass->ancestors) { in Link()
811 auto &array_component = cachedClass->array_component; in Link()
826 auto &class_ref = cachedMethod->klass; in Link()
831 auto src_lang = class_ref.source_lang; in Link()
839 for (auto &catch_block : cachedMethod->catch_blocks) { in Link()
840 auto exc_type = catch_block.exception_type; in Link()
861 auto &class_ref = cachedField->klass; in Link()
884 auto resolved = ResolveByDescriptor(src_lang, descriptor, reportError); in ResolveAndLink()
898 auto &index = cachedMethod.indexes.classes; in GetFromCache()
905 auto &item = index[idx]; in GetFromCache()
923 auto src_lang = cachedMethod.GetSourceLang(); in ResolveMethod()
927 auto class_ref = ResolveAndLink(method_src_lang, descr); in ResolveMethod()
935 auto &data = GetContext(src_lang); in ResolveMethod()
939 auto resolved_method = class_ref->ResolveMethod(method_hash); in ResolveMethod()
964 auto &index = cachedMethod.indexes.methods; in GetFromCache()
970 auto &item = index[idx]; in GetFromCache()
976 auto src_lang = cachedMethod.GetSourceLang(); in GetFromCache()
977 auto &data = GetContext(src_lang); in GetFromCache()
978 auto method_ref = data.file_cache.GetCached<CachedMethod>(*cachedMethod.file, id); in GetFromCache()
988 auto res = ResolveMethod(cachedMethod, id); in GetFromCache()
1001 auto &index = cachedMethod.indexes.fields; in GetFromCache()
1007 auto &item = index[idx]; in GetFromCache()
1013 auto src_lang = cachedMethod.GetSourceLang(); in GetFromCache()
1016 auto &data = GetContext(src_lang); in GetFromCache()
1018 auto field_ref = data.file_cache.GetCached<CachedField>(file, id); in GetFromCache()
1032 auto class_ref = ResolveAndLink(src_lang, descr); in GetFromCache()
1042 auto resolved_field = class_ref->ResolveField(field_hash); in GetFromCache()
1068 auto descriptor = GetContext(src_lang).string_descr; in GetStringClass()
1075 auto descriptor = GetContext(src_lang).string_array_descr; in GetStringArrayClass()
1082 auto &processed_files = data_.GetObj().processed_files; in ProcessFile()
1083 auto [iter, emplaced] = processed_files.try_emplace(pf.GetUniqId(), &pf); in ProcessFile()
1099 auto classes_indexes = pf.GetClasses(); in ProcessFile()
1100 for (auto idx : classes_indexes) { in ProcessFile()
1111 for (const auto &pf : pfs) { in ProcessFiles()