/art/libartbase/base/ |
H A D | hex_dump.cc | 36 const unsigned char* addr = reinterpret_cast<const unsigned char*>(address_); local 47 offset = reinterpret_cast<size_t>(addr); 83 *hex++ = gHexDigit[*addr >> 4]; 84 *hex++ = gHexDigit[*addr & 0x0f]; 86 if (*addr >= 0x20 && *addr < 0x7f /*isprint(*addr)*/) { 87 *asc++ = *addr; 91 addr++;
|
/art/runtime/base/ |
H A D | quasi_atomic.cc | 27 Mutex* QuasiAtomic::GetSwapMutex(const volatile int64_t* addr) { argument 28 return (*gSwapMutexes)[(reinterpret_cast<uintptr_t>(addr) >> 3U) % kSwapMutexCount]; 47 int64_t QuasiAtomic::SwapMutexRead64(volatile const int64_t* addr) { argument 48 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); 49 return *addr; 52 void QuasiAtomic::SwapMutexWrite64(volatile int64_t* addr, int64_t value) { argument 53 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); 54 *addr = value; 58 bool QuasiAtomic::SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { argument 59 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); [all...] |
H A D | quasi_atomic.h | 59 // Reads the 64-bit value at "addr" without tearing. 60 static int64_t Read64(volatile const int64_t* addr) { argument 64 value = *addr; 72 : "m" (*addr)); 78 : "Q" (*addr)); 84 : "m" (*addr)); 91 return SwapMutexRead64(addr); 95 // Writes to the 64-bit value at "addr" without tearing. 96 static void Write64(volatile int64_t* addr, int64_t value) { argument 99 *addr 142 Cas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) argument [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | EncodedTypeAddrPair.java | 23 public int addr; field in class:EncodedTypeAddrPair 28 addr = file.readUleb128(); 34 file.writeUleb128(addr);
|
/art/runtime/gc/accounting/ |
H A D | bitmap.h | 147 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; local 148 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); 149 return addr; 153 ALWAYS_INLINE uintptr_t BitIndexFromAddr(uintptr_t addr) const { 154 DCHECK(HasAddress(addr)) << CoverBegin() << " <= " << addr << " < " << CoverEnd(); 155 return (addr - CoverBegin()) / kAlignment; 158 ALWAYS_INLINE bool HasAddress(const uintptr_t addr) const { 159 return cover_begin_ <= addr && addr < cover_end 162 Set(uintptr_t addr) argument 166 Clear(size_t addr) argument 175 AtomicTestAndSet(size_t addr) argument [all...] |
H A D | card_table.h | 60 ALWAYS_INLINE void MarkCard(const void *addr) { argument 61 *CardFromAddr(addr) = kCardDirty; 119 void CheckAddrIsInCardTable(const uint8_t* addr) const; 131 uint8_t* CardFromAddr(const void *addr) const ALWAYS_INLINE; 133 bool AddrIsInCardTable(const void* addr) const;
|
H A D | space_bitmap-inl.h | 35 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 36 DCHECK_GE(addr, heap_begin_); 37 const uintptr_t offset = addr - heap_begin_; 57 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 60 DCHECK_GE(addr, heap_begin_); 61 const uintptr_t offset = addr - heap_begin_; 187 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 188 DCHECK_GE(addr, heap_begin_); 190 const uintptr_t offset = addr - heap_begin_;
|
H A D | atomic_stack.h | 255 uint8_t* addr = mem_map_->Begin(); local 256 CHECK(addr != nullptr); 258 begin_ = reinterpret_cast<StackReference<T>*>(addr);
|
H A D | mod_union_table.cc | 574 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); 575 addr += CardTable::kCardSize) { 576 if (card_bitmap_->Test(reinterpret_cast<uintptr_t>(addr))) { 577 os << reinterpret_cast<void*>(addr) << "-" 578 << reinterpret_cast<void*>(addr + CardTable::kCardSize) << "\n"; 586 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); 587 addr += CardTable::kCardSize) { 588 card_bitmap_->Set(reinterpret_cast<uintptr_t>(addr)); 592 ContainsCardFor(uintptr_t addr) argument 603 ContainsCardFor(uintptr_t addr) argument [all...] |
/art/runtime/gc/ |
H A D | verification.cc | 30 std::string Verification::DumpRAMAroundAddress(uintptr_t addr, uintptr_t bytes) const { argument 31 const uintptr_t dump_start = addr - bytes; 32 const uintptr_t dump_end = addr + bytes; 39 if (p == addr) { 52 std::string Verification::DumpObjectInfo(const void* addr, const char* tag) const { argument 54 oss << tag << "=" << addr; local 55 if (IsValidHeapObjectAddress(addr)) { 56 mirror::Object* obj = reinterpret_cast<mirror::Object*>(const_cast<void*>(addr)); 67 space::Space* const space = heap_->FindSpaceFromAddress(addr); 72 if (card_table->AddrIsInCardTable(addr)) { 107 mirror::HeapReference<mirror::Object>* addr = holder->GetFieldObjectReferenceAddr(offset); local 119 IsAddressInHeapSpace(const void* addr, space::Space** out_space) const argument 130 IsValidHeapObjectAddress(const void* addr, space::Space** out_space) const argument [all...] |
/art/runtime/mirror/ |
H A D | object.h | 731 kSize* addr = reinterpret_cast<kSize*>(raw_addr); local 733 reinterpret_cast<Atomic<kSize>*>(addr)->StoreSequentiallyConsistent(new_value); 735 reinterpret_cast<Atomic<kSize>*>(addr)->StoreJavaData(new_value); 743 const kSize* addr = reinterpret_cast<const kSize*>(raw_addr); local 745 return reinterpret_cast<const Atomic<kSize>*>(addr)->LoadSequentiallyConsistent(); 747 return reinterpret_cast<const Atomic<kSize>*>(addr)->LoadJavaData();
|
H A D | object-inl.h | 675 const kSize* addr = reinterpret_cast<const kSize*>(raw_addr); local 676 return reinterpret_cast<const Atomic<kSize>*>(addr)->LoadAcquire(); 1010 T* addr = reinterpret_cast<T*>(raw_addr); local 1011 accessor->Access(addr); 1029 uint8_t* addr = raw_addr; local 1030 accessor->Access(addr); 1048 int8_t* addr = reinterpret_cast<int8_t*>(raw_addr); local 1049 accessor->Access(addr); 1067 uint16_t* addr = reinterpret_cast<uint16_t*>(raw_addr); local 1068 accessor->Access(addr); 1086 int16_t* addr = reinterpret_cast<int16_t*>(raw_addr); local 1105 int32_t* addr = reinterpret_cast<int32_t*>(raw_addr); local 1124 int64_t* addr = reinterpret_cast<int64_t*>(raw_addr); local [all...] |
/art/runtime/jdwp/ |
H A D | jdwp_socket.cc | 142 } addr; local 143 addr.addrInet.sin_family = AF_INET; 144 addr.addrInet.sin_port = htons(port); 145 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); 147 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { 218 } addr; local 228 addrlen = sizeof(addr); 230 sock = accept(listenSock, &addr.addrPlain, &addrlen); 245 remote_addr_ = addr 270 } addr; local 458 } addr; local [all...] |
/art/runtime/ |
H A D | mem_map_test.cc | 40 static bool IsAddressMapped(void* addr) { argument 41 bool res = msync(addr, 1, MS_SYNC) == 0;
|
H A D | common_throws.cc | 455 static bool IsValidReadBarrierImplicitCheck(uintptr_t addr) { argument 463 return addr == monitor_offset; 466 static bool IsValidImplicitCheck(uintptr_t addr, const Instruction& instr) 468 if (!CanDoImplicitNullCheckOn(addr)) { 491 if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { 515 if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { 539 if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { 560 return (addr == 0u) || (addr == mirror::Array::LengthOffset().Uint32Value()); 573 void ThrowNullPointerExceptionFromDexPC(bool check_address, uintptr_t addr) { argument [all...] |
H A D | quick_exception_handler.cc | 444 const uint8_t* addr = reinterpret_cast<const uint8_t*>(GetCurrentQuickFrame()) + offset; local 445 value = *reinterpret_cast<const uint32_t*>(addr); 667 LOG(INFO) << "|> addr = " << std::hex << reinterpret_cast<uintptr_t>(GetCurrentQuickFrame());
|
H A D | art_method.h | 815 const auto addr = reinterpret_cast<uintptr_t>(this) + offset.Uint32Value(); local 817 return reinterpret_cast<T>(*reinterpret_cast<const uint32_t*>(addr)); 819 auto v = *reinterpret_cast<const uint64_t*>(addr); 827 const auto addr = reinterpret_cast<uintptr_t>(this) + offset.Uint32Value(); local 830 *reinterpret_cast<uint32_t*>(addr) = dchecked_integral_cast<uint32_t>(ptr); 832 *reinterpret_cast<uint64_t*>(addr) = reinterpret_cast<uintptr_t>(new_value);
|
H A D | mem_map.cc | 391 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) { argument 396 return new MemMap(name, addr, byte_count, addr, page_aligned_byte_count, 0, true /* reuse */); 995 void* MemMap::MapInternal(void* addr, argument 1007 (reinterpret_cast<uintptr_t>(addr) >> 32) != 0 || 1009 ((reinterpret_cast<uintptr_t>(addr) + length) >> 32) != 0)) { 1010 LOG(ERROR) << "The requested address space (" << addr << ", " 1011 << reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(addr) + length) 1025 if (low_4gb && addr == nullptr) { 1051 actual = mmap(addr, lengt [all...] |
/art/compiler/linker/arm/ |
H A D | relative_patcher_thumb2.cc | 446 uint8_t* addr = &(*code)[offset]; local 447 addr[0] = (value >> 16) & 0xff; 448 addr[1] = (value >> 24) & 0xff; 449 addr[2] = (value >> 0) & 0xff; 450 addr[3] = (value >> 8) & 0xff; 456 const uint8_t* addr = &code[offset]; local 458 (static_cast<uint32_t>(addr[0]) << 16) + 459 (static_cast<uint32_t>(addr[1]) << 24) + 460 (static_cast<uint32_t>(addr[2]) << 0)+ 461 (static_cast<uint32_t>(addr[ 473 const uint8_t* addr = &code[offset]; local [all...] |
/art/compiler/utils/x86/ |
H A D | assembler_x86.h | 193 static Address Absolute(uintptr_t addr) { argument 196 result.SetDisp32(addr); 200 static Address Absolute(ThreadOffset32 addr) { argument 201 return Absolute(addr.Int32Value()); 239 std::ostream& operator<<(std::ostream& os, const Address& addr); 400 void addps(XmmRegister dst, XmmRegister src); // no addr variant (for now) 427 void addpd(XmmRegister dst, XmmRegister src); // no addr variant (for now) 438 void paddb(XmmRegister dst, XmmRegister src); // no addr variant (for now) 486 void pxor(XmmRegister dst, XmmRegister src); // no addr variant (for now) 492 void pand(XmmRegister dst, XmmRegister src); // no addr varian [all...] |
/art/compiler/linker/arm64/ |
H A D | relative_patcher_arm64.cc | 659 uint8_t* addr = &(*code)[offset]; local 660 addr[0] = (value >> 0) & 0xff; 661 addr[1] = (value >> 8) & 0xff; 662 addr[2] = (value >> 16) & 0xff; 663 addr[3] = (value >> 24) & 0xff; 669 const uint8_t* addr = &code[offset]; local 671 (static_cast<uint32_t>(addr[0]) << 0) + 672 (static_cast<uint32_t>(addr[1]) << 8) + 673 (static_cast<uint32_t>(addr[2]) << 16)+ 674 (static_cast<uint32_t>(addr[ [all...] |
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64.h | 251 static Address Absolute(uintptr_t addr, bool no_rip = false) { argument 256 result.SetDisp32(addr); 261 result.SetDisp32(addr); 278 static Address Absolute(ThreadOffset64 addr, bool no_rip = false) { argument 279 return Absolute(addr.Int32Value(), no_rip); 286 std::ostream& operator<<(std::ostream& os, const Address& addr); 439 void addps(XmmRegister dst, XmmRegister src); // no addr variant (for now) 463 void addpd(XmmRegister dst, XmmRegister src); // no addr variant (for now) 474 void paddb(XmmRegister dst, XmmRegister src); // no addr variant (for now) 530 void pxor(XmmRegister dst, XmmRegister src); // no addr varian [all...] |
/art/compiler/utils/ |
H A D | assembler_test.h | 1134 for (auto addr : addresses) { 1136 (assembler_.get()->*f)(addr); 1140 std::string addr_string = (this->*GetAName)(addr); 1165 for (auto addr : addresses) { 1169 (assembler_.get()->*f)(addr, new_imm); 1173 std::string addr_string = (this->*GetAName)(addr); 1208 for (auto addr : addresses) { 1210 (assembler_.get()->*f)(*reg, addr); 1220 std::string addr_string = (this->*GetAName)(addr); 1246 for (auto addr 1490 GetAddrName(const Addr& addr) argument 1492 saddr << addr; local [all...] |
/art/dt_fd_forward/ |
H A D | dt_fd_forward.cc | 653 static jdwpTransportError ParseAddress(const std::string& addr, argument 655 if (!android::base::ParseInt(addr.c_str(), listen_sock) || *listen_sock < 0) { 656 LOG(ERROR) << "address format is <fd_num> not " << addr;
|
/art/openjdkjvm/ |
H A D | OpenjdkJvm.cc | 255 JNIEXPORT jint JVM_GetSockName(jint fd, struct sockaddr* addr, int* addrlen) { argument 257 int cc = TEMP_FAILURE_RETRY(getsockname(fd, addr, &len)); 283 JNIEXPORT jint JVM_Connect(jint fd, struct sockaddr* addr, jint addrlen) { argument 284 return TEMP_FAILURE_RETRY(connect(fd, addr, addrlen));
|