• Home
  • Raw
  • Download

Lines Matching refs:size_t

53 template <size_t kAlignment> class SpaceBitmap;
83 const std::unordered_map<const DexFile*, size_t>& dex_file_oat_index_map,
122 size_t oat_index = GetOatIndex(object); in GetImageAddress()
132 size_t GetOatFileOffset(size_t oat_index) const { in GetOatFileOffset()
136 const uint8_t* GetOatFileBegin(size_t oat_index) const { in GetOatFileBegin()
149 uintptr_t GetOatDataBegin(size_t oat_index) { in GetOatDataBegin()
158 size_t GetOatIndexForDexFile(const DexFile* dex_file) const;
161 size_t GetOatIndexForDexCache(ObjPtr<mirror::DexCache> dex_cache) const
166 void UpdateOatFileLayout(size_t oat_index,
167 size_t oat_loaded_size,
168 size_t oat_data_offset,
169 size_t oat_data_size);
171 void UpdateOatFileHeader(size_t oat_index, const OatHeader& oat_header);
174 using WorkStack = std::stack<std::pair<mirror::Object*, size_t>>;
246 static constexpr size_t kBinBits =
247 MinimumBitsToStore<uint32_t>(static_cast<size_t>(Bin::kMirrorCount) - 1);
251 static const size_t kBinShift = BitSizeOf<uint32_t>() - kBinBits - LockWord::kGCStateSize;
253 static const size_t kBinMask = ((static_cast<size_t>(1) << kBinBits) - 1) << kBinShift;
256 static constexpr size_t kNumberOfBins = static_cast<size_t>(Bin::kLast) + 1u;
259 static constexpr size_t kNumberOfStubTypes = static_cast<size_t>(StubType::kLast) + 1u;
297 std::pair<size_t, std::vector<ImageSection>> CreateImageSections() const;
299 size_t GetStubOffset(StubType stub_type) const { in GetStubOffset()
300 DCHECK_LT(static_cast<size_t>(stub_type), kNumberOfStubTypes); in GetStubOffset()
301 return stub_offsets_[static_cast<size_t>(stub_type)]; in GetStubOffset()
304 void SetStubOffset(StubType stub_type, size_t offset) { in SetStubOffset()
305 DCHECK_LT(static_cast<size_t>(stub_type), kNumberOfStubTypes); in SetStubOffset()
306 stub_offsets_[static_cast<size_t>(stub_type)] = offset; in SetStubOffset()
309 size_t GetBinSlotOffset(Bin bin) const { in GetBinSlotOffset()
310 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in GetBinSlotOffset()
311 return bin_slot_offsets_[static_cast<size_t>(bin)]; in GetBinSlotOffset()
314 void IncrementBinSlotSize(Bin bin, size_t size_to_add) { in IncrementBinSlotSize()
315 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in IncrementBinSlotSize()
316 bin_slot_sizes_[static_cast<size_t>(bin)] += size_to_add; in IncrementBinSlotSize()
319 size_t GetBinSlotSize(Bin bin) const { in GetBinSlotSize()
320 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in GetBinSlotSize()
321 return bin_slot_sizes_[static_cast<size_t>(bin)]; in GetBinSlotSize()
324 void IncrementBinSlotCount(Bin bin, size_t count_to_add) { in IncrementBinSlotCount()
325 DCHECK_LT(static_cast<size_t>(bin), kNumberOfBins); in IncrementBinSlotCount()
326 bin_slot_count_[static_cast<size_t>(bin)] += count_to_add; in IncrementBinSlotCount()
330 size_t GetBinSizeSum(Bin up_to) const;
340 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
342 size_t image_offset_ = 0; // Offset of this image from the start of the first image.
349 size_t image_size_ = 0;
354 size_t oat_offset_ = 0;
357 size_t oat_loaded_size_ = 0;
359 size_t oat_size_ = 0; // Size of the corresponding oat data.
367 SafeMap<const DexFile*, size_t> dex_cache_array_starts_;
373 size_t bin_slot_sizes_[kNumberOfBins] = {}; // Number of bytes in a bin.
374 size_t bin_slot_offsets_[kNumberOfBins] = {}; // Number of bytes in previous bins.
375 size_t bin_slot_count_[kNumberOfBins] = {}; // Number of objects in a bin.
378 size_t intern_table_bytes_ = 0;
381 size_t class_table_bytes_ = 0;
384 size_t object_fixup_bytes_ = 0;
387 size_t pointer_fixup_bytes_ = 0;
391 size_t num_string_references_ = 0;
400 std::vector<size_t> padding_object_offsets_;
406 void SetImageOffset(mirror::Object* object, size_t offset)
410 size_t GetImageOffset(mirror::Object* object) const REQUIRES_SHARED(Locks::mutator_lock_);
415 void AssignImageBinSlot(mirror::Object* object, size_t oat_index)
417 mirror::Object* TryAssignBinSlot(WorkStack& work_stack, mirror::Object* obj, size_t oat_index)
425 void AddDexCacheArrayRelocation(void* array, size_t offset, size_t oat_index)
432 size_t offset = GetImageOffset(object); in GetLocalAddress()
433 size_t oat_index = GetOatIndex(object); in GetLocalAddress()
485 void CreateHeader(size_t oat_index)
487 ObjPtr<mirror::ObjectArray<mirror::Object>> CollectDexCaches(Thread* self, size_t oat_index) const
490 size_t oat_index,
499 void CopyAndFixupNativeData(size_t oat_index) REQUIRES_SHARED(Locks::mutator_lock_);
502 void CopyAndFixupMethod(ArtMethod* orig, ArtMethod* copy, size_t oat_index)
567 size_t oat_index)
571 bool TryAssignImTableOffset(ImTable* imt, size_t oat_index) REQUIRES_SHARED(Locks::mutator_lock_);
575 void TryAssignConflictTableOffset(ImtConflictTable* table, size_t oat_index)
658 size_t oat_index;
692 size_t GetOatIndex(mirror::Object* object) const REQUIRES_SHARED(Locks::mutator_lock_);
695 size_t GetDefaultOatIndex() const { in GetDefaultOatIndex()
699 ImageInfo& GetImageInfo(size_t oat_index) { in GetImageInfo()
703 const ImageInfo& GetImageInfo(size_t oat_index) const { in GetImageInfo()
748 size_t image_objects_offset_begin_;
798 const std::unordered_map<const DexFile*, size_t>& dex_file_oat_index_map_;
804 size_t region_size_ = 0u;
807 size_t region_alignment_wasted_ = 0u;