/art/runtime/ |
D | atomic.cc | 26 Mutex* QuasiAtomic::GetSwapMutex(const volatile int64_t* addr) { in GetSwapMutex() argument 27 return (*gSwapMutexes)[(reinterpret_cast<uintptr_t>(addr) >> 3U) % kSwapMutexCount]; in GetSwapMutex() 46 int64_t QuasiAtomic::SwapMutexRead64(volatile const int64_t* addr) { in SwapMutexRead64() argument 47 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexRead64() 48 return *addr; in SwapMutexRead64() 51 void QuasiAtomic::SwapMutexWrite64(volatile int64_t* addr, int64_t value) { in SwapMutexWrite64() argument 52 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexWrite64() 53 *addr = value; in SwapMutexWrite64() 57 bool QuasiAtomic::SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { in SwapMutexCas64() argument 58 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexCas64() [all …]
|
D | atomic.h | 59 static int64_t Read64(volatile const int64_t* addr) { in Read64() argument 63 value = *addr; in Read64() 71 : "m" (*addr)); in Read64() 77 : "Q" (*addr)); in Read64() 83 : "m" (*addr)); in Read64() 90 return SwapMutexRead64(addr); in Read64() 95 static void Write64(volatile int64_t* addr, int64_t value) { in Write64() argument 98 *addr = value; in Write64() 105 : "=m"(*addr) in Write64() 115 : "=&r" (prev), "=&r" (status), "+Q"(*addr) in Write64() [all …]
|
D | mem_map.h | 63 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot, 83 static MemMap* MapFileAtAddress(byte* addr, size_t byte_count, int prot, int flags, int fd, 126 bool HasAddress(const void* addr) const { in HasAddress() argument 127 return Begin() <= addr && addr < End(); in HasAddress()
|
D | stack.cc | 244 uint32_t* addr = GetVRegAddr(cur_quick_frame_, code_item, frame_info.CoreSpillMask(), in GetVRegPair() local 246 *val = *reinterpret_cast<uint64_t*>(addr); in GetVRegPair() 301 uint32_t* addr = GetVRegAddr(cur_quick_frame_, code_item, frame_info.CoreSpillMask(), in SetVReg() local 303 *addr = new_value; in SetVReg() 363 uint32_t* addr = GetVRegAddr(cur_quick_frame_, code_item, frame_info.CoreSpillMask(), in SetVRegPair() local 365 *reinterpret_cast<uint64_t*>(addr) = new_value; in SetVRegPair()
|
D | dex_file.h | 665 const byte* addr = begin_ + class_def.interfaces_off_; in GetInterfacesList() local 666 return reinterpret_cast<const TypeList*>(addr); in GetInterfacesList() 684 const byte* addr = begin_ + code_off; in GetCodeItem() local 685 return reinterpret_cast<const CodeItem*>(addr); in GetCodeItem() 737 const byte* addr = begin_ + proto_id.parameters_off_; in GetProtoParameters() local 738 return reinterpret_cast<const TypeList*>(addr); in GetProtoParameters()
|
D | dex_file_verifier.cc | 428 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets() local 429 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets() 430 ErrorStringPrintf("Invalid handler addr: %x", addr); in CheckAndGetHandlerOffsets() 436 uint32_t addr = DecodeUnsignedLeb128(&ptr_); in CheckAndGetHandlerOffsets() local 437 if (UNLIKELY(addr >= code_item->insns_size_in_code_units_)) { in CheckAndGetHandlerOffsets() 438 ErrorStringPrintf("Invalid handler catch_all_addr: %x", addr); in CheckAndGetHandlerOffsets()
|
/art/runtime/jdwp/ |
D | jdwp_socket.cc | 138 } addr; in SocketStartup() local 139 addr.addrInet.sin_family = AF_INET; in SocketStartup() 140 addr.addrInet.sin_port = htons(port); in SocketStartup() 141 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); in SocketStartup() 143 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { in SocketStartup() 213 } addr; in Accept() local 223 addrlen = sizeof(addr); in Accept() 225 sock = accept(listenSock, &addr.addrPlain, &addrlen); in Accept() 240 remote_addr_ = addr.addrInet.sin_addr; in Accept() 241 remote_port_ = ntohs(addr.addrInet.sin_port); in Accept() [all …]
|
/art/runtime/gc/accounting/ |
D | card_table_test.cc | 61 byte PRandCard(const byte* addr) const { in PRandCard() 62 size_t offset = RoundDown(addr - heap_begin_, kCardSize); in PRandCard() 66 for (const byte* addr = HeapBegin(); addr != HeapLimit(); addr += kCardSize) { in FillRandom() local 67 EXPECT_TRUE(card_table_->AddrIsInCardTable(addr)); in FillRandom() 68 byte* card = card_table_->CardFromAddr(addr); in FillRandom() 69 *card = PRandCard(addr); in FillRandom() 80 for (const byte* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) { in TEST_F() local 81 auto obj = reinterpret_cast<const mirror::Object*>(addr); in TEST_F() 84 card_table_->MarkCard(addr); in TEST_F() 87 byte* card_addr = card_table_->CardFromAddr(addr); in TEST_F()
|
D | card_table.cc | 105 bool CardTable::AddrIsInCardTable(const void* addr) const { in AddrIsInCardTable() 106 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift)); in AddrIsInCardTable() 109 void CardTable::CheckAddrIsInCardTable(const byte* addr) const { in CheckAddrIsInCardTable() 110 byte* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() 113 CHECK(AddrIsInCardTable(addr)) in CheckAddrIsInCardTable() 120 << " addr: " << reinterpret_cast<const void*>(addr); in CheckAddrIsInCardTable()
|
D | space_bitmap-inl.h | 34 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in AtomicTestAndSet() local 35 DCHECK_GE(addr, heap_begin_); in AtomicTestAndSet() 36 const uintptr_t offset = addr - heap_begin_; in AtomicTestAndSet() 56 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Test() local 59 DCHECK_GE(addr, heap_begin_); in Test() 60 const uintptr_t offset = addr - heap_begin_; in Test() 160 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Modify() local 161 DCHECK_GE(addr, heap_begin_); in Modify() 162 const uintptr_t offset = addr - heap_begin_; in Modify()
|
D | card_table.h | 57 ALWAYS_INLINE void MarkCard(const void *addr) { in MarkCard() argument 58 *CardFromAddr(addr) = kCardDirty; in MarkCard() 112 void CheckAddrIsInCardTable(const byte* addr) const; 124 byte* CardFromAddr(const void *addr) const ALWAYS_INLINE; 126 bool AddrIsInCardTable(const void* addr) const;
|
D | atomic_stack.h | 216 byte* addr = mem_map_->Begin(); in Init() local 217 CHECK(addr != NULL); in Init() 219 begin_ = reinterpret_cast<T*>(addr); in Init()
|
D | card_table-inl.h | 209 inline byte* CardTable::CardFromAddr(const void *addr) const { in CardFromAddr() argument 210 byte *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr() 212 DCHECK(IsValidCard(card_addr)) << "addr: " << addr in CardFromAddr()
|
D | space_bitmap.h | 186 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in GetObjectWordAddress() local 187 const uintptr_t offset = addr - heap_begin_; in GetObjectWordAddress()
|
/art/runtime/base/ |
D | hex_dump.cc | 36 const unsigned char* addr = reinterpret_cast<const unsigned char*>(address_); in Dump() local 47 offset = reinterpret_cast<size_t>(addr); in Dump() 83 *hex++ = gHexDigit[*addr >> 4]; in Dump() 84 *hex++ = gHexDigit[*addr & 0x0f]; in Dump() 86 if (*addr >= 0x20 && *addr < 0x7f /*isprint(*addr)*/) { in Dump() 87 *asc++ = *addr; in Dump() 91 addr++; in Dump()
|
/art/compiler/ |
D | elf_writer_test.cc | 36 void* addr = reinterpret_cast<void*>(ef->FindSymbolAddress(SHT_DYNSYM, \ 39 EXPECT_NE(nullptr, addr); \ 40 EXPECT_LT(static_cast<uintptr_t>(ART_BASE_ADDRESS), reinterpret_cast<uintptr_t>(addr)); \ 42 expected_value = addr; \ 44 EXPECT_EQ(expected_value, addr); \
|
D | elf_writer_mclinker.cc | 408 uint32_t* addr = reinterpret_cast<uint32_t*>(elf_file.Begin() + oatdata_offset); in FixupCompiledCodeOffset() local 409 *addr = compiled_code_offset; in FixupCompiledCodeOffset()
|
D | elf_writer_quick.h | 162 Elf32_Addr addr,
|
/art/compiler/utils/ |
D | scoped_arena_allocator.h | 107 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc); in Create() local 108 ScopedArenaAllocator* allocator = new(addr) ScopedArenaAllocator(arena_stack); in Create() 109 allocator->mark_ptr_ = reinterpret_cast<uint8_t*>(addr); in Create()
|
/art/runtime/gc/allocator/ |
D | rosalloc.h | 356 size_t ToPageMapIndex(const void* addr) const { in ToPageMapIndex() argument 357 DCHECK(base_ <= addr && addr < base_ + capacity_); in ToPageMapIndex() 358 size_t byte_offset = reinterpret_cast<const byte*>(addr) - base_; in ToPageMapIndex() 363 size_t RoundDownToPageMapIndex(void* addr) const { in RoundDownToPageMapIndex() argument 364 DCHECK(base_ <= addr && addr < reinterpret_cast<byte*>(base_) + capacity_); in RoundDownToPageMapIndex() 365 return (reinterpret_cast<uintptr_t>(addr) - reinterpret_cast<uintptr_t>(base_)) / kPageSize; in RoundDownToPageMapIndex()
|
/art/compiler/utils/arm/ |
D | assembler_arm32.cc | 550 const Address& addr = static_cast<const Address&>(ad); in EmitMemOp() local 576 addr.encodingArm(); in EmitMemOp() 588 const Address& addr = static_cast<const Address&>(ad); in EmitMemOpAddressMode3() local 593 addr.encoding3(); in EmitMemOpAddressMode3() 877 const Address& addr = static_cast<const Address&>(ad); in vldrs() local 884 B11 | B9 | addr.vencoding(); in vldrs() 890 const Address& addr = static_cast<const Address&>(ad); in vstrs() local 891 CHECK_NE(static_cast<Register>(addr.encodingArm() & (0xf << kRnShift)), PC); in vstrs() 898 B11 | B9 | addr.vencoding(); in vstrs() 904 const Address& addr = static_cast<const Address&>(ad); in vldrd() local [all …]
|
D | assembler_thumb2.cc | 1762 const Address& addr = static_cast<const Address&>(ad); in vldrs() local 1769 B11 | B9 | addr.vencoding(); in vldrs() 1775 const Address& addr = static_cast<const Address&>(ad); in vstrs() local 1776 CHECK_NE(static_cast<Register>(addr.encodingArm() & (0xf << kRnShift)), PC); in vstrs() 1783 B11 | B9 | addr.vencoding(); in vstrs() 1789 const Address& addr = static_cast<const Address&>(ad); in vldrd() local 1796 B11 | B9 | B8 | addr.vencoding(); in vldrd() 1802 const Address& addr = static_cast<const Address&>(ad); in vstrd() local 1803 CHECK_NE(static_cast<Register>(addr.encodingArm() & (0xf << kRnShift)), PC); in vstrd() 1810 B11 | B9 | B8 | addr.vencoding(); in vstrd()
|
/art/compiler/utils/x86_64/ |
D | assembler_x86_64.h | 229 static Address Absolute(uword addr, bool no_rip = false) { 234 result.SetDisp32(addr); 237 result.SetDisp32(addr); 243 static Address Absolute(ThreadOffset<8> addr, bool no_rip = false) { 244 return Absolute(addr.Int32Value(), no_rip);
|
/art/runtime/mirror/ |
D | object-inl.h | 518 const int64_t* addr = reinterpret_cast<const int64_t*>(raw_addr); in GetField64() local 520 return reinterpret_cast<const Atomic<int64_t>*>(addr)->LoadSequentiallyConsistent(); in GetField64() 522 return reinterpret_cast<const Atomic<int64_t>*>(addr)->LoadJavaData(); in GetField64() 546 int64_t* addr = reinterpret_cast<int64_t*>(raw_addr); in SetField64() local 548 reinterpret_cast<Atomic<int64_t>*>(addr)->StoreSequentiallyConsistent(new_value); in SetField64() 550 reinterpret_cast<Atomic<int64_t>*>(addr)->StoreJavaData(new_value); in SetField64()
|
/art/compiler/utils/x86/ |
D | assembler_x86.h | 194 static Address Absolute(uword addr) { in Absolute() argument 197 result.SetDisp32(addr); in Absolute() 201 static Address Absolute(ThreadOffset<4> addr) { in Absolute() argument 202 return Absolute(addr.Int32Value()); in Absolute()
|