Home
last modified time | relevance | path

Searched refs:size_ (Results 1 – 25 of 42) sorted by relevance

12

/art/libartbase/base/
Dbounded_fifo.h39 size_ = 0; in clear()
47 return size_; in size()
51 ++size_; in push_back()
52 DCHECK_LE(size_, kMaxSize); in push_back()
58 DCHECK_GT(size_, 0U); in front()
59 return data_[(back_index_ - size_) & mask_]; in front()
63 DCHECK_GT(size_, 0U); in pop_front()
64 --size_; in pop_front()
69 size_t back_index_, size_; variable
Darray_ref.h58 : array_(nullptr), size_(0u) { in ArrayRef()
63 : array_(array), size_(size) { in ArrayRef()
70 : array_(array), size_(size) { in ArrayRef()
74 : array_(array), size_(size) { in ArrayRef()
81 : array_(v.data()), size_(v.size()) { in ArrayRef()
90 : array_(v.data()), size_(v.size()) { in ArrayRef()
99 size_ = other.size_;
122 iterator end() { return array_ + size_; } in end()
123 const_iterator end() const { return array_ + size_; } in end()
124 const_iterator cend() const { return array_ + size_; } in cend()
[all …]
Darray_slice.h47 ArraySlice() : array_(nullptr), size_(0), element_size_(0) {} in ArraySlice()
55 size_(dchecked_integral_cast<uint32_t>(length)), in array_()
76 StrideIterator<T> end() { return StrideIterator<T>(&AtUnchecked(size_), element_size_); } in end()
77 const_iterator end() const { return const_iterator(&AtUnchecked(size_), element_size_); } in end()
78 const_iterator cend() const { return const_iterator(&AtUnchecked(size_), element_size_); } in cend()
87 size_type size() const { return size_; } in size()
93 DCHECK_LT(index, size_);
98 DCHECK_LT(index, size_);
114 return (*this)[size_ - 1u]; in back()
119 return (*this)[size_ - 1u]; in back()
[all …]
Dlength_prefixed_array.h34 : size_(dchecked_integral_cast<uint32_t>(length)) {} in LengthPrefixedArray()
37 DCHECK_LT(index, size_);
42 DCHECK_LT(index, size_);
56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size);
61 return StrideIterator<const T>(&AtUnchecked(size_, element_size, alignment), element_size);
80 return size_; in size()
85 size_ = dchecked_integral_cast<uint32_t>(length); in SetSize()
106 uint32_t size_; variable
Dmemory_region.h45 MemoryRegion() : pointer_(nullptr), size_(0) {} in MemoryRegion()
46 MemoryRegion(void* pointer_in, uintptr_t size_in) : pointer_(pointer_in), size_(size_in) {} in MemoryRegion()
49 size_t size() const { return size_; } in size()
50 size_t size_in_bits() const { return size_ * kBitsPerByte; } in size_in_bits()
57 uint8_t* end() const { return begin() + size_; } in end()
131 size_ = (region.size() + extra); in Extend()
158 size_t size_; variable
Dmem_map.cc469 size_t source_size = source->size_; in ReplaceWith()
472 size_ = source_size; in ReplaceWith()
671 std::swap(size_, other.size_); in SwapMembers()
682 : name_(name), begin_(begin), size_(size), base_begin_(base_begin), base_size_(base_size), in MemMap()
684 if (size_ == 0) { in MemMap()
725 DCHECK_LE(begin_ + size_, reinterpret_cast<uint8_t*>(base_begin_) + base_size_); in RemapAtEnd()
730 uint8_t* old_end = begin_ + size_; in RemapAtEnd()
774 size_ = new_size; in RemapAtEnd()
794 DCHECK_EQ(size_, base_size_); in ReleaseReservedMemory()
796 DCHECK_ALIGNED(size_, kPageSize); in ReleaseReservedMemory()
[all …]
Dmalloc_arena_pool.cc64 size_ = size; in MallocArena()
73 MEMORY_TOOL_MAKE_UNDEFINED(memory_ + size_, tail); in ~MallocArena()
Dscoped_arena_allocator.cc176 DCHECK_GE(mark_arena_->bytes_allocated_, mark_arena_->size_ - mark_free); in ApproximatePeakBytes()
177 subtract = mark_arena_->bytes_allocated_ - (mark_arena_->size_ - mark_free); in ApproximatePeakBytes()
Darena_allocator.h191 return memory_ + size_; in End()
195 return size_; in Size()
214 size_t size_; variable
/art/libdexfile/dex/
Ddex_file_structs.h37 uint32_t size_; member
42 uint32_t size_; member
45 size_t Size() const { return sizeof(uint32_t) + (size_ * sizeof(MapItem)); } in Size()
154 return size_; in Size()
158 DCHECK_LT(idx, this->size_); in GetTypeItem()
173 uint32_t size_; // size of the list, in entries
251 uint32_t size_; member
259 uint32_t size_; member
275 uint32_t size_; // total size of the item member
Ddex_file_verifier.cc201 size_(size), in DexFileVerifier()
377 const size_t size_; member in art::dex::DexFileVerifier
517 if (UNLIKELY(offset > size_)) { in CheckListSize()
518 ErrorStringPrintf("Offset beyond end of file for %s: %zx to %zx", label, offset, size_); in CheckListSize()
524 size_t max_elements = (size_ - offset) / elem_size; in CheckListSize()
527 "List too large for %s: %zx+%zu*%zu > %zx", label, offset, count, elem_size, size_); in CheckListSize()
561 if (size_ <= offset) { in CheckValidOffsetAndSize()
562 ErrorStringPrintf("Offset(%d) should be within file size(%zu) for %s.", offset, size_, label); in CheckValidOffsetAndSize()
575 if (size_ != expected_size) { in CheckHeader()
576 ErrorStringPrintf("Bad file size (%zd, expected %u)", size_, expected_size); in CheckHeader()
[all …]
Ddex_file.h643 DCHECK_LE(index, set_item->size_); in GetAnnotationItem()
719 return size_; in Size()
839 const size_t size_; variable
922 size_ = type_list_->Size(); in DexFileParameterIterator()
925 bool HasNext() const { return pos_ < size_; } in HasNext()
926 size_t Size() const { return size_; } in Size()
937 uint32_t size_ = 0; variable
/art/runtime/gc/collector/
Dimmune_region.h47 return reinterpret_cast<uintptr_t>(obj) - reinterpret_cast<uintptr_t>(begin_) < size_; in ContainsObject()
69 return size_; in Size()
74 size_ = reinterpret_cast<uintptr_t>(end_) - reinterpret_cast<uintptr_t>(begin_); in UpdateSize()
79 uintptr_t size_; variable
/art/tools/jvmti-agents/titrace/
Dtitrace.cc46 explicit TiMemory(jvmtiEnv* env, T* mem, size_t size) : env_(env), mem_(mem), size_(size) { in TiMemory()
60 size_ = other.size_; in TiMemory()
65 other.size_ = 0u; in TiMemory()
82 return size_ / sizeof(T); in Size()
88 size_t size_; member
/art/compiler/utils/
Dswap_space.cc64 size_(0), in SwapSpace()
150 int result = TEMP_FAILURE_RETRY(ftruncate64(fd_, size_ + next_part)); in NewFileChunk()
155 mmap(nullptr, next_part, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, size_)); in NewFileChunk()
158 LOG(ERROR) << "Current size: " << size_ << " requested: " << next_part << "/" << min_size; in NewFileChunk()
164 size_ += next_part; in NewFileChunk()
Djni_macro_assembler.h49 : reg_(reg), frame_offset_(0u), size_(size) { in ArgumentLocation()
54 : reg_(ManagedRegister::NoRegister()), frame_offset_(frame_offset), size_(size) {} in ArgumentLocation()
71 return size_; in GetSize()
77 size_t size_; variable
Dswap_space.h43 return size_; in GetSize()
98 size_t size_; variable
/art/compiler/jit/
Djit_logger.cc114 uint32_t size_; // Total size of header member
153 uint32_t size_; // Total size of this event record. member
237 header.size_ = sizeof(header); in WriteJitDumpHeader()
276 jit_code.size_ = sizeof(jit_code) + method_name.size() + 1 + code_size; in WriteJitDumpLog()
/art/compiler/optimizing/
Dcodegen_test_utils.h167 InternalCodeAllocator() : size_(0) { } in InternalCodeAllocator()
170 size_ = size; in Allocate()
175 size_t GetSize() const { return size_; } in GetSize()
177 return ArrayRef<const uint8_t>(memory_.get(), size_); in GetMemory()
181 size_t size_;
/art/runtime/gc/allocator/
Drosalloc.h144 SlotFreeList() : head_(0U), tail_(0), size_(0), padding_(0) {} in SlotFreeList()
153 return size_; in Size()
184 --size_; in Remove()
216 ++size_; in Add()
244 size_ = list->Size(); in Merge()
252 size_ += list->Size(); in Merge()
265 size_ = 0; in Reset()
271 if (size_ == 0) { in Verify()
288 CHECK_EQ(size_, count); in Verify()
305 uint32_t size_; variable
[all …]
/art/runtime/
Dimage.h46 ImageSection() : offset_(0), size_(0) { } in ImageSection()
47 ImageSection(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in ImageSection()
56 return size_; in Size()
64 return offset - offset_ < size_; in Contains()
69 uint32_t size_; variable
/art/runtime/gc/space/
Dlarge_object_space_test.cc129 id_(id), iterations_(iterations), size_(size), los_(los) {} in AllocRaceTask()
134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run()
150 size_t size_; member in art::gc::space::AllocRaceTask
Dbump_pointer_space-walk-inl.h80 size_t block_size = header->size_; in Walk()
/art/dexlayout/
Ddex_ir.h317 uint32_t GetSize() const WARN_UNUSED { return size_; } in GetSize()
319 void SetSize(uint32_t size) { size_ = size; } in SetSize()
325 Item(uint32_t offset, uint32_t size) : offset_(offset), size_(size) { } in Item()
332 uint32_t size_ = 0; variable
585 size_ = UnsignedLeb128Size(CountModifiedUtf8Chars(data)) + strlen(data); in StringData()
601 size_ = kStringIdItemSize; in StringId()
620 explicit TypeId(StringId* string_id) : string_id_(string_id) { size_ = kTypeIdItemSize; } in TypeId()
640 size_ = sizeof(uint32_t) + (type_list->size() * sizeof(uint16_t)); in TypeList()
656 { size_ = kProtoIdItemSize; } in ProtoId()
678 : class_(klass), type_(type), name_(name) { size_ = kFieldIdItemSize; } in FieldId()
[all …]
Ddex_ir_builder.cc336 const uint32_t count = map->size_; in CheckAndSetRemainingOffsets()
341 CHECK_EQ(item->size_, 1u); in CheckAndSetRemainingOffsets()
345 CHECK_EQ(item->size_, header_->StringIds().Size()); in CheckAndSetRemainingOffsets()
349 CHECK_EQ(item->size_, header_->TypeIds().Size()); in CheckAndSetRemainingOffsets()
353 CHECK_EQ(item->size_, header_->ProtoIds().Size()); in CheckAndSetRemainingOffsets()
357 CHECK_EQ(item->size_, header_->FieldIds().Size()); in CheckAndSetRemainingOffsets()
361 CHECK_EQ(item->size_, header_->MethodIds().Size()); in CheckAndSetRemainingOffsets()
367 CHECK_EQ(item->size_, header_->ClassDefs().Size()); in CheckAndSetRemainingOffsets()
372 CHECK_EQ(item->size_, header_->CallSiteIds().Size()); in CheckAndSetRemainingOffsets()
376 CHECK_EQ(item->size_, header_->MethodHandleItems().Size()); in CheckAndSetRemainingOffsets()
[all …]

12