/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 | 65 uint8_t* addr, 77 static MemMap* MapDummy(const char* name, uint8_t* addr, size_t byte_count); 111 static MemMap* MapFileAtAddress(uint8_t* addr, 166 bool HasAddress(const void* addr) const { in HasAddress() argument 167 return Begin() <= addr && addr < End(); in HasAddress() 212 static void* MapInternal(void* addr,
|
/art/runtime/gc/accounting/ |
D | bitmap.h | 148 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex() local 149 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); in AddrFromBitIndex() 150 return addr; in AddrFromBitIndex() 154 ALWAYS_INLINE uintptr_t BitIndexFromAddr(uintptr_t addr) const { in BitIndexFromAddr() argument 155 DCHECK(HasAddress(addr)) << CoverBegin() << " <= " << addr << " < " << CoverEnd(); in BitIndexFromAddr() 156 return (addr - CoverBegin()) / kAlignment; in BitIndexFromAddr() 159 ALWAYS_INLINE bool HasAddress(const uintptr_t addr) const { in HasAddress() argument 160 return cover_begin_ <= addr && addr < cover_end_; in HasAddress() 163 ALWAYS_INLINE bool Set(uintptr_t addr) { in Set() argument 164 return SetBit(BitIndexFromAddr(addr)); in Set() [all …]
|
D | card_table_test.cc | 64 uint8_t PseudoRandomCard(const uint8_t* addr) const { in PseudoRandomCard() 65 size_t offset = RoundDown(addr - heap_begin_, CardTable::kCardSize); in PseudoRandomCard() 69 for (const uint8_t* addr = HeapBegin(); addr != HeapLimit(); addr += CardTable::kCardSize) { in FillRandom() local 70 EXPECT_TRUE(card_table_->AddrIsInCardTable(addr)); in FillRandom() 71 uint8_t* card = card_table_->CardFromAddr(addr); in FillRandom() 72 *card = PseudoRandomCard(addr); in FillRandom() 83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) { in TEST_F() local 84 auto obj = reinterpret_cast<const mirror::Object*>(addr); in TEST_F() 87 card_table_->MarkCard(addr); in TEST_F() 90 uint8_t* card_addr = card_table_->CardFromAddr(addr); in TEST_F()
|
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() 163 const uintptr_t offset = addr - heap_begin_; in Modify()
|
D | card_table.cc | 132 bool CardTable::AddrIsInCardTable(const void* addr) const { in AddrIsInCardTable() 133 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift)); in AddrIsInCardTable() 136 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { in CheckAddrIsInCardTable() 137 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() 140 CHECK(AddrIsInCardTable(addr)) in CheckAddrIsInCardTable() 147 << " addr: " << reinterpret_cast<const void*>(addr); in CheckAddrIsInCardTable()
|
D | card_table.h | 59 ALWAYS_INLINE void MarkCard(const void *addr) { in MarkCard() argument 60 *CardFromAddr(addr) = kCardDirty; in MarkCard() 114 void CheckAddrIsInCardTable(const uint8_t* addr) const; 129 uint8_t* CardFromAddr(const void *addr) const ALWAYS_INLINE; 131 bool AddrIsInCardTable(const void* addr) const;
|
D | mod_union_table.cc | 508 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in Dump() local 509 addr += CardTable::kCardSize) { in Dump() 510 if (card_bitmap_->Test(reinterpret_cast<uintptr_t>(addr))) { in Dump() 511 os << reinterpret_cast<void*>(addr) << "-" in Dump() 512 << reinterpret_cast<void*>(addr + CardTable::kCardSize) << "\n"; in Dump() 520 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in SetCards() local 521 addr += CardTable::kCardSize) { in SetCards() 522 card_bitmap_->Set(reinterpret_cast<uintptr_t>(addr)); in SetCards() 526 bool ModUnionTableCardCache::ContainsCardFor(uintptr_t addr) { in ContainsCardFor() argument 527 return card_bitmap_->Test(addr); in ContainsCardFor() [all …]
|
D | mod_union_table.h | 79 virtual bool ContainsCardFor(uintptr_t addr) = 0; 127 virtual bool ContainsCardFor(uintptr_t addr) OVERRIDE; 164 virtual bool ContainsCardFor(uintptr_t addr) OVERRIDE;
|
/art/runtime/jdwp/ |
D | jdwp_socket.cc | 140 } addr; in SocketStartup() local 141 addr.addrInet.sin_family = AF_INET; in SocketStartup() 142 addr.addrInet.sin_port = htons(port); in SocketStartup() 143 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); in SocketStartup() 145 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { in SocketStartup() 215 } addr; in Accept() local 225 addrlen = sizeof(addr); in Accept() 227 sock = accept(listenSock, &addr.addrPlain, &addrlen); in Accept() 242 remote_addr_ = addr.addrInet.sin_addr; in Accept() 243 remote_port_ = ntohs(addr.addrInet.sin_port); in Accept() [all …]
|
/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()
|
D | scoped_arena_allocator.h | 138 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc); in Create() local 139 ScopedArenaAllocator* allocator = new(addr) ScopedArenaAllocator(arena_stack); in Create() 140 allocator->mark_ptr_ = reinterpret_cast<uint8_t*>(addr); in Create()
|
/art/compiler/linker/arm/ |
D | relative_patcher_thumb2.cc | 99 uint8_t* addr = &(*code)[offset]; in SetInsn32() local 100 addr[0] = (value >> 16) & 0xff; in SetInsn32() 101 addr[1] = (value >> 24) & 0xff; in SetInsn32() 102 addr[2] = (value >> 0) & 0xff; in SetInsn32() 103 addr[3] = (value >> 8) & 0xff; in SetInsn32() 109 const uint8_t* addr = &code[offset]; in GetInsn32() local 111 (static_cast<uint32_t>(addr[0]) << 16) + in GetInsn32() 112 (static_cast<uint32_t>(addr[1]) << 24) + in GetInsn32() 113 (static_cast<uint32_t>(addr[2]) << 0)+ in GetInsn32() 114 (static_cast<uint32_t>(addr[3]) << 8); in GetInsn32()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | EncodedTypeAddrPair.java | 23 public int addr; field in EncodedTypeAddrPair 28 addr = file.readUleb128(); in read() 34 file.writeUleb128(addr); in write()
|
/art/test/510-checker-try-catch/smali/ |
D | SsaBuilder.smali | 54 add-int/2addr p0, p1 57 div-int/2addr p0, p2 72 div-int/2addr p0, p1 79 div-int/2addr p0, p2 109 div-int/2addr p0, p1 112 div-int/2addr p0, p1 115 div-int/2addr p0, p1 156 add-int/2addr v1, v1 158 div-int/2addr p0, p1 166 add-int/2addr v0, v1 [all …]
|
D | RegisterAllocator.smali | 35 div-int/2addr p0, p1 39 div-int/2addr p0, p2 73 div-int/2addr p0, p1 77 div-int/2addr p0, p2
|
/art/test/800-smali/smali/ |
D | FloatIntConstPassing.smali | 8 add-int/2addr v0, p0 15 mul-float/2addr v0, p0 27 add-int/2addr v1, v2
|
/art/compiler/ |
D | elf_writer_test.cc | 41 void* addr = reinterpret_cast<void*>(ef->FindSymbolAddress(SHT_DYNSYM, \ 44 EXPECT_NE(nullptr, addr); \ 45 EXPECT_LT(static_cast<uintptr_t>(ART_BASE_ADDRESS), reinterpret_cast<uintptr_t>(addr)); \ 47 expected_value = addr; \ 49 EXPECT_EQ(expected_value, addr); \
|
/art/test/543-checker-dce-trycatch/smali/ |
D | TestCase.smali | 52 add-int/2addr p0, p1 55 div-int/2addr p0, p2 58 div-int/2addr p0, p3 96 div-int/2addr p0, p2 100 div-int/2addr p0, p3 106 add-int/2addr p0, p1 145 div-int/2addr p0, p2 152 div-int/2addr p0, p3 179 div-int/2addr p0, p1 184 div-int/2addr p0, p2 [all …]
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64.cc | 331 uint8_t* addr = &(*code)[offset]; in SetInsn() local 332 addr[0] = (value >> 0) & 0xff; in SetInsn() 333 addr[1] = (value >> 8) & 0xff; in SetInsn() 334 addr[2] = (value >> 16) & 0xff; in SetInsn() 335 addr[3] = (value >> 24) & 0xff; in SetInsn() 341 const uint8_t* addr = &code[offset]; in GetInsn() local 343 (static_cast<uint32_t>(addr[0]) << 0) + in GetInsn() 344 (static_cast<uint32_t>(addr[1]) << 8) + in GetInsn() 345 (static_cast<uint32_t>(addr[2]) << 16)+ in GetInsn() 346 (static_cast<uint32_t>(addr[3]) << 24); in GetInsn()
|
/art/test/523-checker-can-throw-regression/smali/ |
D | Test.smali | 34 div-int/2addr p0, p1 43 div-int/2addr p0, p1 46 div-int/2addr p0, p1 48 div-int/2addr p0, p2
|
/art/test/547-regression-trycatch-critical-edge/smali/ |
D | TestCase.smali | 32 sub-int/2addr v2, v1 40 sub-int/2addr v3, v1 43 add-int/2addr v0, v1 51 add-int/2addr v0, v4
|
/art/test/594-checker-irreducible-linorder/smali/ |
D | IrreducibleLoop.smali | 39 add-int/2addr p3, p3 49 mul-int/2addr p3, p3 103 mul-int/2addr p3, p3 107 add-int/2addr p3, v0 108 add-int/2addr v0, v1
|
/art/test/dexdump/ |
D | bytecodes.txt | 630 000cd6: b010 |0019: add-int/2addr v0, v1 639 000cf6: b010 |0029: add-int/2addr v0, v1 643 000d04: b010 |0030: add-int/2addr v0, v1 647 000d18: bb20 |003a: add-long/2addr v0, v2 651 000d26: bb20 |0041: add-long/2addr v0, v2 657 000d3e: c732 |004d: sub-float/2addr v2, v3 658 000d40: c621 |004e: add-float/2addr v1, v2 660 000d46: c8a2 |0051: mul-float/2addr v2, v10 662 000d4c: c932 |0054: div-float/2addr v2, v3 663 000d4e: c621 |0055: add-float/2addr v1, v2 [all …]
|