Searched defs:ptr (Results 51 - 75 of 75) sorted by relevance

123

/art/libartbase/base/
H A Dhash_set.h215 HashSet(const uint8_t* ptr, bool make_copy_of_data, size_t* read_count) noexcept {
218 offset = ReadFromBytes(ptr, offset, &temp);
220 offset = ReadFromBytes(ptr, offset, &temp);
223 offset = ReadFromBytes(ptr, offset, &temp);
225 offset = ReadFromBytes(ptr, offset, &min_load_factor_);
226 offset = ReadFromBytes(ptr, offset, &max_load_factor_);
229 data_ = const_cast<T*>(reinterpret_cast<const T*>(ptr + offset));
236 offset = ReadFromBytes(ptr, offset, &data_[i]);
245 size_t WriteToMemory(uint8_t* ptr) const {
247 offset = WriteToBytes(ptr, offse
654 WriteToBytes(uint8_t* ptr, size_t offset, Elem n) argument
663 ReadFromBytes(const uint8_t* ptr, size_t offset, Elem* out) argument
[all...]
/art/libdexfile/dex/
H A Ddex_file_verifier_test.cc303 const uint8_t* ptr = FindMethodData(dex_file, method); local
305 DecodeUnsignedLeb128(&ptr);
308 const uint8_t* tmp = ptr;
310 size_t bytes = tmp - ptr;
312 uint8_t* mod = const_cast<uint8_t*>(ptr);
H A Ddex_file.cc528 int32_t DexFile::ReadSignedInt(const uint8_t* ptr, int zwidth) { argument
531 val = ((uint32_t)val >> 8) | (((int32_t)*ptr++) << 24);
539 uint32_t DexFile::ReadUnsignedInt(const uint8_t* ptr, int zwidth, bool fill_on_right) { argument
542 val = (val >> 8) | (((uint32_t)*ptr++) << 24);
551 int64_t DexFile::ReadSignedLong(const uint8_t* ptr, int zwidth) { argument
554 val = ((uint64_t)val >> 8) | (((int64_t)*ptr++) << 56);
562 uint64_t DexFile::ReadUnsignedLong(const uint8_t* ptr, int zwidth, bool fill_on_right) { argument
565 val = (val >> 8) | (((uint64_t)*ptr++) << 56);
H A Ddex_file_verifier.cc308 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { argument
310 if (!CheckListSize(*ptr, 1, 4U, label)) {
314 uint32_t count = *reinterpret_cast<const uint32_t*>(*ptr);
316 if (!CheckListSize(*ptr + 4, count, element_size, label)) {
321 *ptr += 4 + count * element_size;
565 #define DECODE_UNSIGNED_CHECKED_FROM_WITH_ERROR_VALUE(ptr, var, error_value) \
567 if (!DecodeUnsignedLeb128Checked(&(ptr), begin_ + size_, &(var))) { \
571 #define DECODE_UNSIGNED_CHECKED_FROM(ptr, var) \
573 if (!DecodeUnsignedLeb128Checked(&(ptr), begin_ + size_, &(var))) { \
578 #define DECODE_SIGNED_CHECKED_FROM(ptr, va
1978 FindFirstClassDataDefiner(const uint8_t* ptr, bool* success) argument
1997 FindFirstAnnotationsDirectoryDefiner(const uint8_t* ptr, bool* success) argument
2917 const uint8_t* ptr = begin + string_id->string_data_off_; local
[all...]
/art/runtime/base/
H A Darena_allocator.cc177 void ArenaAllocatorMemoryTool::DoMakeDefined(void* ptr, size_t size) { argument
178 MEMORY_TOOL_MAKE_DEFINED(ptr, size);
181 void ArenaAllocatorMemoryTool::DoMakeUndefined(void* ptr, size_t size) { argument
182 MEMORY_TOOL_MAKE_UNDEFINED(ptr, size);
185 void ArenaAllocatorMemoryTool::DoMakeInaccessible(void* ptr, size_t size) { argument
186 MEMORY_TOOL_MAKE_NOACCESS(ptr, size);
502 bool ArenaAllocator::Contains(const void* ptr) const {
503 if (ptr >= begin_ && ptr < end_) {
507 if (cur_arena->Contains(ptr)) {
[all...]
H A Darena_allocator.h178 void MakeDefined(void* ptr, size_t size) { argument
180 DoMakeDefined(ptr, size);
183 void MakeUndefined(void* ptr, size_t size) { argument
185 DoMakeUndefined(ptr, size);
188 void MakeInaccessible(void* ptr, size_t size) { argument
190 DoMakeInaccessible(ptr, size);
195 void DoMakeDefined(void* ptr, size_t size);
196 void DoMakeUndefined(void* ptr, size_t size);
197 void DoMakeInaccessible(void* ptr, size_t size);
228 // Return true if ptr i
[all...]
/art/runtime/gc/space/
H A Dlarge_object_space.cc185 size_t LargeObjectMapSpace::Free(Thread* self, mirror::Object* ptr) { argument
187 auto it = large_objects_.find(ptr);
191 LOG(FATAL) << "Attempted to free large object " << ptr << " which was not live";
/art/runtime/
H A Doat.cc425 const char* ptr = reinterpret_cast<const char*>(&key_value_store_); local
426 const char* end = ptr + key_value_store_size_;
428 while (ptr < end) {
430 const char* str_end = ParseString(ptr, end);
432 if (strcmp(key, ptr) == 0) {
439 ptr = ParseString(str_end + 1, end) + 1;
451 const char* ptr = reinterpret_cast<const char*>(&key_value_store_); local
452 const char* end = ptr + key_value_store_size_;
455 while (ptr < end && counter >= 0) {
457 const char* str_end = ParseString(ptr, en
[all...]
H A Dart_method.h829 uintptr_t ptr = reinterpret_cast<uintptr_t>(new_value); local
830 *reinterpret_cast<uint32_t*>(addr) = dchecked_integral_cast<uint32_t>(ptr);
H A Dmem_map.cc149 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) { argument
150 uintptr_t begin = reinterpret_cast<uintptr_t>(ptr);
274 static inline void* TryMemMapLow4GB(void* ptr, argument
280 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, offset);
913 for (uintptr_t ptr = next_mem_pos_; ptr < 4 * GB; ptr += kPageSize) {
915 // Find the first map which is address > ptr.
916 auto it = gMaps->upper_bound(reinterpret_cast<void*>(ptr));
921 ptr
[all...]
H A Dtrace.cc648 uint8_t* ptr = buf + kTraceHeaderLength; local
651 while (ptr < end) {
652 uint32_t tmid = ReadBytes(ptr + 2, sizeof(tmid));
656 ptr += GetRecordSize(clock_source);
968 uint8_t* ptr; local
972 ptr = stack_buf;
974 ptr = buf_.get() + old_offset;
977 Append2LE(ptr, thread->GetTid());
978 Append4LE(ptr + 2, method_value);
979 ptr
1020 uint8_t* ptr = buf_.get() + kTraceHeaderLength; local
[all...]
H A Doat_file.cc930 const uint8_t* ptr = variable
932 if (ptr == nullptr) {
935 return ptr;
1197 const uint8_t* ptr = elf_file_->FindDynamicSymbolAddress(symbol_name); variable
1198 if (ptr == nullptr) {
1201 return ptr;
H A Dcheck_jni.cc371 bool CheckNonNull(const void* ptr) { argument
372 if (UNLIKELY(ptr == nullptr)) {
2675 void* ptr = baseEnv(env)->GetPrimitiveArrayCritical(env, array, is_copy); local
2676 if (ptr != nullptr && soa.ForceCopy()) {
2677 ptr = GuardedCopy::CreateGuardedPACopy(env, array, is_copy, ptr);
2679 result.p = ptr;
3446 void* ptr; local
3449 ptr = const_cast<char*>(baseEnv(env)->GetStringUTFChars(env, string, is_copy));
3450 result.u = reinterpret_cast<char*>(ptr);
3562 void* ptr = nullptr; local
[all...]
H A Dstack_map.h768 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(this); local
769 dest->insert(dest->end(), ptr, ptr + sizeof(*this));
773 void Decode(const uint8_t** ptr) { argument
774 *this = *reinterpret_cast<const StackMapEncoding*>(*ptr);
775 *ptr += sizeof(*this);
948 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(this); local
949 dest->insert(dest->end(), ptr, ptr + sizeof(*this));
953 void Decode(const uint8_t** ptr) { argument
1094 Decode(const uint8_t** ptr) argument
1118 Decode(const uint8_t** ptr) argument
1158 Decode(const uint8_t** ptr) argument
1206 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(this); local
1210 Decode(const uint8_t** ptr) argument
1284 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(data); local
[all...]
H A Dthread.cc1342 AtomicInteger* ptr = tlsPtr_.active_suspend_barriers[i]; local
1343 if (ptr == target) {
1345 } else if (ptr != nullptr) {
H A Ddebugger.cc2679 uint8_t* ptr = expandBufAddSpace(pReply, width + 1); local
2680 error = Dbg::GetLocalValue(visitor, soa, slot, reqSigByte, ptr, width);
4824 void AppendChunk(uint8_t state, void* ptr, size_t length, bool is_native)
4845 EnsureHeader(ptr);
/art/runtime/gc/allocator/
H A Drosalloc.h424 void FreeSlot(void* ptr);
426 size_t AddToBulkFreeList(void* ptr);
428 void AddToThreadLocalFreeList(void* ptr);
463 size_t AddToFreeListShared(void* ptr, SlotFreeList<true>* free_list, const char* caller_name);
468 Slot* ToSlot(void* ptr) { argument
471 const size_t offset_from_slot_base = reinterpret_cast<uint8_t*>(ptr)
476 return reinterpret_cast<Slot*>(ptr);
783 size_t FreePages(Thread* self, void* ptr, bool already_zero) REQUIRES(lock_);
797 size_t FreeFromRun(Thread* self, void* ptr, Run* run)
808 size_t FreeInternal(Thread* self, void* ptr) REQUIRE
[all...]
H A Drosalloc.cc308 size_t RosAlloc::FreePages(Thread* self, void* ptr, bool already_zero) { argument
310 size_t pm_idx = ToPageMapIndex(ptr);
324 << static_cast<int>(pm_type) << ", ptr=" << std::hex
325 << reinterpret_cast<intptr_t>(ptr);
341 const uintptr_t* word_ptr = reinterpret_cast<uintptr_t*>(ptr);
347 memset(ptr, 0, byte_size);
351 LOG(INFO) << __PRETTY_FUNCTION__ << " : 0x" << std::hex << reinterpret_cast<intptr_t>(ptr)
352 << "-0x" << (reinterpret_cast<intptr_t>(ptr) + byte_size)
357 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr);
497 size_t RosAlloc::FreeInternal(Thread* self, void* ptr) { argument
541 Free(Thread* self, void* ptr) argument
757 FreeFromRun(Thread* self, void* ptr, Run* run) argument
872 FreeSlot(void* ptr) argument
914 AddToThreadLocalFreeList(void* ptr) argument
919 AddToBulkFreeList(void* ptr) argument
923 AddToFreeListShared(void* ptr, SlotFreeList<true>* free_list, const char* caller_name) argument
1024 void* ptr = ptrs[i]; local
1297 UsableSize(const void* ptr) argument
[all...]
/art/test/ti-stress/
H A Dstress.cc98 virtual void Free(void* ptr) { argument
99 jvmti_env_->Deallocate(reinterpret_cast<unsigned char*>(ptr));
/art/patchoat/
H A Dpatchoat.cc888 T* operator()(T* ptr, void** dest_addr ATTRIBUTE_UNUSED = 0) const { argument
889 return patch_oat_->RelocatedAddressOfPointer(ptr);
/art/runtime/jit/
H A Djit_code_cache.cc313 bool JitCodeCache::ContainsPc(const void* ptr) const {
314 return code_map_->Begin() <= ptr && ptr < code_map_->End();
1350 const void* ptr = info->GetMethod()->GetEntryPointFromQuickCompiledCode(); local
1351 if (!ContainsPc(ptr) && !info->IsInUseByCompiler()) {
1411 const void* ptr = info->GetMethod()->GetEntryPointFromQuickCompiledCode();
1418 if (ContainsPc(ptr) &&
1794 size_t JitCodeCache::GetMemorySizeOfCodePointer(const void* ptr) { argument
1796 return mspace_usable_size(reinterpret_cast<const void*>(FromCodeToAllocation(ptr)));
/art/dex2oat/linker/
H A Dimage_writer.cc108 bool ImageWriter::IsInBootOatFile(const void* ptr) const {
116 if (image_header.GetOatFileBegin() <= ptr && ptr < image_header.GetOatFileEnd()) {
1509 bool ImageWriter::NativeRelocationAssigned(void* ptr) const {
1510 return native_object_relocations_.find(ptr) != native_object_relocations_.end();
2302 std::string PrettyPrint(T* ptr) REQUIRES_SHARED(Locks::mutator_lock_) {
2304 oss << ptr; local
2343 T* operator()(T* ptr, void** dest_addr = nullptr) const REQUIRES_SHARED(Locks::mutator_lock_) {
2345 image_writer_->CopyAndFixupPointer(dest_addr, ptr);
2347 return image_writer_->NativeLocationInImage(ptr);
[all...]
/art/tools/dmtracedump/
H A Dtracedump.cc2350 DiffEntry* ptr = diffs; local
2360 ptr->method1 = methods1[i];
2361 ptr->method2 = methods2[match];
2363 uint64_t e1 = ptr->method1->elapsedExclusive;
2364 uint64_t e2 = ptr->method2->elapsedExclusive;
2366 ptr->differenceExclusive = e2 - e1;
2367 ptr->differenceExclusivePercentage = (static_cast<double>(e2) /
2371 uint64_t i1 = ptr->method1->elapsedInclusive;
2372 uint64_t i2 = ptr->method2->elapsedInclusive;
2374 ptr
[all...]
/art/oatdump/
H A Doatdump.cc3273 ArtMethod* ptr = im_table->Get(imt_index, pointer_size); local
3274 if (ptr->IsRuntimeMethod()) {
3275 if (ptr->IsImtUnimplementedMethod()) {
3278 ImtConflictTable* current_table = ptr->GetImtConflictTable(pointer_size);
3350 ArtMethod* ptr = table->GetInterfaceMethod(table_index, pointer_size); local
3351 if (ptr == nullptr) {
3355 std::cerr << " " << ptr->PrettyMethod(true) << std::endl;
3425 ArtMethod* ptr = imt->Get(index, pointer_size); local
3426 if (ptr->IsRuntimeMethod()) {
3427 if (ptr
3483 ArtMethod* ptr = imt->Get(index, pointer_size); local
[all...]
/art/runtime/gc/
H A Dheap.cc1596 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, local
1598 if (ptr != nullptr) {
1599 return ptr;
1611 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, local
1613 if (ptr != nullptr) {
1614 return ptr;
1632 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, local
1634 if (ptr != nullptr) {
1635 return ptr;
1641 mirror::Object* ptr local
[all...]

Completed in 7517 milliseconds

123