Searched refs:ptr_ (Results 1 – 7 of 7) sorted by relevance
/art/libartbase/base/ |
D | stride_iterator.h | 38 : ptr_(reinterpret_cast<uintptr_t>(ptr)), in StrideIterator() 43 return ptr_ == other.ptr_; 51 ptr_ += stride_; 62 ptr_ -= stride_; 73 ptr_ += static_cast<ssize_t>(stride_) * delta; 84 ptr_ -= static_cast<ssize_t>(stride_) * delta; 96 DCHECK_EQ((ptr_ - rhs.ptr_) % stride_, 0u); 97 return (ptr_ - rhs.ptr_) / stride_; 101 return *reinterpret_cast<T*>(ptr_); 113 uintptr_t ptr_; [all …]
|
D | arena_allocator.cc | 196 size_t total = ptr_ - begin_; in BytesUsed() 210 ptr_(nullptr), in ArenaAllocator() 218 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated() 229 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool() 232 ret = ptr_; in AllocWithMemoryTool() 233 ptr_ += rounded_bytes; in AllocWithMemoryTool() 248 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16() 251 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16() 255 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16() 256 ret = ptr_; in AllocWithMemoryToolAlign16() [all …]
|
D | arena_allocator.h | 273 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) { 276 uint8_t* ret = ptr_; 278 ptr_ += bytes; 290 ((reinterpret_cast<uintptr_t>(ptr_) + 15u) & 15u) - reinterpret_cast<uintptr_t>(ptr_); 292 if (UNLIKELY(padding + bytes > static_cast<size_t>(end_ - ptr_))) { 296 ptr_ += padding; 297 uint8_t* ret = ptr_; 299 ptr_ += bytes; 314 if (end == ptr_) { 316 DCHECK(!IsRunningOnMemoryTool() || ptr_ == nullptr); [all …]
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 205 ptr_(nullptr), in DexFileVerifier() 249 if (LIKELY(CheckListSize(ptr_, size, sizeof(uint8_t), "encoded_value"))) { in ReadUnsignedLittleEndian() 251 result |= ((uint32_t) *(ptr_++)) << (i * 8); in ReadUnsignedLittleEndian() 410 const uint8_t* ptr_; member in art::dex::DexFileVerifier 796 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets() 797 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets() 814 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets() 819 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 827 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 936 if (UNLIKELY(*ptr_ != '\0')) { in CheckPadding() [all …]
|
D | dex_file.cc | 600 ptr_(array_data), in EncodedArrayValueIterator() 602 array_size_ = (ptr_ != nullptr) ? DecodeUnsignedLeb128(&ptr_) : 0; in EncodedArrayValueIterator() 613 uint8_t value_type = *ptr_++; in Next() 623 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 627 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 631 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, false); in Next() 635 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in Next() 638 jval_.j = DexFile::ReadSignedLong(ptr_, value_arg); in Next() 641 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, true); in Next() 644 jval_.j = DexFile::ReadUnsignedLong(ptr_, value_arg, true); in Next() [all …]
|
D | dex_file.h | 959 const uint8_t* ptr_; // Pointer into encoded data array. variable
|
/art/test/616-cha-unloading/ |
D | cha_unload.cc | 36 explicit FindPointerAllocatorVisitor(void* ptr) : is_found(false), ptr_(ptr) {} in FindPointerAllocatorVisitor() 40 is_found = alloc->Contains(ptr_); in Visit() 47 void* ptr_; member in art::__anond2503c590111::FindPointerAllocatorVisitor
|