Lines Matching refs:size_t

55 template <size_t kAlignment> class SpaceBitmap;
85 const std::unordered_map<const DexFile*, size_t>& dex_file_oat_index_map,
124 size_t oat_index = GetOatIndex(object); in GetImageAddress()
134 size_t GetOatFileOffset(size_t oat_index) const { in GetOatFileOffset()
138 const uint8_t* GetOatFileBegin(size_t oat_index) const { in GetOatFileBegin()
148 size_t component_count)
151 uintptr_t GetOatDataBegin(size_t oat_index) { in GetOatDataBegin()
160 size_t GetOatIndexForDexFile(const DexFile* dex_file) const;
163 size_t GetOatIndexForClass(ObjPtr<mirror::Class> klass) const
168 void UpdateOatFileLayout(size_t oat_index,
169 size_t oat_loaded_size,
170 size_t oat_data_offset,
171 size_t oat_data_size);
173 void UpdateOatFileHeader(size_t oat_index, const OatHeader& oat_header);
247 static constexpr size_t kBinBits =
248 MinimumBitsToStore<uint32_t>(static_cast<size_t>(Bin::kMirrorCount) - 1);
252 static const size_t kBinShift = BitSizeOf<uint32_t>() - kBinBits - LockWord::kGCStateSize;
254 static const size_t kBinMask = ((static_cast<size_t>(1) << kBinBits) - 1) << kBinShift;
257 static constexpr size_t kNumberOfBins = static_cast<size_t>(Bin::kLast) + 1u;
260 static constexpr size_t kNumberOfStubTypes = static_cast<size_t>(StubType::kLast) + 1u;
298 std::pair<size_t, std::vector<ImageSection>> CreateImageSections() const;
300 size_t GetStubOffset(StubType stub_type) const { in GetStubOffset()
301 DCHECK_LT(static_cast<size_t>(stub_type), kNumberOfStubTypes); in GetStubOffset()
302 return stub_offsets_[static_cast<size_t>(stub_type)]; in GetStubOffset()
305 void SetStubOffset(StubType stub_type, size_t offset) { in SetStubOffset()
306 DCHECK_LT(static_cast<size_t>(stub_type), kNumberOfStubTypes); in SetStubOffset()
307 stub_offsets_[static_cast<size_t>(stub_type)] = offset; in SetStubOffset()
310 size_t GetBinSlotOffset(Bin bin) const { in GetBinSlotOffset()
311 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in GetBinSlotOffset()
312 return bin_slot_offsets_[static_cast<size_t>(bin)]; in GetBinSlotOffset()
315 void IncrementBinSlotSize(Bin bin, size_t size_to_add) { in IncrementBinSlotSize()
316 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in IncrementBinSlotSize()
317 bin_slot_sizes_[static_cast<size_t>(bin)] += size_to_add; in IncrementBinSlotSize()
320 size_t GetBinSlotSize(Bin bin) const { in GetBinSlotSize()
321 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in GetBinSlotSize()
322 return bin_slot_sizes_[static_cast<size_t>(bin)]; in GetBinSlotSize()
325 void IncrementBinSlotCount(Bin bin, size_t count_to_add) { in IncrementBinSlotCount()
326 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in IncrementBinSlotCount()
327 bin_slot_count_[static_cast<size_t>(bin)] += count_to_add; in IncrementBinSlotCount()
331 size_t GetBinSizeSum(Bin up_to) const;
341 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
343 size_t image_offset_ = 0; // Offset of this image from the start of the first image.
350 size_t image_size_ = 0;
355 size_t oat_offset_ = 0;
358 size_t oat_loaded_size_ = 0;
360 size_t oat_size_ = 0; // Size of the corresponding oat data.
368 SafeMap<const DexFile*, size_t> dex_cache_array_starts_;
374 size_t bin_slot_sizes_[kNumberOfBins] = {}; // Number of bytes in a bin.
375 size_t bin_slot_offsets_[kNumberOfBins] = {}; // Number of bytes in previous bins.
376 size_t bin_slot_count_[kNumberOfBins] = {}; // Number of objects in a bin.
379 size_t intern_table_bytes_ = 0;
382 size_t class_table_bytes_ = 0;
385 size_t object_fixup_bytes_ = 0;
388 size_t pointer_fixup_bytes_ = 0;
392 size_t num_string_references_ = 0;
405 std::vector<size_t> padding_offsets_;
409 size_t GetImageOffset(mirror::Object* object, size_t oat_index) const
413 Bin AssignImageBinSlot(mirror::Object* object, size_t oat_index)
415 void RecordNativeRelocations(ObjPtr<mirror::Object> obj, size_t oat_index)
421 BinSlot GetImageBinSlot(mirror::Object* object, size_t oat_index) const
423 void UpdateImageBinSlotOffset(mirror::Object* object, size_t oat_index, size_t new_offset)
426 void AddDexCacheArrayRelocation(void* array, size_t offset, size_t oat_index)
474 void CreateHeader(size_t oat_index, size_t component_count)
476 ObjPtr<mirror::ObjectArray<mirror::Object>> CollectDexCaches(Thread* self, size_t oat_index) const
479 size_t oat_index,
486 void CopyAndFixupNativeData(size_t oat_index) REQUIRES_SHARED(Locks::mutator_lock_);
489 void CopyAndFixupMethod(ArtMethod* orig, ArtMethod* copy, size_t oat_index)
552 size_t oat_index)
556 bool TryAssignImTableOffset(ImTable* imt, size_t oat_index) REQUIRES_SHARED(Locks::mutator_lock_);
560 void TryAssignConflictTableOffset(ImtConflictTable* table, size_t oat_index)
586 size_t oat_index;
620 size_t GetOatIndex(mirror::Object* object) const REQUIRES_SHARED(Locks::mutator_lock_);
623 static constexpr size_t GetDefaultOatIndex() { in GetDefaultOatIndex()
627 ImageInfo& GetImageInfo(size_t oat_index) { in GetImageInfo()
631 const ImageInfo& GetImageInfo(size_t oat_index) const { in GetImageInfo()
676 size_t image_objects_offset_begin_;
723 const std::unordered_map<const DexFile*, size_t>& dex_file_oat_index_map_;
729 size_t region_size_ = 0u;
732 size_t region_alignment_wasted_ = 0u;