/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.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 | 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 | region_space.h | 49 typedef void(*WalkCallback)(void *start, void *end, size_t num_bytes, void* callback_arg); 64 static MemMap CreateMemMap(const std::string& name, size_t capacity, uint8_t* requested_begin); 69 size_t num_bytes, 70 /* out */ size_t* bytes_allocated, 71 /* out */ size_t* usable_size, 72 /* out */ size_t* bytes_tl_bulk_allocated) 76 size_t num_bytes, 77 /* out */ size_t* bytes_allocated, 78 /* out */ size_t* usable_size, 79 /* 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 | 40 ALWAYS_INLINE BitMemoryRegion(uint8_t* data, ssize_t bit_start, size_t bit_size) { 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() 90 size_t index = (bit_start_ + bit_offset) / kBitsPerByte; in LoadBit() 91 size_t shift = (bit_start_ + bit_offset) % kBitsPerByte; in LoadBit() 95 ALWAYS_INLINE void StoreBit(size_t bit_offset, bool value) { in StoreBit() [all …]
|
/art/runtime/arch/x86_64/ |
D | jni_frame_x86_64.h | 30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k64); 33 static constexpr size_t kNativeStackAlignment = 16; 38 constexpr size_t kMmxSpillSize = 8u; 39 constexpr size_t kAlwaysSpilledMmxRegisters = 4; 43 constexpr size_t kMaxFloatOrDoubleRegisterArguments = 8u; 47 constexpr size_t kMaxIntLikeRegisterArguments = 6u; 50 inline size_t GetNativeOutArgsSize(size_t num_fp_args, size_t num_non_fp_args) { in GetNativeOutArgsSize() 52 size_t num_stack_fp_args = in GetNativeOutArgsSize() 55 size_t num_stack_non_fp_args = in GetNativeOutArgsSize() 62 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() [all …]
|
/art/runtime/arch/arm64/ |
D | jni_frame_arm64.h | 30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k64); 34 static constexpr size_t kAapcs64StackAlignment = 16u; 39 constexpr size_t kMaxFloatOrDoubleRegisterArguments = 8u; 42 constexpr size_t kMaxIntLikeRegisterArguments = 8u; 45 inline size_t GetNativeOutArgsSize(size_t num_fp_args, size_t num_non_fp_args) { in GetNativeOutArgsSize() 47 size_t num_stack_fp_args = in GetNativeOutArgsSize() 50 size_t num_stack_non_fp_args = in GetNativeOutArgsSize() 53 return (num_stack_fp_args + num_stack_non_fp_args) * static_cast<size_t>(kArm64PointerSize); in GetNativeOutArgsSize() 57 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() 60 size_t num_fp_args = in GetCriticalNativeCallArgsSize() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer.h | 197 bool CheckOatSize(OutputStream* out, size_t file_offset, size_t relative_offset); 212 size_t GetCodeSize() const { in GetCodeSize() 216 size_t GetOatSize() const { in GetOatSize() 220 size_t GetDataBimgRelRoSize() const { in GetDataBimgRelRoSize() 224 size_t GetBssSize() const { in GetBssSize() 228 size_t GetBssMethodsOffset() const { in GetBssMethodsOffset() 232 size_t GetBssRootsOffset() const { in GetBssRootsOffset() 236 size_t GetVdexSize() const { in GetVdexSize() 240 size_t GetOatDataOffset() const { in GetOatDataOffset() 315 size_t InitOatHeader(uint32_t num_dex_files, SafeMap<std::string, std::string>* key_value_store); [all …]
|
D | image_writer.h | 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, [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/x86/ |
D | jni_frame_x86.h | 30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k32); 33 static constexpr size_t kNativeStackAlignment = 16; // IA-32 cdecl requires 16 byte alignment. 37 inline size_t GetNativeOutArgsSize(size_t num_args, size_t num_long_or_double_args) { in GetNativeOutArgsSize() 38 size_t num_arg_words = num_args + num_long_or_double_args; in GetNativeOutArgsSize() 39 return num_arg_words * static_cast<size_t>(kX86PointerSize); in GetNativeOutArgsSize() 43 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() 46 size_t num_long_or_double_args = in GetCriticalNativeCallArgsSize() 54 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() 56 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 72 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() [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 …]
|
/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/arch/arm/ |
D | jni_frame_arm.h | 30 constexpr size_t kFramePointerSize = static_cast<size_t>(PointerSize::k32); 34 static constexpr size_t kAapcsStackAlignment = 8u; 39 constexpr size_t kJniArgumentRegisterCount = 4u; 42 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() 45 size_t reg = 0; // Register for the current argument; if reg >= 4, we shall use stack. in GetCriticalNativeCallArgsSize() 46 for (size_t i = 1; i != shorty_len; ++i) { in GetCriticalNativeCallArgsSize() 55 size_t stack_args = std::max(reg, kJniArgumentRegisterCount) - kJniArgumentRegisterCount; in GetCriticalNativeCallArgsSize() 61 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() 63 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 76 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() [all …]
|
/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);
|