/art/compiler/utils/ |
D | swap_space.cc | 43 << " size=" << std::dec << entry.second->size; in DumpFreeMap() 60 DCHECK_NE(chunk.size, 0u); in InsertChunk() 63 free_by_size->emplace(chunk.size, insert_result.first); in InsertChunk() 82 if (free_by_start.size() != free_by_size.size()) { in CollectFree() 83 LOG(FATAL) << "Size: " << free_by_start.size() << " vs " << free_by_size.size(); in CollectFree() 89 sum1 += entry.second->size; in CollectFree() 95 sum2 += entry.size; in CollectFree() 104 void* SwapSpace::Alloc(size_t size) { in Alloc() argument 106 size = RoundUp(size, 8U); in Alloc() 113 : free_by_size_.lower_bound(FreeBySizeEntry { size, free_by_start_.begin() }); in Alloc() [all …]
|
D | array_ref.h | 64 template <size_t size> 65 constexpr ArrayRef(T (&array)[size]) in ArrayRef() argument 66 : array_(array), size_(size) { in ArrayRef() 69 template <typename U, size_t size> 70 constexpr ArrayRef(U (&array)[size], 72 : array_(array), size_(size) { in array_() 75 constexpr ArrayRef(T* array, size_t size) in ArrayRef() argument 76 : array_(array), size_(size) { in ArrayRef() 80 constexpr ArrayRef(U* array, size_t size, 82 : array_(array), size_(size) { in array_() [all …]
|
/art/runtime/gc/allocator/ |
D | rosalloc.h | 177 size_t size = reinterpret_cast<byte*>(&temp.alloc_bit_map_) - reinterpret_cast<byte*>(&temp); in fixed_header_size() local 178 DCHECK_EQ(size, static_cast<size_t>(8)); in fixed_header_size() 179 return size; in fixed_header_size() 291 static size_t BracketSizeToIndex(size_t size) { in BracketSizeToIndex() argument 292 DCHECK(16 <= size && ((size < 1 * KB && size % 16 == 0) || size == 1 * KB || size == 2 * KB)); in BracketSizeToIndex() 294 if (UNLIKELY(size == 1 * KB)) { in BracketSizeToIndex() 296 } else if (UNLIKELY(size == 2 * KB)) { in BracketSizeToIndex() 299 DCHECK(size < 1 * KB); in BracketSizeToIndex() 300 DCHECK_EQ(size % 16, static_cast<size_t>(0)); in BracketSizeToIndex() 301 idx = size / 16 - 1; in BracketSizeToIndex() [all …]
|
D | rosalloc-inl.h | 27 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated) { in Alloc() argument 28 if (UNLIKELY(size > kLargeSizeThreshold)) { in Alloc() 29 return AllocLargeObject(self, size, bytes_allocated); in Alloc() 33 m = AllocFromRun(self, size, bytes_allocated); in Alloc() 35 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated); in Alloc() 40 for (size_t i = 0; i < size; ++i) { in Alloc()
|
/art/runtime/ |
D | memory_region.h | 34 MemoryRegion(void* pointer, uword size) : pointer_(pointer), size_(size) {} in MemoryRegion() argument 37 size_t size() const { return size_; } in size() function 80 MemoryRegion Subregion(uintptr_t offset, uintptr_t size) const { in Subregion() argument 81 CHECK_GE(this->size(), size); in Subregion() 82 CHECK_LE(offset, this->size() - size); in Subregion() 83 return MemoryRegion(reinterpret_cast<void*>(start() + offset), size); in Subregion() 89 size_ = (region.size() + extra); in Extend() 94 CHECK_GE(size(), sizeof(T)); in ComputeInternalPointer() 95 CHECK_LE(offset, size() - sizeof(T)); in ComputeInternalPointer()
|
D | memory_region.cc | 29 CHECK_GT(from.size(), 0U); in CopyFrom() 30 CHECK_GE(this->size(), from.size()); in CopyFrom() 31 CHECK_LE(offset, this->size() - from.size()); in CopyFrom() 33 from.pointer(), from.size()); in CopyFrom()
|
D | monitor_pool_test.cc | 64 if (monitors.size() == 0) { in TEST_F() 66 } else if (monitors.size() == kMaxUsage) { in TEST_F() 80 size_t index = r.next() % monitors.size(); in TEST_F() 95 size_t target_size = monitors.size() + 2*kMaxUsage; in TEST_F() 96 while (monitors.size() < target_size) { in TEST_F() 98 static_cast<int32_t>(-monitors.size())); in TEST_F() 112 size_t index = r.next() % monitors.size(); in TEST_F()
|
D | parsed_options.cc | 277 for (size_t i = 0; i < options.size(); ++i) { in Parse() 282 for (size_t i = 0; i < options.size(); ++i) { in Parse() 296 if (i == options.size()) { in Parse() 323 size_t size = ParseMemoryOption(option.substr(strlen("-Xms")).c_str(), 1024); in Parse() local 324 if (size == 0) { in Parse() 328 heap_initial_size_ = size; in Parse() 330 size_t size = ParseMemoryOption(option.substr(strlen("-Xmx")).c_str(), 1024); in Parse() local 331 if (size == 0) { in Parse() 335 heap_maximum_size_ = size; in Parse() 337 size_t size = ParseMemoryOption(option.substr(strlen("-XX:HeapGrowthLimit=")).c_str(), 1024); in Parse() local [all …]
|
/art/runtime/base/unix_file/ |
D | random_access_file_test.h | 76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead() 84 const int buf_size = content.size() + 10; in TestReadContent() 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent() 91 ASSERT_EQ(std::string(buf.get(), content.size()), content); in TestReadContent() 95 ASSERT_LT(short_request, content.size()); in TestReadContent() 116 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestSetLength() 117 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestSetLength() 152 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestWrite() 153 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestWrite() 160 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf, sizeof(buf), 0))); in TestWrite() [all …]
|
D | null_file_test.cc | 51 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F() 59 ASSERT_EQ(-EINVAL, f.Write(content.data(), content.size(), -128)); in TEST_F() 61 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F() 62 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 128))); in TEST_F()
|
D | mapped_file_test.cc | 85 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); in TEST_F() 106 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); in TEST_F() 108 EXPECT_EQ(0, memcmp(kContent.c_str(), file.data(), file.size())); in TEST_F() 118 EXPECT_EQ(1, file.size()); in TEST_F() 132 EXPECT_TRUE(file.MapReadWrite(kContent.size())); in TEST_F() 134 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); in TEST_F() 136 memcpy(file.data(), kContent.c_str(), kContent.size()); in TEST_F() 206 ASSERT_TRUE(file.MapReadWrite(kContent.size())); in TEST_F() 215 ASSERT_TRUE(file.MapReadWrite(kContent.size())); in TEST_F() 223 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.GetLength())); in TEST_F() [all …]
|
/art/runtime/base/ |
D | bit_field.h | 29 template<typename T, int position, int size> 34 return (static_cast<uword>(value) & ~((kUwordOne << size) - 1)) == 0; in IsValid() 39 return (kUwordOne << size) - 1; in Mask() 45 return ((kUwordOne << size) - 1) << position; in MaskInPlace() 56 return size; in BitSize() 67 return static_cast<T>((value >> position) & ((kUwordOne << size) - 1)); in Decode()
|
D | stringpiece.h | 52 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece() 60 int size() const { return length_; } in size() function 98 return std::string(data(), size()); in as_string() 106 return std::string(data(), size()); in ToString() 162 int len = x.size(); 163 if (len != y.size()) { 193 std::min(x.size(), y.size())); 194 return ((r < 0) || ((r == 0) && (x.size() < y.size())));
|
D | stringprintf_test.cc | 24 size_t size = 0x00107e59; in TEST() local 25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); in TEST() 26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str()); in TEST()
|
/art/runtime/verifier/ |
D | reg_type_cache.cc | 62 DCHECK_EQ(entries_.size(), small_precise_constants_[i]->GetId()); in FillPrimitiveAndSmallConstantTypes() 65 DCHECK_EQ(entries_.size(), primitive_count_); in FillPrimitiveAndSmallConstantTypes() 164 for (size_t i = primitive_count_; i < entries_.size(); i++) { in From() 186 entry = new PreciseReferenceType(klass, descriptor_sp.as_string(), entries_.size()); in From() 188 entry = new ReferenceType(klass, descriptor_sp.as_string(), entries_.size()); in From() 202 RegType* entry = new UnresolvedReferenceType(descriptor_sp.as_string(), entries_.size()); in From() 221 for (size_t i = primitive_count_; i < entries_.size(); i++) { in FromClass() 230 entry = new PreciseReferenceType(klass, descriptor, entries_.size()); in FromClass() 232 entry = new ReferenceType(klass, descriptor, entries_.size()); in FromClass() 248 CHECK_LE(primitive_count_, entries_.size()); in ~RegTypeCache() [all …]
|
/art/compiler/utils/arm64/ |
D | assembler_arm64.cc | 35 for (size_t i = 0; i < exception_blocks_.size(); i++) { in EmitSlowPaths() 122 void Arm64Assembler::Store(FrameOffset offs, ManagedRegister m_src, size_t size) { in Store() argument 125 CHECK_EQ(0u, size); in Store() 127 CHECK_EQ(4u, size); in Store() 130 CHECK_EQ(8u, size); in Store() 257 int32_t offset, size_t size) { in Load() argument 259 CHECK_EQ(0u, size) << dest; in Load() 261 CHECK_EQ(4u, size) << dest; in Load() 265 if (size == 4u) { in Load() 268 CHECK_EQ(8u, size) << dest; in Load() [all …]
|
D | assembler_arm64.h | 114 void Store(FrameOffset offs, ManagedRegister src, size_t size) OVERRIDE; 127 void Load(ManagedRegister dest, FrameOffset src, size_t size) OVERRIDE; 128 void LoadFromThread64(ManagedRegister dest, ThreadOffset<8> src, size_t size) OVERRIDE; 135 void Move(ManagedRegister dest, ManagedRegister src, size_t size) OVERRIDE; 141 void Copy(FrameOffset dest, FrameOffset src, ManagedRegister scratch, size_t size) OVERRIDE; 143 size_t size) OVERRIDE; 145 size_t size) OVERRIDE; 147 size_t size) OVERRIDE; 149 ManagedRegister scratch, size_t size) OVERRIDE; 151 ManagedRegister scratch, size_t size) OVERRIDE; [all …]
|
/art/compiler/ |
D | elf_writer_quick.cc | 71 ElfFileMemoryPiece(const std::string& name, Elf32_Word offset, const void* data, Elf32_Word size) in ElfFileMemoryPiece() argument 72 : ElfFilePiece(offset), dbg_name_(name), data_(data), size_(size) {} in ElfFileMemoryPiece() 291 uint32_t dynstr_soname_offset = dynstr.size(); in Write() 300 LOG(INFO) << "dynstr size (bytes) =" << dynstr.size() in Write() 301 << std::hex << " " << dynstr.size(); in Write() 311 LOG(INFO) << "strtab size (bytes) =" << strtab.size() in Write() 312 << std::hex << " " << strtab.size(); in Write() 374 for (uint32_t cnt = 0; cnt < other_builders_.size(); ++it, ++cnt) { in Write() 387 LOG(INFO) << ".shstrtab size (bytes) =" << shstrtab.size() in Write() 388 << std::hex << " " << shstrtab.size(); in Write() [all …]
|
D | elf_stripper.cc | 95 CHECK_NE(0U, section_headers.size()); in Strip() 96 CHECK_EQ(section_headers.size(), section_headers_original_indexes.size()); in Strip() 101 for (size_t i = 1; i < section_headers.size(); i++) { in Strip() 123 size_t section_headers_size_in_bytes = section_headers.size() * sizeof(Elf32_Shdr); in Strip() 127 elf_file->GetHeader().e_shnum = section_headers.size(); in Strip()
|
/art/compiler/dex/quick/mips/ |
D | utility_mips.cc | 357 int scale, OpSize size) { in LoadBaseIndexed() argument 365 DCHECK((size == k32) || (size == kSingle) || (size == kReference)); in LoadBaseIndexed() 366 size = kSingle; in LoadBaseIndexed() 368 if (size == kSingle) in LoadBaseIndexed() 369 size = k32; in LoadBaseIndexed() 379 switch (size) { in LoadBaseIndexed() 410 int scale, OpSize size) { in StoreBaseIndexed() argument 417 DCHECK((size == k32) || (size == kSingle) || (size == kReference)); in StoreBaseIndexed() 418 size = kSingle; in StoreBaseIndexed() 420 if (size == kSingle) in StoreBaseIndexed() [all …]
|
/art/runtime/arch/x86_64/ |
D | asm_support_x86_64.S | 69 #define SIZE(name,index) .size $index, .-$index 72 #define SIZE(name,index) .size name, .-name 79 #define CFI_ADJUST_CFA_OFFSET(size) .cfi_adjust_cfa_offset size argument 80 #define CFI_DEF_CFA(reg,size) .cfi_def_cfa reg,size argument 83 #define CFI_REL_OFFSET(reg,size) .cfi_rel_offset reg,size argument 88 #define CFI_ADJUST_CFA_OFFSET(size) argument 89 #define CFI_DEF_CFA(reg,size) argument 92 #define CFI_REL_OFFSET(reg,size) argument
|
/art/runtime/arch/x86/ |
D | asm_support_x86.S | 69 #define SIZE(name,index) .size $index, .-$index 72 #define SIZE(name,index) .size name, .-name 79 #define CFI_ADJUST_CFA_OFFSET(size) .cfi_adjust_cfa_offset size argument 80 #define CFI_DEF_CFA(reg,size) .cfi_def_cfa reg,size argument 83 #define CFI_REL_OFFSET(reg,size) .cfi_rel_offset reg,size argument 90 #define CFI_ADJUST_CFA_OFFSET(size) argument 91 #define CFI_DEF_CFA(reg,size) argument 94 #define CFI_REL_OFFSET(reg,size) argument
|
/art/runtime/hprof/ |
D | hprof.cc | 717 size_t size; in SignatureToBasicTypeAndSize() local 721 case 'L': ret = hprof_basic_object; size = 4; break; in SignatureToBasicTypeAndSize() 722 case 'Z': ret = hprof_basic_boolean; size = 1; break; in SignatureToBasicTypeAndSize() 723 case 'C': ret = hprof_basic_char; size = 2; break; in SignatureToBasicTypeAndSize() 724 case 'F': ret = hprof_basic_float; size = 4; break; in SignatureToBasicTypeAndSize() 725 case 'D': ret = hprof_basic_double; size = 8; break; in SignatureToBasicTypeAndSize() 726 case 'B': ret = hprof_basic_byte; size = 1; break; in SignatureToBasicTypeAndSize() 727 case 'S': ret = hprof_basic_short; size = 2; break; in SignatureToBasicTypeAndSize() 729 case 'I': ret = hprof_basic_int; size = 4; break; in SignatureToBasicTypeAndSize() 730 case 'J': ret = hprof_basic_long; size = 8; break; in SignatureToBasicTypeAndSize() [all …]
|
/art/compiler/dex/quick/arm/ |
D | utility_arm.cc | 693 int scale, OpSize size) { in LoadBaseIndexed() argument 702 DCHECK((size == k32) || (size == kSingle) || (size == kReference)); in LoadBaseIndexed() 704 size = kSingle; in LoadBaseIndexed() 707 DCHECK((size == k64) || (size == kDouble)); in LoadBaseIndexed() 709 size = kDouble; in LoadBaseIndexed() 712 if (size == kSingle) in LoadBaseIndexed() 713 size = k32; in LoadBaseIndexed() 716 switch (size) { in LoadBaseIndexed() 748 LOG(FATAL) << "Bad size: " << size; in LoadBaseIndexed() 759 int scale, OpSize size) { in StoreBaseIndexed() argument [all …]
|
/art/compiler/dex/ |
D | verification_results.cc | 70 DCHECK_EQ(it->second->GetDevirtMap().size(), verified_method->GetDevirtMap().size()); in ProcessVerifiedMethod() 71 DCHECK_EQ(it->second->GetSafeCastSet().size(), verified_method->GetSafeCastSet().size()); in ProcessVerifiedMethod() 72 DCHECK_EQ(it->second->GetDexGcMap().size(), verified_method->GetDexGcMap().size()); in ProcessVerifiedMethod()
|