Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 95) sorted by relevance

1234

/art/runtime/base/
Dquasi_atomic.h60 static int64_t Read64(volatile const int64_t* addr) { in Read64() argument
64 value = *addr; in Read64()
72 : "m" (*addr)); in Read64()
78 : "Q" (*addr)); in Read64()
84 : "m" (*addr)); in Read64()
91 return SwapMutexRead64(addr); in Read64()
96 static void Write64(volatile int64_t* addr, int64_t value) { in Write64() argument
99 *addr = value; in Write64()
106 : "=m"(*addr) in Write64()
116 : "=&r" (prev), "=&r" (status), "+Q"(*addr) in Write64()
[all …]
Dquasi_atomic.cc27 Mutex* QuasiAtomic::GetSwapMutex(const volatile int64_t* addr) { in GetSwapMutex() argument
28 return (*gSwapMutexes)[(reinterpret_cast<uintptr_t>(addr) >> 3U) % kSwapMutexCount]; in GetSwapMutex()
47 int64_t QuasiAtomic::SwapMutexRead64(volatile const int64_t* addr) { in SwapMutexRead64() argument
48 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexRead64()
49 return *addr; in SwapMutexRead64()
52 void QuasiAtomic::SwapMutexWrite64(volatile int64_t* addr, int64_t value) { in SwapMutexWrite64() argument
53 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexWrite64()
54 *addr = value; in SwapMutexWrite64()
58 bool QuasiAtomic::SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { in SwapMutexCas64() argument
59 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexCas64()
[all …]
/art/runtime/gc/accounting/
Dbitmap.h146 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex() local
147 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); in AddrFromBitIndex()
148 return addr; in AddrFromBitIndex()
152 ALWAYS_INLINE uintptr_t BitIndexFromAddr(uintptr_t addr) const { in BitIndexFromAddr() argument
153 DCHECK(HasAddress(addr)) << CoverBegin() << " <= " << addr << " < " << CoverEnd(); in BitIndexFromAddr()
154 return (addr - CoverBegin()) / kAlignment; in BitIndexFromAddr()
157 ALWAYS_INLINE bool HasAddress(const uintptr_t addr) const { in HasAddress() argument
158 return cover_begin_ <= addr && addr < cover_end_; in HasAddress()
161 ALWAYS_INLINE bool Set(uintptr_t addr) { in Set() argument
162 return SetBit(BitIndexFromAddr(addr)); in Set()
[all …]
Dcard_table_test.cc64 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()
Dcard_table.cc117 bool CardTable::AddrIsInCardTable(const void* addr) const { in AddrIsInCardTable()
118 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift)); in AddrIsInCardTable()
121 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { in CheckAddrIsInCardTable()
122 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable()
125 CHECK(AddrIsInCardTable(addr)) in CheckAddrIsInCardTable()
132 << " addr: " << reinterpret_cast<const void*>(addr); in CheckAddrIsInCardTable()
Dspace_bitmap-inl.h35 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in AtomicTestAndSet() local
36 DCHECK_GE(addr, heap_begin_); in AtomicTestAndSet()
37 const uintptr_t offset = addr - heap_begin_; in AtomicTestAndSet()
57 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Test() local
60 DCHECK_GE(addr, heap_begin_); in Test()
61 const uintptr_t offset = addr - heap_begin_; in Test()
188 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Modify() local
189 DCHECK_GE(addr, heap_begin_); in Modify()
191 const uintptr_t offset = addr - heap_begin_; in Modify()
Dcard_table.h59 ALWAYS_INLINE void MarkCard(const void *addr) { in MarkCard() argument
60 *CardFromAddr(addr) = kCardDirty; in MarkCard()
129 void CheckAddrIsInCardTable(const uint8_t* addr) const;
141 uint8_t* CardFromAddr(const void *addr) const ALWAYS_INLINE;
143 bool AddrIsInCardTable(const void* addr) const;
Dmod_union_table.cc574 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in Dump() local
575 addr += CardTable::kCardSize) { in Dump()
576 if (card_bitmap_->Test(reinterpret_cast<uintptr_t>(addr))) { in Dump()
577 os << reinterpret_cast<void*>(addr) << "-" in Dump()
578 << reinterpret_cast<void*>(addr + CardTable::kCardSize) << "\n"; in Dump()
586 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in SetCards() local
587 addr += CardTable::kCardSize) { in SetCards()
588 card_bitmap_->Set(reinterpret_cast<uintptr_t>(addr)); in SetCards()
592 bool ModUnionTableCardCache::ContainsCardFor(uintptr_t addr) { in ContainsCardFor() argument
593 return card_bitmap_->Test(addr); in ContainsCardFor()
[all …]
/art/libartbase/base/
Dhex_dump.cc36 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()
Dmem_map_fuchsia.cc131 uintptr_t addr = reinterpret_cast<uintptr_t>(start); in TargetMUnmap() local
133 if (addr >= fuchsia_lowmem_base && addr < fuchsia_lowmem_base + fuchsia_lowmem_size) { in TargetMUnmap()
136 zx_status_t status = zx_vmar_unmap(alloc_vmar, addr, len); in TargetMUnmap()
Dmem_map.h133 uint8_t* addr,
175 static MemMap MapDummy(const char* name, uint8_t* addr, size_t byte_count);
214 static MemMap MapFileAtAddress(uint8_t* addr,
267 bool HasAddress(const void* addr) const { in HasAddress() argument
268 return Begin() <= addr && addr < End(); in HasAddress()
344 static void* MapInternal(void* addr,
/art/runtime/jdwp/
Djdwp_socket.cc142 } addr; in SocketStartup() local
143 addr.addrInet.sin_family = AF_INET; in SocketStartup()
144 addr.addrInet.sin_port = htons(port); in SocketStartup()
145 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); in SocketStartup()
147 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { in SocketStartup()
218 } addr; in Accept() local
228 addrlen = sizeof(addr); in Accept()
230 sock = accept(listenSock, &addr.addrPlain, &addrlen); in Accept()
245 remote_addr_ = addr.addrInet.sin_addr; in Accept()
246 remote_port_ = ntohs(addr.addrInet.sin_port); in Accept()
[all …]
/art/runtime/gc/
Dverification.cc31 std::string Verification::DumpRAMAroundAddress(uintptr_t addr, uintptr_t bytes) const { in DumpRAMAroundAddress() argument
32 const uintptr_t dump_start = addr - bytes; in DumpRAMAroundAddress()
33 const uintptr_t dump_end = addr + bytes; in DumpRAMAroundAddress()
40 if (p == addr) { in DumpRAMAroundAddress()
53 std::string Verification::DumpObjectInfo(const void* addr, const char* tag) const { in DumpObjectInfo() argument
55 oss << tag << "=" << addr; in DumpObjectInfo()
56 if (IsValidHeapObjectAddress(addr)) { in DumpObjectInfo()
57 mirror::Object* obj = reinterpret_cast<mirror::Object*>(const_cast<void*>(addr)); in DumpObjectInfo()
68 space::Space* const space = heap_->FindSpaceFromAddress(addr); in DumpObjectInfo()
73 if (card_table->AddrIsInCardTable(addr)) { in DumpObjectInfo()
[all …]
Dverification.h56 bool IsValidHeapObjectAddress(const void* addr, space::Space** out_space = nullptr) const
65 bool IsAddressInHeapSpace(const void* addr, space::Space** out_space = nullptr) const
69 std::string DumpRAMAroundAddress(uintptr_t addr, uintptr_t bytes) const
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc148 uint8_t* addr = &(*code)[offset]; in SetInsn32() local
149 addr[0] = (value >> 16) & 0xff; in SetInsn32()
150 addr[1] = (value >> 24) & 0xff; in SetInsn32()
151 addr[2] = (value >> 0) & 0xff; in SetInsn32()
152 addr[3] = (value >> 8) & 0xff; in SetInsn32()
158 const uint8_t* addr = &code[offset]; in GetInsn32() local
160 (static_cast<uint32_t>(addr[0]) << 16) + in GetInsn32()
161 (static_cast<uint32_t>(addr[1]) << 24) + in GetInsn32()
162 (static_cast<uint32_t>(addr[2]) << 0)+ in GetInsn32()
163 (static_cast<uint32_t>(addr[3]) << 8); in GetInsn32()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DEncodedTypeAddrPair.java23 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/
DSsaBuilder.smali54 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 …]
/art/test/800-smali/smali/
DFloatIntConstPassing.smali8 add-int/2addr v0, p0
15 mul-float/2addr v0, p0
27 add-int/2addr v1, v2
/art/test/543-checker-dce-trycatch/smali/
DTestCase.smali52 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/test/484-checker-register-hints/smali/
DSmali.smali45 add-int/2addr v6, v2
46 add-int/2addr v6, v5
64 add-int/2addr v7, v3
68 add-int/2addr v7, v3
72 add-int/2addr v7, v3
121 add-int/2addr v7, v4
125 add-int/2addr v7, v4
129 add-int/2addr v7, v4
139 add-int/2addr v4, v2
140 add-int/2addr v4, v3
/art/test/dexdump/
Dall.txt205 000534: b010 |0000: add-int/2addr v0, v1
206 000536: b110 |0001: sub-int/2addr v0, v1
207 000538: b210 |0002: mul-int/2addr v0, v1
208 00053a: b310 |0003: div-int/2addr v0, v1
209 00053c: b410 |0004: rem-int/2addr v0, v1
210 00053e: b510 |0005: and-int/2addr v0, v1
211 000540: b610 |0006: or-int/2addr v0, v1
212 000542: b710 |0007: xor-int/2addr v0, v1
213 000544: b810 |0008: shl-int/2addr v0, v1
214 000546: b910 |0009: shr-int/2addr v0, v1
[all …]
/art/test/523-checker-can-throw-regression/smali/
DTest.smali34 div-int/2addr p0, p1
43 div-int/2addr p0, p1
46 div-int/2addr p0, p1
48 div-int/2addr p0, p2
/art/runtime/interpreter/mterp/arm/
Dmain.S301 .macro GET_VREG_WIDE_BY_ADDR reg0, reg1, addr argument
302 ldmia \addr, {\reg0, \reg1}
304 .macro SET_VREG_WIDE_BY_ADDR reg0, reg1, addr argument
305 stmia \addr, {\reg0, \reg1}
307 .macro GET_VREG_FLOAT_BY_ADDR reg, addr argument
308 flds \reg, [\addr]
310 .macro SET_VREG_FLOAT_BY_ADDR reg, addr argument
311 fsts \reg, [\addr]
313 .macro GET_VREG_DOUBLE_BY_ADDR reg, addr argument
314 fldd \reg, [\addr]
[all …]
/art/dex2oat/linker/
Delf_writer_test.cc45 void* addr = reinterpret_cast<void*>((ef)->FindSymbolAddress(SHT_DYNSYM, \
48 EXPECT_NE(nullptr, addr); \
50 (expected_value) = addr; \
52 EXPECT_EQ(expected_value, addr); \
/art/test/547-regression-trycatch-critic-edge/smali/
DTestCase.smali32 sub-int/2addr v2, v1
40 sub-int/2addr v3, v1
43 add-int/2addr v0, v1
51 add-int/2addr v0, v4

1234