Searched defs:ptr (Results 1 - 25 of 75) sorted by last modified time

123

/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/tools/hiddenapi/
H A Dhiddenapi.cc117 // `ptr` initially points to the next ClassData item. We iterate backwards
119 const uint8_t* ptr = it_.DataPointer(); local
121 ptr = ReverseSearchUnsignedLeb128(ptr);
122 DCHECK_EQ(DecodeUnsignedLeb128WithoutMovingCursor(ptr), it_.GetMethodCodeItemOffset());
124 ptr = ReverseSearchUnsignedLeb128(ptr);
125 DCHECK_EQ(DecodeUnsignedLeb128WithoutMovingCursor(ptr), old_flags);
128 UpdateUnsignedLeb128(const_cast<uint8_t*>(ptr), new_flags);
/art/test/ti-stress/
H A Dstress.cc98 virtual void Free(void* ptr) { argument
99 jvmti_env_->Deallocate(reinterpret_cast<unsigned char*>(ptr));
/art/test/1900-track-alloc/
H A Dalloc.cc47 jlong ptr) {
51 reinterpret_cast<unsigned char*>(static_cast<intptr_t>(ptr))));
44 Java_art_Test1900_doDeallocate(JNIEnv* env, jclass, jlong jvmti_env_ptr, jlong ptr) argument
/art/test/1900-track-alloc/src/art/
H A DTest1900.java143 private static native void doDeallocate(long jvmtienv, long ptr); argument
/art/test/1909-per-agent-tls/src/art/
H A DTest1909.java36 public void setTLS(long jvmtienv, long ptr) { argument
37 Test1909.setTLS(jvmtienv, this.thr, ptr);
75 public void setTLS(long jvmtienv, long ptr) { argument
76 Test1909.setTLS(jvmtienv, this.thr, ptr);
173 public static native void setTLS(long jvmtienv, Thread thr, long ptr); argument
/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/runtime/
H A Dlinear_alloc.cc26 void* LinearAlloc::Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size) { argument
28 return allocator_.Realloc(ptr, old_size, new_size);
51 bool LinearAlloc::Contains(void* ptr) const {
53 return allocator_.Contains(ptr);
56 bool LinearAlloc::ContainsUnsafe(void* ptr) const {
57 return allocator_.Contains(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 Dmem_map_test.cc503 uintptr_t ptr = 0; local
504 ptr -= kPageSize; // Now it's close to the top.
506 reinterpret_cast<uint8_t*>(ptr),
H A Dmethod_info.h35 explicit MethodInfo(const uint8_t* ptr) { argument
36 if (ptr != nullptr) {
37 num_method_indices_ = DecodeUnsignedLeb128(&ptr);
38 region_ = MemoryRegion(const_cast<uint8_t*>(ptr),
44 MethodInfo(uint8_t* ptr, size_t num_method_indices) : num_method_indices_(num_method_indices) { argument
45 DCHECK(ptr != nullptr);
46 ptr = EncodeUnsignedLeb128(ptr, num_method_indices_);
47 region_ = MemoryRegion(ptr, num_method_indices_ * sizeof(MethodIndexType));
52 uint8_t* ptr local
[all...]
H A Dmonitor.h159 void operator delete(void* ptr) { argument
160 free(ptr);
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 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 Dobj_ptr-inl.h43 inline uintptr_t ObjPtr<MirrorType>::Encode(MirrorType* ptr) { argument
44 uintptr_t ref = reinterpret_cast<uintptr_t>(ptr);
58 inline std::ostream& operator<<(std::ostream& os, ObjPtr<MirrorType> ptr) { argument
60 return os << ptr.PtrUnchecked();
H A Dobj_ptr.h60 ALWAYS_INLINE ObjPtr(Type* ptr)
62 : reference_(Encode(static_cast<MirrorType*>(ptr))) {
84 ALWAYS_INLINE ObjPtr& operator=(MirrorType* ptr) REQUIRES_SHARED(Locks::mutator_lock_) {
85 Assign(ptr);
89 ALWAYS_INLINE void Assign(MirrorType* ptr) REQUIRES_SHARED(Locks::mutator_lock_) {
90 reference_ = Encode(ptr);
111 ALWAYS_INLINE bool operator==(const ObjPtr& ptr) const REQUIRES_SHARED(Locks::mutator_lock_) {
112 return Ptr() == ptr.Ptr();
116 ALWAYS_INLINE bool operator==(const PointerType* ptr) const
118 return Ptr() == ptr;
209 MakeObjPtr(MirrorType* ptr) argument
214 MakeObjPtr(ObjPtr<MirrorType> ptr) argument
[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 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 Dtype_lookup_table.h130 const uint8_t* ptr = dex_data_begin_ + str_offset; local
133 DecodeUnsignedLeb128(&ptr);
135 str, reinterpret_cast<const char*>(ptr)) == 0;
/art/runtime/mirror/
H A Darray-inl.h433 void* ptr = GetElementPtrSize<void*, kVerifyFlags, kReadBarrierOption>(i, pointer_size); local
434 void* new_ptr = visitor(ptr);
435 if (ptr != new_ptr) {
H A Ddex_cache-inl.h332 String* ptr = source.object.Read<kReadBarrierOption>(); local
333 String* new_source = visitor(ptr);
344 Class* ptr = source.object.Read<kReadBarrierOption>(); local
345 Class* new_source = visitor(ptr);
357 MethodType* ptr = source.object.Read<kReadBarrierOption>(); local
358 MethodType* new_source = visitor(ptr);
H A Dobject.h601 uintptr_t ptr = reinterpret_cast<uintptr_t>(new_value); local
602 DCHECK_EQ(static_cast<uint32_t>(ptr), ptr); // Check that we dont lose any non 0 bits. local
604 field_offset, static_cast<int32_t>(static_cast<uint32_t>(ptr)));
H A Dobject_reference-inl.h28 void ObjectReference<kPoisonReferences, MirrorType>::Assign(ObjPtr<MirrorType> ptr) { argument
29 Assign(ptr.Ptr());
/art/runtime/verifier/
H A Dreg_type_cache.cc173 char* ptr = allocator_.AllocArray<char>(string_piece.length()); local
174 memcpy(ptr, string_piece.data(), string_piece.length());
175 return StringPiece(ptr, string_piece.length());

Completed in 7109 milliseconds

123