Searched refs:ptr_ (Results 1 – 8 of 8) sorted by relevance
/art/libartbase/base/ |
D | stride_iterator.h | 41 : ptr_(reinterpret_cast<uintptr_t>(ptr)), in StrideIterator() 46 return ptr_ == other.ptr_; 54 ptr_ += stride_; 65 ptr_ -= stride_; 76 ptr_ += static_cast<ssize_t>(stride_) * delta; 87 ptr_ -= static_cast<ssize_t>(stride_) * delta; 99 DCHECK_EQ((ptr_ - rhs.ptr_) % stride_, 0u); 100 return (ptr_ - rhs.ptr_) / stride_; 104 return *reinterpret_cast<T*>(ptr_); 116 uintptr_t ptr_; [all …]
|
D | arena_allocator.cc | 192 size_t total = ptr_ - begin_; in BytesUsed() 206 ptr_(nullptr), in ArenaAllocator() 214 arena_head_->bytes_allocated_ = ptr_ - begin_; in UpdateBytesAllocated() 225 if (UNLIKELY(rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryTool() 228 ret = ptr_; in AllocWithMemoryTool() 229 ptr_ += rounded_bytes; in AllocWithMemoryTool() 244 RoundUp(reinterpret_cast<uintptr_t>(ptr_), 16) - reinterpret_cast<uintptr_t>(ptr_); in AllocWithMemoryToolAlign16() 247 if (UNLIKELY(padding + rounded_bytes > static_cast<size_t>(end_ - ptr_))) { in AllocWithMemoryToolAlign16() 251 ptr_ += padding; // Leave padding inaccessible. in AllocWithMemoryToolAlign16() 252 ret = ptr_; in AllocWithMemoryToolAlign16() [all …]
|
D | arena_allocator.h | 275 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) { 278 uint8_t* ret = ptr_; 280 ptr_ += bytes; 292 RoundUp(reinterpret_cast<uintptr_t>(ptr_), 16) - reinterpret_cast<uintptr_t>(ptr_); 294 if (UNLIKELY(padding + bytes > static_cast<size_t>(end_ - ptr_))) { 298 ptr_ += padding; 299 uint8_t* ret = ptr_; 301 ptr_ += bytes; 316 if (end == ptr_) { 318 DCHECK(!IsRunningOnMemoryTool() || ptr_ == nullptr); [all …]
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 135 ptr_(nullptr), in DexFileVerifier() 259 if (!CheckListSize(ptr_, size, sizeof(uint8_t), "encoded_value")) { in ReadUnsignedLittleEndian() 264 *result |= ((uint32_t) * (ptr_++)) << (i * 8); in ReadUnsignedLittleEndian() 437 const uint8_t* ptr_; member in art::dex::DexFileVerifier 867 size_t offset = ptr_ - handlers_base; in CheckAndGetHandlerOffsets() 868 DECODE_SIGNED_CHECKED_FROM(ptr_, size); in CheckAndGetHandlerOffsets() 885 DECODE_UNSIGNED_CHECKED_FROM(ptr_, type_idx); in CheckAndGetHandlerOffsets() 890 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 898 DECODE_UNSIGNED_CHECKED_FROM(ptr_, addr); in CheckAndGetHandlerOffsets() 1000 size_t offset = PtrToOffset(ptr_); in CheckPadding() [all …]
|
D | dex_file.cc | 736 ptr_(array_data), in EncodedArrayValueIterator() 738 array_size_ = (ptr_ != nullptr) ? DecodeUnsignedLeb128(&ptr_) : 0; in EncodedArrayValueIterator() 750 uint8_t value_type = *ptr_++; in MaybeNext() 760 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in MaybeNext() 764 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in MaybeNext() 768 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, false); in MaybeNext() 772 jval_.i = DexFile::ReadSignedInt(ptr_, value_arg); in MaybeNext() 775 jval_.j = DexFile::ReadSignedLong(ptr_, value_arg); in MaybeNext() 778 jval_.i = DexFile::ReadUnsignedInt(ptr_, value_arg, true); in MaybeNext() 781 jval_.j = DexFile::ReadUnsignedLong(ptr_, value_arg, true); in MaybeNext() [all …]
|
D | dex_file.h | 1103 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
|
/art/runtime/jni/ |
D | check_jni.cc | 197 VarArgs(jmethodID m, const jvalue* vals) : m_(m), type_(kTypePtr), cnt_(0), ptr_(vals) {} in VarArgs() 212 ptr_ = other.ptr_; in VarArgs() 226 return VarArgs(m_, cnt_, ptr_); in Clone() 255 jvalue v = ptr_[cnt_]; in GetValue() 284 …VarArgs(jmethodID m, uint32_t cnt, const jvalue* vals) : m_(m), type_(kTypePtr), cnt_(cnt), ptr_(v… in VarArgs() 296 const jvalue* ptr_; member
|