Lines Matching refs:dex
41 ProfileClassReference(const DexFile* dex, const dex::TypeIndex index)
42 : dex_file(dex), type_index(index) {}
45 dex::TypeIndex type_index;
59 ProfileMethodInfo(const DexFile* dex, uint32_t method_index)
60 : dex_file(dex), dex_method_index(method_index) {}
62 ProfileMethodInfo(const DexFile* dex,
65 : dex_file(dex), dex_method_index(method_index), inline_caches(caches) {}
88 // A dex location together with its checksum.
109 // The owning dex file is encoded as the index (dex_profile_index) it has in the
117 // data from multiple splits. This means that a profile may contain a classes2.dex from split-A
120 ClassReference(uint8_t dex_profile_idx, const dex::TypeIndex type_idx) :
132 uint8_t dex_profile_index; // the index of the owning dex in the profile info
133 dex::TypeIndex type_index; // the type index of the class
136 // The set of classes that can be found at a given dex pc.
139 // Encodes the actual inline cache for a given dex pc (whether or not the receiver is
147 void AddClass(uint16_t dex_profile_idx, const dex::TypeIndex& type_idx);
165 // type is in a dex file which is not tracked for profiling its type cannot be
175 // Maps a method dex index to its inline cache.
180 // i.e. the dex file of any ClassReference present in the inline caches can be found at
231 bool ContainsClass(const DexFile& dex_file, dex::TypeIndex type_idx) const;
250 // Return the classes and methods for a given dex file through out args. The out args are the set
251 // of class as well as the methods and their associated inline caches. Returns true if the dex
254 /*out*/std::set<dex::TypeIndex>* class_set,
264 // Return the profile key associated with the given dex location.
276 // the provided list of dex files.
296 // Internal representation of the profile information belonging to a dex file.
297 // Note that we could do without profile_key (the key used to encode the dex
298 // file in the profile) and profile_index (the index of the dex file in the
312 class_set(std::less<dex::TypeIndex>(), arena->Adapter(kArenaAllocProfile)) {}
318 // The profile index of this dex file (matches ClassReference#dex_profile_index).
320 // The dex checksum.
326 ArenaSet<dex::TypeIndex> class_set;
337 // Return the profile data for the given profile key or null if the dex location
355 bool AddClassIndex(const std::string& dex_location, uint32_t checksum, dex::TypeIndex type_idx);
357 // Add all classes from the given dex cache to the the profile.
367 // be the same as the profile index of the dex file (used to encode the ClassReferences).
370 // Return the dex data associated with the given profile key or null if the profile
472 // Group `classes` by their owning dex profile index and put the result in
476 /*out*/SafeMap<uint8_t, std::vector<dex::TypeIndex>>* dex_to_classes_map);
491 // The vector index is the profile index of the dex data and