/art/runtime/utils/ |
D | dex_cache_arrays_layout.h | 56 size_t Size() const { in Size() 60 size_t Alignment() const; 62 static constexpr size_t Alignment(PointerSize pointer_size); 64 size_t TypesOffset() const { in TypesOffset() 68 size_t TypeOffset(dex::TypeIndex type_idx) const; 70 size_t TypesSize(size_t num_elements) const; 72 size_t TypesAlignment() const; 74 size_t MethodsOffset() const { in MethodsOffset() 78 size_t MethodOffset(uint32_t method_idx) const; 80 size_t MethodsSize(size_t num_elements) const; [all …]
|
D | dex_cache_arrays_layout-inl.h | 55 inline size_t DexCacheArraysLayout::Alignment() const { in Alignment() 59 inline constexpr size_t DexCacheArraysLayout::Alignment(PointerSize pointer_size) { in Alignment() 69 return 2u * static_cast<size_t>(pointer_size); in Alignment() 78 inline size_t DexCacheArraysLayout::TypeOffset(dex::TypeIndex type_idx) const { in TypeOffset() 83 inline size_t DexCacheArraysLayout::TypesSize(size_t num_elements) const { in TypesSize() 84 size_t cache_size = mirror::DexCache::kDexCacheTypeCacheSize; in TypesSize() 91 inline size_t DexCacheArraysLayout::TypesAlignment() const { in TypesAlignment() 95 inline size_t DexCacheArraysLayout::MethodOffset(uint32_t method_idx) const { in MethodOffset() 99 inline size_t DexCacheArraysLayout::MethodsSize(size_t num_elements) const { in MethodsSize() 100 size_t cache_size = mirror::DexCache::kDexCacheMethodCacheSize; in MethodsSize() [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space.h | 39 size_t starting_size, 40 size_t initial_size, 41 size_t growth_limit, 42 size_t capacity, 50 size_t initial_size, 51 size_t growth_limit, 52 size_t capacity, 57 size_t num_bytes, 58 size_t* bytes_allocated, 59 size_t* usable_size, [all …]
|
D | rosalloc_space.h | 42 size_t initial_size, 43 size_t growth_limit, 44 size_t capacity, 49 size_t starting_size, 50 size_t initial_size, 51 size_t growth_limit, 52 size_t capacity, 56 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 57 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 59 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() [all …]
|
D | malloc_space.h | 41 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 48 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, 49 size_t* bytes_allocated, size_t* usable_size, 50 size_t* bytes_tl_bulk_allocated) = 0; 52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 53 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override = 0; 56 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override = 0; 57 size_t Free(Thread* self, mirror::Object* ptr) override 59 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override 65 virtual size_t MaxBytesBulkAllocatedFor(size_t num_bytes) = 0; [all …]
|
D | memory_tool_malloc_space-inl.h | 32 template <size_t kMemoryToolRedZoneBytes, bool kUseObjSizeForUsable> 34 size_t num_bytes, in AdjustForMemoryTool() 35 size_t bytes_allocated, in AdjustForMemoryTool() 36 size_t usable_size, in AdjustForMemoryTool() 37 size_t bytes_tl_bulk_allocated, in AdjustForMemoryTool() 38 size_t* bytes_allocated_out, in AdjustForMemoryTool() 39 size_t* usable_size_out, in AdjustForMemoryTool() 40 size_t* bytes_tl_bulk_allocated_out) { in AdjustForMemoryTool() 78 inline size_t GetObjSizeNoThreadSafety(mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS { in GetObjSizeNoThreadSafety() 85 size_t kMemoryToolRedZoneBytes, [all …]
|
D | memory_tool_malloc_space.h | 29 size_t kMemoryToolRedZoneBytes, 34 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 35 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 38 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override; 39 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, 40 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 43 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override; 45 size_t Free(Thread* self, mirror::Object* ptr) override 48 size_t FreeList(Thread* self, size_t num_ptrs, mirror::Object** ptrs) override [all …]
|
D | region_space.h | 46 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 61 static MemMap CreateMemMap(const std::string& name, size_t capacity, uint8_t* requested_begin); 66 size_t num_bytes, 67 /* out */ size_t* bytes_allocated, 68 /* out */ size_t* usable_size, 69 /* out */ size_t* bytes_tl_bulk_allocated) 73 size_t num_bytes, 74 /* out */ size_t* bytes_allocated, 75 /* out */ size_t* usable_size, 76 /* out */ size_t* bytes_tl_bulk_allocated) [all …]
|
D | bump_pointer_space.h | 42 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 51 static BumpPointerSpace* Create(const std::string& name, size_t capacity); 55 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 56 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override; 58 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, 59 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 62 mirror::Object* AllocNonvirtual(size_t num_bytes); 63 mirror::Object* AllocNonvirtualWithoutAccounting(size_t num_bytes); 66 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override in AllocationSize() 72 size_t Free(Thread*, mirror::Object*) override { in Free() [all …]
|
D | dlmalloc_space.cc | 42 size_t initial_size, in DlMallocSpace() 48 size_t growth_limit, in DlMallocSpace() 50 size_t starting_size) in DlMallocSpace() 66 size_t starting_size, in CreateFromMemMap() 67 size_t initial_size, in CreateFromMemMap() 68 size_t growth_limit, in CreateFromMemMap() 69 size_t capacity, in CreateFromMemMap() 112 size_t initial_size, in Create() 113 size_t growth_limit, in Create() 114 size_t capacity, in Create() [all …]
|
D | large_object_space_test.cc | 30 static constexpr size_t kNumThreads = 10; 31 static constexpr size_t kNumIterations = 1000; 37 size_t rand_seed = 0; in LargeObjectTest() 39 for (size_t i = 0; i < 2; ++i) { in LargeObjectTest() 41 const size_t capacity = 128 * MB; in LargeObjectTest() 54 static const size_t num_allocations = 64; in LargeObjectTest() 55 static const size_t max_allocation_size = 0x100000; in LargeObjectTest() 56 std::vector<std::pair<mirror::Object*, size_t>> requests; in LargeObjectTest() 58 for (size_t phase = 0; phase < 2; ++phase) { in LargeObjectTest() 60 size_t request_size = test_rand(&rand_seed) % max_allocation_size; in LargeObjectTest() [all …]
|
/art/libartbase/base/ |
D | length_prefixed_array.h | 33 explicit LengthPrefixedArray(size_t length) in LengthPrefixedArray() 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const { 46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 50 StrideIterator<const T> begin(size_t element_size = sizeof(T), 51 size_t alignment = alignof(T)) const { 55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 59 StrideIterator<const T> end(size_t element_size = sizeof(T), 60 size_t alignment = alignof(T)) const { 64 static size_t OffsetOfElement(size_t index, [all …]
|
D | bit_memory_region.h | 38 ALWAYS_INLINE BitMemoryRegion(uint8_t* data, ssize_t bit_start, size_t bit_size) { in BitMemoryRegion() 44 DCHECK_LT(bit_start_, static_cast<size_t>(kBitsPerIntPtrT)); in BitMemoryRegion() 49 ALWAYS_INLINE BitMemoryRegion(MemoryRegion region, size_t bit_offset, size_t bit_length) in BitMemoryRegion() 61 size_t size_in_bits() const { in size_in_bits() 65 void Resize(size_t bit_size) { in Resize() 69 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset, size_t bit_length) const { in Subregion() 78 ALWAYS_INLINE BitMemoryRegion Subregion(size_t bit_offset) const { in Subregion() 88 ALWAYS_INLINE bool LoadBit(size_t bit_offset) const { in LoadBit() 91 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in LoadBit() 92 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer.h | 200 bool CheckOatSize(OutputStream* out, size_t file_offset, size_t relative_offset); 215 size_t GetCodeSize() const { in GetCodeSize() 219 size_t GetOatSize() const { in GetOatSize() 223 size_t GetDataBimgRelRoSize() const { in GetDataBimgRelRoSize() 227 size_t GetBssSize() const { in GetBssSize() 231 size_t GetBssMethodsOffset() const { in GetBssMethodsOffset() 235 size_t GetBssRootsOffset() const { in GetBssRootsOffset() 239 size_t GetVdexSize() const { in GetVdexSize() 243 size_t GetOatDataOffset() const { in GetOatDataOffset() 320 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store); [all …]
|
D | image_writer.h | 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, [all …]
|
/art/runtime/gc/allocator/ |
D | rosalloc.h | 54 size_t ByteSize(RosAlloc* rosalloc) const REQUIRES(rosalloc->lock_) { in ByteSize() 56 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in ByteSize() 57 size_t byte_size = rosalloc->free_page_run_size_map_[pm_idx]; in ByteSize() 58 DCHECK_GE(byte_size, static_cast<size_t>(0)); in ByteSize() 62 void SetByteSize(RosAlloc* rosalloc, size_t byte_size) in SetByteSize() 64 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in SetByteSize() 66 size_t pm_idx = rosalloc->ToPageMapIndex(fpr_base); in SetByteSize() 104 size_t byte_size = ByteSize(rosalloc); in ReleasePages() 105 DCHECK_EQ(byte_size % kPageSize, static_cast<size_t>(0)); in ReleasePages() 125 Slot* Left(size_t bracket_size) { in Left() [all …]
|
/art/runtime/arch/ |
D | arch_test.cc | 46 static constexpr size_t kFrameSizeSaveAllCalleeSaves = FRAME_SIZE_SAVE_ALL_CALLEE_SAVES; 48 static constexpr size_t kFrameSizeSaveRefsOnly = FRAME_SIZE_SAVE_REFS_ONLY; 50 static constexpr size_t kFrameSizeSaveRefsAndArgs = FRAME_SIZE_SAVE_REFS_AND_ARGS; 52 static constexpr size_t kFrameSizeSaveEverythingForClinit = FRAME_SIZE_SAVE_EVERYTHING_FOR_CLINIT; 54 static constexpr size_t kFrameSizeSaveEverythingForSuspendCheck = 57 static constexpr size_t kFrameSizeSaveEverything = FRAME_SIZE_SAVE_EVERYTHING; 72 static constexpr size_t kFrameSizeSaveAllCalleeSaves = FRAME_SIZE_SAVE_ALL_CALLEE_SAVES; 74 static constexpr size_t kFrameSizeSaveRefsOnly = FRAME_SIZE_SAVE_REFS_ONLY; 76 static constexpr size_t kFrameSizeSaveRefsAndArgs = FRAME_SIZE_SAVE_REFS_AND_ARGS; 78 static constexpr size_t kFrameSizeSaveEverythingForClinit = FRAME_SIZE_SAVE_EVERYTHING_FOR_CLINIT; [all …]
|
/art/compiler/optimizing/ |
D | register_allocator_linear_scan.h | 58 size_t GetNumberOfSpillSlots() const { in GetNumberOfSpillSlots() 79 void BlockRegister(Location location, size_t start, size_t end); 80 void BlockRegisters(size_t start, size_t end, bool caller_save_only = false); 97 int FindAvailableRegisterPair(size_t* next_use, size_t starting_at) const; 98 int FindAvailableRegister(size_t* next_use, LiveInterval* current) const; 103 bool TrySplitNonPairOrUnalignedPairIntervalAt(size_t position, 104 size_t first_register_use, 105 size_t* next_use); 143 ScopedArenaVector<size_t> int_spill_slots_; 144 ScopedArenaVector<size_t> long_spill_slots_; [all …]
|
D | live_interval_test.cc | 30 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST() 36 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST() 47 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST() 57 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST() 75 static constexpr size_t ranges[][2] = {{0, 42}}; in TEST() 85 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}}; in TEST() 103 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}}; in TEST() 105 static constexpr size_t ranges2[][2] = {{5, 6}}; in TEST() 112 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}}; in TEST() 114 static constexpr size_t ranges2[][2] = {{5, 42}}; in TEST() [all …]
|
D | register_allocator_graph_color.h | 126 static LiveInterval* TrySplit(LiveInterval* interval, size_t position); 138 void BlockRegister(Location location, size_t start, size_t end); 139 void BlockRegisters(size_t start, size_t end, bool caller_save_only = false); 141 bool IsCallerSave(size_t reg, bool processing_core_regs); 145 void ColorSpillSlots(ArrayRef<LiveInterval* const> nodes, /* out */ size_t* num_stack_slots_used); 172 size_t num_int_spill_slots_; 173 size_t num_double_spill_slots_; 174 size_t num_float_spill_slots_; 175 size_t num_long_spill_slots_; 176 size_t catch_phi_spill_slot_counter_; [all …]
|
/art/tools/dexanalyze/ |
D | dexanalyze_experiments.h | 36 enum class VerboseLevel : size_t { 50 size_t PrefixLen(const std::string& a, const std::string& b); 101 size_t num_string_ids_from_code_ = 0; 102 size_t total_unique_method_ids_ = 0; 103 size_t total_unique_string_ids_ = 0; 107 static constexpr size_t kMaxFieldIndex = 32; 113 static constexpr size_t kShortBytecodeFieldIndexOutCutOff = 16u; 114 static constexpr size_t kShortBytecodeInOutCutOff = 16u; 137 size_t dex_code_bytes_ = 0; 138 size_t num_string_ids_ = 0; [all …]
|
D | dexanalyze_bytecode.h | 47 SafeMap<size_t, size_t> types_; 49 SafeMap<size_t, size_t> fields_; 51 SafeMap<size_t, size_t> methods_; 53 SafeMap<size_t, size_t> strings_; 70 std::map<size_t, TypeLinkage>& types); 79 size_t alignment_ = 1u; 86 std::vector<size_t> move_result_reg_; 87 std::vector<size_t> first_arg_reg_count_; 88 std::vector<size_t> opcode_count_; 89 std::map<std::pair<uint32_t, uint32_t>, size_t> method_linkage_counts_; [all …]
|
/art/runtime/gc/accounting/ |
D | bitmap.h | 39 static Bitmap* Create(const std::string& name, size_t num_bits); 44 static Bitmap* CreateFromMemMap(MemMap&& mem_map, size_t num_bits); 47 static ALWAYS_INLINE constexpr size_t BitIndexToWordIndex(uintptr_t offset) { in BitIndexToWordIndex() 60 ALWAYS_INLINE bool SetBit(size_t bit_index) { in SetBit() 64 ALWAYS_INLINE bool ClearBit(size_t bit_index) { in ClearBit() 68 ALWAYS_INLINE bool TestBit(size_t bit_index) const; 71 ALWAYS_INLINE bool AtomicTestAndSetBit(size_t bit_index); 79 void VisitSetBits(uintptr_t visit_begin, size_t visit_end, const Visitor& visitor) const; 89 size_t BitmapSize() const { in BitmapSize() 94 ALWAYS_INLINE void CheckValidBitIndex(size_t bit_index) const { in CheckValidBitIndex() [all …]
|
/art/libdexfile/dex/ |
D | utf.h | 38 size_t CountModifiedUtf8Chars(const char* utf8); 39 size_t CountModifiedUtf8Chars(const char* utf8, size_t byte_count); 45 size_t CountUtf8Bytes(const uint16_t* chars, size_t char_count); 51 void ConvertModifiedUtf8ToUtf16(uint16_t* utf16_out, size_t out_chars, 52 const char* utf8_in, size_t in_bytes); 65 size_t utf16_length); 73 void ConvertUtf16ToModifiedUtf8(char* utf8_out, size_t byte_count, 74 const uint16_t* utf16_in, size_t char_count); 80 int32_t ComputeUtf16Hash(const MemoryType* chars, size_t char_count) { in ComputeUtf16Hash() 88 int32_t ComputeUtf16HashFromModifiedUtf8(const char* utf8, size_t utf16_length);
|
/art/runtime/ |
D | index_bss_mapping.h | 41 static size_t IndexBits(uint32_t number_of_indexes) { in IndexBits() 46 static uint32_t IndexMask(size_t index_bits) { in IndexMask() 53 uint32_t GetIndex(size_t index_bits) const { in GetIndex() 57 uint32_t GetMask(size_t index_bits) const { in GetMask() 62 size_t GetBssOffset(size_t index_bits, uint32_t index, size_t slot_size) const; 72 static constexpr size_t npos = static_cast<size_t>(-1); 74 static size_t GetBssOffset(const IndexBssMapping* mapping, 77 size_t slot_size);
|