/art/runtime/base/ |
H A D | stringprintf_test.cc | 24 size_t size = 0x00107e59; local 25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); 26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str());
|
H A D | bit_field.h | 29 template<typename T, int position, int size> 34 return (static_cast<uword>(value) & ~((kUwordOne << size) - 1)) == 0; 39 return (kUwordOne << size) - 1; 45 return ((kUwordOne << size) - 1) << position; 54 // Returns the size of the bit field. 56 return size; 67 return static_cast<T>((value >> position) & ((kUwordOne << size) - 1));
|
H A D | stringpiece.h | 52 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } 60 int size() const { return length_; } function in class:art::StringPiece 98 return std::string(data(), size()); 106 return std::string(data(), size()); 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()))); [all...] |
H A D | bounded_fifo.h | 22 // A bounded fifo is a fifo which has a bounded size. The power of two version uses a bit mask to 39 return size() == 0; 42 size_t size() const { function in class:art::BoundedFifoPowerOfTwo
|
/art/runtime/ |
H A D | memory_region.cc | 29 CHECK_GT(from.size(), 0U); 30 CHECK_GE(this->size(), from.size()); 31 CHECK_LE(offset, this->size() - from.size()); 33 from.pointer(), from.size());
|
H A D | memory_region.h | 34 MemoryRegion(void* pointer, uword size) : pointer_(pointer), size_(size) {} argument 37 size_t size() const { return size_; } function in class:art::MemoryRegion 80 MemoryRegion Subregion(uintptr_t offset, uintptr_t size) const { 81 CHECK_GE(this->size(), size); 82 CHECK_LE(offset, this->size() - size); 83 return MemoryRegion(reinterpret_cast<void*>(start() + offset), size); 89 size_ = (region.size() [all...] |
H A D | monitor_pool_test.cc | 55 // Note: for correct testing, make sure this is corresponding to monitor-pool's initial size. 64 if (monitors.size() == 0) { 66 } else if (monitors.size() == kMaxUsage) { 80 size_t index = r.next() % monitors.size(); 95 size_t target_size = monitors.size() + 2*kMaxUsage; 96 while (monitors.size() < target_size) { 98 static_cast<int32_t>(-monitors.size())); 112 size_t index = r.next() % monitors.size();
|
/art/runtime/gc/allocator/ |
H A D | rosalloc-inl.h | 27 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated) { argument 28 if (UNLIKELY(size > kLargeSizeThreshold)) { 29 return AllocLargeObject(self, size, bytes_allocated); 33 m = AllocFromRun(self, size, bytes_allocated); 35 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated); 40 for (size_t i = 0; i < size; ++i) {
|
H A D | rosalloc.h | 109 // Represents a run of memory slots of the same size. 154 byte size_bracket_idx_; // The index of the size bracket of this run. 174 // Returns the byte size of the header except for the bit maps. 177 size_t size = reinterpret_cast<byte*>(&temp.alloc_bit_map_) - reinterpret_cast<byte*>(&temp); local 178 DCHECK_EQ(size, static_cast<size_t>(8)); 179 return size; 220 // Marks the slots to free in the bulk free bit map. Returns the bracket size. 254 // size. 264 // The number of size brackets. Sync this with the length of Thread::rosalloc_runs_. 266 // The number of smaller size bracket [all...] |
/art/compiler/utils/ |
H A D | stack_checks.h | 37 static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa) { argument 38 return size >= kLargeFrameSize;
|
H A D | allocation.h | 27 // Allocate a new ArenaObject of 'size' bytes in the Arena. 28 void* operator new(size_t size, ArenaAllocator* allocator) { argument 29 return allocator->Alloc(size, kArenaAllocMisc); 39 void* operator new(size_t size) { argument
|
H A D | swap_space.cc | 29 // The chunk size by which the swap file is increased and mapped. 43 << " size=" << std::dec << entry.second->size; 60 DCHECK_NE(chunk.size, 0u); 63 free_by_size->emplace(chunk.size, insert_result.first); 82 if (free_by_start.size() != free_by_size.size()) { 83 LOG(FATAL) << "Size: " << free_by_start.size() << " vs " << free_by_size.size(); 89 sum1 += entry.second->size; 104 Alloc(size_t size) argument 163 Free(void* ptrV, size_t size) argument [all...] |
H A D | array_ref.h | 64 template <size_t size> 65 constexpr ArrayRef(T (&array)[size]) 66 : array_(array), size_(size) { 69 template <typename U, size_t size> 70 constexpr ArrayRef(U (&array)[size], 72 : array_(array), size_(size) { 75 constexpr ArrayRef(T* array, size_t size) argument 76 : array_(array), size_(size) { 80 constexpr ArrayRef(U* array, size_t size, argument 82 : array_(array), size_(size) { 127 size_type size() const { return size_; } function in class:art::ArrayRef [all...] |
H A D | arena_bit_vector.cc | 28 virtual void* Alloc(size_t size) { argument 29 return arena_->Alloc(size, kArenaAllocGrowableBitMap); 34 static void* operator new(size_t size, ArenaAlloc* arena) { argument
|
H A D | arena_bit_vector.h | 61 static void* operator new(size_t size, ArenaAllocator* arena) { argument 64 static void* operator new(size_t size, ScopedArenaAllocator* arena) { argument
|
/art/runtime/base/unix_file/ |
H A D | null_file_test.cc | 51 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); 59 ASSERT_EQ(-EINVAL, f.Write(content.data(), content.size(), -128)); 61 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); 62 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 128)));
|
H A D | random_access_file_test.h | 76 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); 84 const int buf_size = content.size() + 10; 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); 91 ASSERT_EQ(std::string(buf.get(), content.size()), content); 95 ASSERT_LT(short_request, content.size()); 116 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); 117 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); 152 ASSERT_EQ(content.size(), static_cas [all...] |
H A D | random_access_file_utils.cc | 29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) {
|
H A D | mapped_file_test.cc | 85 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); 106 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); 108 EXPECT_EQ(0, memcmp(kContent.c_str(), file.data(), file.size())); 118 EXPECT_EQ(1, file.size()); 132 EXPECT_TRUE(file.MapReadWrite(kContent.size())); 134 EXPECT_EQ(kContent.size(), static_cast<uint64_t>(file.size())); 136 memcpy(file.data(), kContent.c_str(), kContent.size()); [all...] |
/art/compiler/ |
H A D | vector_output_stream.cc | 24 : OutputStream(location), offset_(vector.size()), vector_(vector) {} 39 new_offset = vector_.size() + offset;
|
H A D | elf_stripper.cc | 95 CHECK_NE(0U, section_headers.size()); 96 CHECK_EQ(section_headers.size(), section_headers_original_indexes.size()); 101 for (size_t i = 1; i < section_headers.size(); i++) { 123 size_t section_headers_size_in_bytes = section_headers.size() * sizeof(Elf32_Shdr); 127 elf_file->GetHeader().e_shnum = section_headers.size();
|
/art/compiler/sea_ir/ir/ |
H A D | regions_test.cc | 39 EXPECT_EQ(1U, succs->size()); 42 EXPECT_EQ(1U, preds->size()); 47 EXPECT_EQ(2U, succs->size()); 51 EXPECT_EQ(1U, preds->size()); 54 EXPECT_EQ(1U, preds->size());
|
/art/compiler/dex/ |
H A D | verification_results.cc | 70 DCHECK_EQ(it->second->GetDevirtMap().size(), verified_method->GetDevirtMap().size()); 71 DCHECK_EQ(it->second->GetSafeCastSet().size(), verified_method->GetSafeCastSet().size()); 72 DCHECK_EQ(it->second->GetDexGcMap().size(), verified_method->GetDexGcMap().size());
|
/art/compiler/dex/quick/mips/ |
H A D | utility_mips.cc | 357 int scale, OpSize size) { 365 DCHECK((size == k32) || (size == kSingle) || (size == kReference)); 366 size = kSingle; 368 if (size == kSingle) 369 size = k32; 379 switch (size) { 410 int scale, OpSize size) { 417 DCHECK((size 356 LoadBaseIndexed(RegStorage r_base, RegStorage r_index, RegStorage r_dest, int scale, OpSize size) argument 409 StoreBaseIndexed(RegStorage r_base, RegStorage r_index, RegStorage r_src, int scale, OpSize size) argument 455 LoadBaseDispBody(RegStorage r_base, int displacement, RegStorage r_dest, OpSize size) argument 552 LoadBaseDisp(RegStorage r_base, int displacement, RegStorage r_dest, OpSize size, VolatileKind is_volatile) argument 574 StoreBaseDispBody(RegStorage r_base, int displacement, RegStorage r_src, OpSize size) argument 655 StoreBaseDisp(RegStorage r_base, int displacement, RegStorage r_src, OpSize size, VolatileKind is_volatile) argument [all...] |
/art/runtime/arch/mips/ |
H A D | asm_support_mips.S | 43 .size \name, .-\name
|