Home
last modified time | relevance | path

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

12345

/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, page_size, PROT_READ), 0) << strerror(errno); in BasicTest()
90 CHECK_EQ(mprotect(addr, page_size, PROT_READ | PROT_WRITE), 0) << strerror(errno); in BasicTest()
95 addr2 = reinterpret_cast<int32_t*>(mremap(addr, 0, page_size, 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 …]
Dgc_visited_arena_pool.h40 explicit TrackedArena(uint8_t* addr) : pre_zygote_fork_(false) { memory_ = addr; } in TrackedArena() argument
90 uint8_t* GetFirstObject(uint8_t* addr) const REQUIRES_SHARED(Locks::mutator_lock_) { in GetFirstObject() argument
91 DCHECK_LE(Begin(), addr); in GetFirstObject()
92 DCHECK_GT(End(), addr); in GetFirstObject()
94 return first_obj_array_[DivideByPageSize(addr - Begin())]; in GetFirstObject()
164 EXPORT void FreeSingleObjArena(uint8_t* addr) REQUIRES(!lock_);
226 Chunk(uint8_t* addr, size_t size) : addr_(addr), size_(size) {} in Chunk() argument
/art/runtime/gc/accounting/
Dbitmap.h156 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex() local
157 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); in AddrFromBitIndex()
158 return addr; in AddrFromBitIndex()
162 ALWAYS_INLINE uintptr_t BitIndexFromAddr(uintptr_t addr) const { in BitIndexFromAddr() argument
163 uintptr_t result = (addr - CoverBegin()) / kAlignment; in BitIndexFromAddr()
164 DCHECK(result < BitmapSize()) << CoverBegin() << " <= " << addr << " < " << CoverEnd(); in BitIndexFromAddr()
168 ALWAYS_INLINE bool HasAddress(const uintptr_t addr) const { in HasAddress() argument
173 bool ret = (addr - CoverBegin()) / kAlignment < BitmapSize(); in HasAddress()
175 DCHECK(CoverBegin() <= addr && addr < CoverEnd()) in HasAddress()
176 << CoverBegin() << " <= " << addr << " < " << CoverEnd(); in HasAddress()
[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.cc112 bool CardTable::AddrIsInCardTable(const void* addr) const { in AddrIsInCardTable()
113 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift)); in AddrIsInCardTable()
116 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { in CheckAddrIsInCardTable()
117 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable()
120 CHECK(AddrIsInCardTable(addr)) in CheckAddrIsInCardTable()
127 << " 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;
Dmod_union_table.cc582 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in Dump() local
583 addr += CardTable::kCardSize) { in Dump()
584 if (card_bitmap_->Test(reinterpret_cast<uintptr_t>(addr))) { in Dump()
585 os << reinterpret_cast<void*>(addr) << "-" in Dump()
586 << reinterpret_cast<void*>(addr + CardTable::kCardSize) << "\n"; in Dump()
594 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); in SetCards() local
595 addr += CardTable::kCardSize) { in SetCards()
596 card_bitmap_->Set(reinterpret_cast<uintptr_t>(addr)); in SetCards()
600 bool ModUnionTableCardCache::ContainsCardFor(uintptr_t addr) { in ContainsCardFor() argument
601 return card_bitmap_->Test(addr); in ContainsCardFor()
[all …]
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()
234 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Modify() local
235 DCHECK_GE(addr, heap_begin_); in Modify()
237 const uintptr_t offset = addr - heap_begin_; in Modify()
/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.h135 uint8_t* addr,
190 static MemMap MapPlaceholder(const char* name, uint8_t* addr, size_t byte_count);
229 static MemMap MapFileAtAddress(uint8_t* addr,
286 bool HasAddress(const void* addr) const { in HasAddress() argument
287 return Begin() <= addr && addr < End(); in HasAddress()
384 static void* MapInternal(void* addr,
/art/runtime/gc/
Dverification.cc33 std::string Verification::DumpRAMAroundAddress(uintptr_t addr, uintptr_t bytes) const { in DumpRAMAroundAddress() argument
34 uintptr_t* dump_start = reinterpret_cast<uintptr_t*>(addr - bytes); in DumpRAMAroundAddress()
35 uintptr_t* dump_end = reinterpret_cast<uintptr_t*>(addr + bytes); in DumpRAMAroundAddress()
54 if (p == reinterpret_cast<uintptr_t*>(addr)) { in DumpRAMAroundAddress()
63 std::string Verification::DumpObjectInfo(const void* addr, const char* tag) const { in DumpObjectInfo() argument
65 oss << tag << "=" << addr; in DumpObjectInfo()
66 if (IsValidHeapObjectAddress(addr)) { in DumpObjectInfo()
67 mirror::Object* obj = reinterpret_cast<mirror::Object*>(const_cast<void*>(addr)); in DumpObjectInfo()
78 space::Space* const space = heap_->FindSpaceFromAddress(addr); in DumpObjectInfo()
83 if (card_table->AddrIsInCardTable(addr)) { in DumpObjectInfo()
[all …]
Dverification.h67 bool IsValidHeapObjectAddress(const void* addr, space::Space** out_space = nullptr) const
76 bool IsAddressInHeapSpace(const void* addr, space::Space** out_space = nullptr) const
80 std::string DumpRAMAroundAddress(uintptr_t addr, uintptr_t bytes) const
/art/dex2oat/linker/riscv64/
Drelative_patcher_riscv64.cc130 uint8_t* addr = &(*code)[offset]; in SetInsn() local
131 addr[0] = (value >> 0) & 0xff; in SetInsn()
132 addr[1] = (value >> 8) & 0xff; in SetInsn()
133 addr[2] = (value >> 16) & 0xff; in SetInsn()
134 addr[3] = (value >> 24) & 0xff; in SetInsn()
140 const uint8_t* addr = &code[offset]; in GetInsn() local
142 (static_cast<uint32_t>(addr[0]) << 0) + in GetInsn()
143 (static_cast<uint32_t>(addr[1]) << 8) + in GetInsn()
144 (static_cast<uint32_t>(addr[2]) << 16)+ in GetInsn()
145 (static_cast<uint32_t>(addr[3]) << 24); in GetInsn()
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc164 uint8_t* addr = &(*code)[offset]; in SetInsn32() local
165 addr[0] = (value >> 16) & 0xff; in SetInsn32()
166 addr[1] = (value >> 24) & 0xff; in SetInsn32()
167 addr[2] = (value >> 0) & 0xff; in SetInsn32()
168 addr[3] = (value >> 8) & 0xff; in SetInsn32()
174 const uint8_t* addr = &code[offset]; in GetInsn32() local
176 (static_cast<uint32_t>(addr[0]) << 16) + in GetInsn32()
177 (static_cast<uint32_t>(addr[1]) << 24) + in GetInsn32()
178 (static_cast<uint32_t>(addr[2]) << 0)+ in GetInsn32()
179 (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.txt209 000534: b010 |0000: add-int/2addr v0, v1
210 000536: b110 |0001: sub-int/2addr v0, v1
211 000538: b210 |0002: mul-int/2addr v0, v1
212 00053a: b310 |0003: div-int/2addr v0, v1
213 00053c: b410 |0004: rem-int/2addr v0, v1
214 00053e: b510 |0005: and-int/2addr v0, v1
215 000540: b610 |0006: or-int/2addr v0, v1
216 000542: b710 |0007: xor-int/2addr v0, v1
217 000544: b810 |0008: shl-int/2addr v0, v1
218 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/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

12345