Home
last modified time | relevance | path

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

1234

/art/runtime/jit/
Djit_memory_region_test.cc66 int32_t* addr = reinterpret_cast<int32_t*>( in BasicTest() local
68 CHECK(addr != nullptr); in BasicTest()
69 CHECK_NE(addr, MAP_FAILED); in BasicTest()
72 addr[0] = 42; in BasicTest()
73 CHECK_EQ(addr[0], 42); in BasicTest()
80 addr[0] = 2; in BasicTest()
81 CHECK_EQ(addr[0], 2); in BasicTest()
89 CHECK_EQ(mprotect(addr, size, PROT_READ), 0) << strerror(errno); in BasicTest()
90 CHECK_EQ(mprotect(addr, size, PROT_READ | PROT_WRITE), 0) << strerror(errno); in BasicTest()
95 addr2 = reinterpret_cast<int32_t*>(mremap(addr, 0, kPageSize, MREMAP_MAYMOVE)); in BasicTest()
[all …]
/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()
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;
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()
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.h132 uint8_t* addr,
174 static MemMap MapPlaceholder(const char* name, uint8_t* addr, size_t byte_count);
213 static MemMap MapFileAtAddress(uint8_t* addr,
267 bool HasAddress(const void* addr) const { in HasAddress() argument
268 return Begin() <= addr && addr < End(); in HasAddress()
348 static void* MapInternal(void* addr,
/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.cc165 uint8_t* addr = &(*code)[offset]; in SetInsn32() local
166 addr[0] = (value >> 16) & 0xff; in SetInsn32()
167 addr[1] = (value >> 24) & 0xff; in SetInsn32()
168 addr[2] = (value >> 0) & 0xff; in SetInsn32()
169 addr[3] = (value >> 8) & 0xff; in SetInsn32()
175 const uint8_t* addr = &code[offset]; in GetInsn32() local
177 (static_cast<uint32_t>(addr[0]) << 16) + in GetInsn32()
178 (static_cast<uint32_t>(addr[1]) << 24) + in GetInsn32()
179 (static_cast<uint32_t>(addr[2]) << 0)+ in GetInsn32()
180 (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/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/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/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/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/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