/art/runtime/ |
D | leb128.h | 29 const uint8_t* ptr = *data; in DecodeUnsignedLeb128() local 30 int result = *(ptr++); in DecodeUnsignedLeb128() 32 int cur = *(ptr++); in DecodeUnsignedLeb128() 35 cur = *(ptr++); in DecodeUnsignedLeb128() 38 cur = *(ptr++); in DecodeUnsignedLeb128() 43 cur = *(ptr++); in DecodeUnsignedLeb128() 49 *data = ptr; in DecodeUnsignedLeb128() 65 const uint8_t* ptr = *data; in DecodeSignedLeb128() local 66 int32_t result = *(ptr++); in DecodeSignedLeb128() 70 int cur = *(ptr++); in DecodeSignedLeb128() [all …]
|
D | trace.cc | 485 uint8_t* ptr = buf + kTraceHeaderLength; in DumpBuf() local 488 while (ptr < end) { in DumpBuf() 489 uint32_t tmid = ptr[2] | (ptr[3] << 8) | (ptr[4] << 16) | (ptr[5] << 24); in DumpBuf() 493 ptr += GetRecordSize(clock_source); in DumpBuf() 665 uint8_t* ptr = buf_.get() + old_offset; in LogMethodTraceEvent() local 666 Append2LE(ptr, thread->GetTid()); in LogMethodTraceEvent() 667 Append4LE(ptr + 2, method_value); in LogMethodTraceEvent() 668 ptr += 6; in LogMethodTraceEvent() 671 Append4LE(ptr, thread_clock_diff); in LogMethodTraceEvent() 672 ptr += 4; in LogMethodTraceEvent() [all …]
|
D | oat.cc | 414 const char* ptr = reinterpret_cast<const char*>(&key_value_store_); in GetStoreValueByKey() local 415 const char* end = ptr + key_value_store_size_; in GetStoreValueByKey() 417 while (ptr < end) { in GetStoreValueByKey() 419 const char* str_end = ParseString(ptr, end); in GetStoreValueByKey() 421 if (strcmp(key, ptr) == 0) { in GetStoreValueByKey() 428 ptr = ParseString(str_end + 1, end) + 1; in GetStoreValueByKey() 440 const char* ptr = reinterpret_cast<const char*>(&key_value_store_); in GetStoreKeyValuePairByIndex() local 441 const char* end = ptr + key_value_store_size_; in GetStoreKeyValuePairByIndex() 444 while (ptr < end && counter >= 0) { in GetStoreKeyValuePairByIndex() 446 const char* str_end = ParseString(ptr, end); in GetStoreKeyValuePairByIndex() [all …]
|
D | dex_file-inl.h | 29 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringLength() local 30 return DecodeUnsignedLeb128(&ptr); in GetStringLength() 36 const byte* ptr = begin_ + string_id.string_data_off_; in GetStringDataAndUtf16Length() local 37 *utf16_length = DecodeUnsignedLeb128(&ptr); in GetStringDataAndUtf16Length() 38 return reinterpret_cast<const char*>(ptr); in GetStringDataAndUtf16Length()
|
D | dex_file_verifier.h | 48 bool CheckList(size_t element_size, const char* label, const byte* *ptr); 84 uint16_t FindFirstClassDataDefiner(const byte* ptr, bool* success); 85 uint16_t FindFirstAnnotationsDirectoryDefiner(const byte* ptr, bool* success);
|
D | mem_map.cc | 301 for (uintptr_t ptr = next_mem_pos_; ptr < 4 * GB; ptr += kPageSize) { in MapAnonymous() local 302 if (4U * GB - ptr < page_aligned_byte_count) { in MapAnonymous() 306 ptr = LOW_MEM_START - kPageSize; in MapAnonymous() 319 for (tail_ptr = ptr; tail_ptr < ptr + page_aligned_byte_count; tail_ptr += kPageSize) { in MapAnonymous() 331 actual = mmap(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous() 345 ptr = tail_ptr; in MapAnonymous()
|
D | dex_file.cc | 1061 static int32_t ReadSignedInt(const byte* ptr, int zwidth) { in ReadSignedInt() argument 1064 val = ((uint32_t)val >> 8) | (((int32_t)*ptr++) << 24); in ReadSignedInt() 1072 static uint32_t ReadUnsignedInt(const byte* ptr, int zwidth, bool fill_on_right) { in ReadUnsignedInt() argument 1076 val = (val >> 8) | (((uint32_t)*ptr++) << 24); in ReadUnsignedInt() 1081 val = (val >> 8) | (((uint32_t)*ptr++) << 24); in ReadUnsignedInt() 1088 static int64_t ReadSignedLong(const byte* ptr, int zwidth) { in ReadSignedLong() argument 1091 val = ((uint64_t)val >> 8) | (((int64_t)*ptr++) << 56); in ReadSignedLong() 1099 static uint64_t ReadUnsignedLong(const byte* ptr, int zwidth, bool fill_on_right) { in ReadUnsignedLong() argument 1103 val = (val >> 8) | (((uint64_t)*ptr++) << 56); in ReadUnsignedLong() 1108 val = (val >> 8) | (((uint64_t)*ptr++) << 56); in ReadUnsignedLong()
|
/art/compiler/utils/ |
D | scoped_arena_allocator.h | 71 uint8_t* ptr = top_ptr_; in Alloc() local 72 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in Alloc() 73 ptr = AllocateFromNextArena(rounded_bytes); in Alloc() 76 top_ptr_ = ptr + rounded_bytes; in Alloc() 77 return ptr; in Alloc() 127 static void operator delete(void* ptr) { UNUSED(ptr); } in delete() argument
|
D | scoped_arena_allocator.cc | 96 uint8_t* ptr = top_ptr_; in AllocValgrind() local 97 if (UNLIKELY(static_cast<size_t>(top_end_ - ptr) < rounded_bytes)) { in AllocValgrind() 98 ptr = AllocateFromNextArena(rounded_bytes); in AllocValgrind() 101 top_ptr_ = ptr + rounded_bytes; in AllocValgrind() 102 VALGRIND_MAKE_MEM_UNDEFINED(ptr, bytes); in AllocValgrind() 103 VALGRIND_MAKE_MEM_NOACCESS(ptr + bytes, rounded_bytes - bytes); in AllocValgrind() 104 return ptr; in AllocValgrind()
|
D | arena_allocator.cc | 232 for (uint8_t* ptr = ret; ptr < ptr_; ++ptr) { in AllocValgrind() local 233 CHECK_EQ(*ptr, 0U); in AllocValgrind()
|
/art/runtime/base/unix_file/ |
D | fd_file.cc | 122 char* ptr = static_cast<char*>(buffer); in ReadFully() local 124 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count)); in ReadFully() 131 ptr += bytes_read; // Move the buffer forward. in ReadFully() 137 const char* ptr = static_cast<const char*>(buffer); in WriteFully() local 139 ssize_t bytes_written = TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count)); in WriteFully() 144 ptr += bytes_written; // Move the buffer forward. in WriteFully()
|
/art/compiler/llvm/ |
D | ir_builder.h | 79 ::llvm::LoadInst* CreateLoad(::llvm::Value* ptr, ::llvm::MDNode* tbaa_info) { in CreateLoad() argument 80 ::llvm::LoadInst* inst = LLVMIRBuilder::CreateLoad(ptr); in CreateLoad() 85 …::llvm::StoreInst* CreateStore(::llvm::Value* val, ::llvm::Value* ptr, ::llvm::MDNode* tbaa_info) { in CreateStore() argument 86 ::llvm::StoreInst* inst = LLVMIRBuilder::CreateStore(val, ptr); in CreateStore() 92 CreateAtomicCmpXchgInst(::llvm::Value* ptr, ::llvm::Value* cmp, ::llvm::Value* val, in CreateAtomicCmpXchgInst() argument 95 LLVMIRBuilder::CreateAtomicCmpXchg(ptr, cmp, val, ::llvm::Acquire); in CreateAtomicCmpXchgInst() 115 ::llvm::LoadInst* CreateLoad(::llvm::Value* ptr, TBAASpecialType special_ty) { in CreateLoad() argument 116 return CreateLoad(ptr, mdb_.GetTBAASpecialType(special_ty)); in CreateLoad() 119 …::llvm::StoreInst* CreateStore(::llvm::Value* val, ::llvm::Value* ptr, TBAASpecialType special_ty)… in CreateStore() argument 121 return CreateStore(val, ptr, mdb_.GetTBAASpecialType(special_ty)); in CreateStore() [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 159 size_t DlMallocSpace::Free(Thread* self, mirror::Object* ptr) { in Free() argument 162 CHECK(ptr != nullptr); in Free() 163 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this; in Free() 165 const size_t bytes_freed = AllocationSizeNonvirtual(ptr, nullptr); in Free() 167 RegisterRecentFree(ptr); in Free() 169 mspace_free(mspace_, ptr); in Free() 179 mirror::Object* ptr = ptrs[i]; in FreeList() local 185 bytes_freed += AllocationSizeNonvirtual(ptr, nullptr); in FreeList()
|
D | valgrind_malloc_space.h | 40 size_t Free(Thread* self, mirror::Object* ptr) OVERRIDE 46 void RegisterRecentFree(mirror::Object* ptr) OVERRIDE { in RegisterRecentFree() argument
|
D | valgrind_malloc_space-inl.h | 74 size_t ValgrindMallocSpace<S, A>::Free(Thread* self, mirror::Object* ptr) { in Free() argument 75 void* obj_after_rdz = reinterpret_cast<void*>(ptr); in Free() 79 AllocationSize(ptr, &usable_size); in Free()
|
D | rosalloc_space.cc | 174 size_t RosAllocSpace::Free(Thread* self, mirror::Object* ptr) { in Free() argument 176 CHECK(ptr != NULL); in Free() 177 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this; in Free() 181 RegisterRecentFree(ptr); in Free() 183 return rosalloc_->Free(self, ptr); in Free()
|
D | large_object_space_test.cc | 106 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr); in Run() local 110 los_->Free(self, ptr); in Run()
|
D | malloc_space.h | 65 virtual size_t Free(Thread* self, mirror::Object* ptr) 153 virtual void RegisterRecentFree(mirror::Object* ptr)
|
D | malloc_space.cc | 116 void MallocSpace::RegisterRecentFree(mirror::Object* ptr) { in RegisterRecentFree() argument 118 recent_freed_objects_[recent_free_pos_] = std::make_pair(ptr, ptr->GetClass<kVerifyNone>()); in RegisterRecentFree()
|
/art/runtime/arch/arm/ |
D | fault_handler_arm.cc | 96 uint8_t* ptr = reinterpret_cast<uint8_t*>(sc->arm_pc); in GetMethodAndReturnPcAndSp() local 97 VLOG(signals) << "pc: " << std::hex << static_cast<void*>(ptr); in GetMethodAndReturnPcAndSp() 98 uint32_t instr_size = GetInstructionSize(ptr); in GetMethodAndReturnPcAndSp() 113 uint8_t* ptr = reinterpret_cast<uint8_t*>(sc->arm_pc); in Action() local 115 uint32_t instr_size = GetInstructionSize(ptr); in Action()
|
/art/runtime/gc/allocator/ |
D | rosalloc.cc | 289 size_t RosAlloc::FreePages(Thread* self, void* ptr, bool already_zero) { in FreePages() argument 291 size_t pm_idx = ToPageMapIndex(ptr); in FreePages() 306 << reinterpret_cast<intptr_t>(ptr); in FreePages() 322 const uword* word_ptr = reinterpret_cast<uword*>(ptr); in FreePages() 328 memset(ptr, 0, byte_size); in FreePages() 332 LOG(INFO) << __PRETTY_FUNCTION__ << " : 0x" << std::hex << reinterpret_cast<intptr_t>(ptr) in FreePages() 333 << "-0x" << (reinterpret_cast<intptr_t>(ptr) + byte_size) in FreePages() 338 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr); in FreePages() 485 size_t RosAlloc::FreeInternal(Thread* self, void* ptr) { in FreeInternal() argument 486 DCHECK_LE(base_, ptr); in FreeInternal() [all …]
|
D | rosalloc.h | 219 void FreeSlot(void* ptr); 221 size_t MarkBulkFreeBitMap(void* ptr); 223 void MarkThreadLocalFreeBitMap(void* ptr); 255 size_t MarkFreeBitMapShared(void* ptr, uint32_t* free_bit_map_base, const char* caller_name); 488 size_t FreePages(Thread* self, void* ptr, bool already_zero) EXCLUSIVE_LOCKS_REQUIRED(lock_); 500 size_t FreeFromRun(Thread* self, void* ptr, Run* run) 511 size_t FreeInternal(Thread* self, void* ptr) LOCKS_EXCLUDED(lock_); 535 size_t Free(Thread* self, void* ptr) 540 size_t UsableSize(void* ptr);
|
/art/disassembler/ |
D | disassembler_mips.cc | 166 static uint32_t ReadU32(const uint8_t* ptr) { in ReadU32() argument 168 return ptr[0] | (ptr[1] << 8) | (ptr[2] << 16) | (ptr[3] << 24); in ReadU32()
|
D | disassembler_arm64.cc | 30 static uint32_t ReadU32(const uint8_t* ptr) { in ReadU32() argument 31 return *((const uint32_t*)ptr); in ReadU32()
|
/art/runtime/arch/x86/ |
D | fault_handler_x86.cc | 354 uint8_t* ptr = pc - sizeof(checkinst1); in Action() local 356 while (ptr > limit) { in Action() 357 if (memcmp(ptr, checkinst1, sizeof(checkinst1)) == 0) { in Action() 361 ptr -= 1; in Action()
|