Lines Matching refs:dex_file
40 const DexFile* dex_file, in InitializeDexCache() argument
43 DCHECK(dex_file != nullptr); in InitializeDexCache()
45 DexCacheArraysLayout layout(image_pointer_size, dex_file); in InitializeDexCache()
48 if (dex_file->NumStringIds() != 0u || in InitializeDexCache()
49 dex_file->NumTypeIds() != 0u || in InitializeDexCache()
50 dex_file->NumMethodIds() != 0u || in InitializeDexCache()
51 dex_file->NumFieldIds() != 0u) { in InitializeDexCache()
60 StringDexCacheType* strings = (dex_file->NumStringIds() == 0u) ? nullptr : in InitializeDexCache()
62 TypeDexCacheType* types = (dex_file->NumTypeIds() == 0u) ? nullptr : in InitializeDexCache()
64 MethodDexCacheType* methods = (dex_file->NumMethodIds() == 0u) ? nullptr : in InitializeDexCache()
66 FieldDexCacheType* fields = (dex_file->NumFieldIds() == 0u) ? nullptr : in InitializeDexCache()
70 if (dex_file->NumStringIds() < num_strings) { in InitializeDexCache()
71 num_strings = dex_file->NumStringIds(); in InitializeDexCache()
74 if (dex_file->NumTypeIds() < num_types) { in InitializeDexCache()
75 num_types = dex_file->NumTypeIds(); in InitializeDexCache()
78 if (dex_file->NumFieldIds() < num_fields) { in InitializeDexCache()
79 num_fields = dex_file->NumFieldIds(); in InitializeDexCache()
82 if (dex_file->NumMethodIds() < num_methods) { in InitializeDexCache()
83 num_methods = dex_file->NumMethodIds(); in InitializeDexCache()
95 if (dex_file->NumProtoIds() < kDexCacheMethodTypeCacheSize) { in InitializeDexCache()
96 num_method_types = dex_file->NumProtoIds(); in InitializeDexCache()
106 GcRoot<mirror::CallSite>* call_sites = (dex_file->NumCallSiteIds() == 0) in InitializeDexCache()
140 for (size_t i = 0; i < dex_file->NumCallSiteIds(); ++i) { in InitializeDexCache()
159 dex_cache->Init(dex_file, in InitializeDexCache()
172 dex_file->NumCallSiteIds()); in InitializeDexCache()
196 void DexCache::Init(const DexFile* dex_file, in Init() argument
210 CHECK(dex_file != nullptr); in Init()
219 SetDexFile(dex_file); in Init()