/art/runtime/ |
H A D | atomic.cc | 26 Mutex* QuasiAtomic::GetSwapMutex(const volatile int64_t* addr) { argument 27 return (*gSwapMutexes)[(reinterpret_cast<uintptr_t>(addr) >> 3U) % kSwapMutexCount]; 46 int64_t QuasiAtomic::SwapMutexRead64(volatile const int64_t* addr) { argument 47 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); 48 return *addr; 51 void QuasiAtomic::SwapMutexWrite64(volatile int64_t* addr, int64_t value) { argument 52 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); 53 *addr = value; 57 bool QuasiAtomic::SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { argument 58 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); [all...] |
H A D | atomic.h | 58 // Reads the 64-bit value at "addr" without tearing. 59 static int64_t Read64(volatile const int64_t* addr) { argument 63 value = *addr; 71 : "m" (*addr)); 77 : "Q" (*addr)); 83 : "m" (*addr)); 90 return SwapMutexRead64(addr); 94 // Writes to the 64-bit value at "addr" without tearing. 95 static void Write64(volatile int64_t* addr, int64_t value) { argument 98 *addr 141 Cas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) argument [all...] |
H A 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 { 167 return Begin() <= addr && addr < End(); 212 static void* MapInternal(void* addr,
|
H A D | mem_map.cc | 365 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) { argument 370 return new MemMap(name, addr, byte_count, addr, page_aligned_byte_count, 0, true /* reuse */); 770 void* MemMap::MapInternal(void* addr, argument 782 (reinterpret_cast<uintptr_t>(addr) >> 32) != 0 || 784 ((reinterpret_cast<uintptr_t>(addr) + length) >> 32) != 0)) { 785 LOG(ERROR) << "The requested address space (" << addr << ", " 786 << reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(addr) + length) 803 if (low_4gb && addr == nullptr) { 882 actual = mmap(addr, lengt [all...] |
H A D | dex_file.h | 721 const uint8_t* addr = begin_ + class_def.interfaces_off_; local 722 return reinterpret_cast<const TypeList*>(addr); 741 const uint8_t* addr = begin_ + code_off; local 742 return reinterpret_cast<const CodeItem*>(addr); 794 const uint8_t* addr = begin_ + proto_id.parameters_off_; local 795 return reinterpret_cast<const TypeList*>(addr); 909 const uint8_t* addr = reinterpret_cast<const uint8_t*>(&anno_dir[1]); local 910 addr += anno_dir->fields_size_ * sizeof(FieldAnnotationsItem); 911 return reinterpret_cast<const MethodAnnotationsItem*>(addr); 921 const uint8_t* addr local [all...] |
H A D | art_method.h | 757 const auto addr = reinterpret_cast<uintptr_t>(this) + offset.Uint32Value(); local 759 return reinterpret_cast<T>(*reinterpret_cast<const uint32_t*>(addr)); 761 auto v = *reinterpret_cast<const uint64_t*>(addr); 770 const auto addr = reinterpret_cast<uintptr_t>(this) + offset.Uint32Value(); local 773 *reinterpret_cast<uint32_t*>(addr) = dchecked_integral_cast<uint32_t>(ptr); 775 *reinterpret_cast<uint64_t*>(addr) = reinterpret_cast<uintptr_t>(new_value);
|
/art/runtime/base/ |
H A D | hex_dump.cc | 36 const unsigned char* addr = reinterpret_cast<const unsigned char*>(address_); local 47 offset = reinterpret_cast<size_t>(addr); 83 *hex++ = gHexDigit[*addr >> 4]; 84 *hex++ = gHexDigit[*addr & 0x0f]; 86 if (*addr >= 0x20 && *addr < 0x7f /*isprint(*addr)*/) { 87 *asc++ = *addr; 91 addr++;
|
H A D | scoped_arena_allocator.h | 138 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc); local 139 ScopedArenaAllocator* allocator = new(addr) ScopedArenaAllocator(arena_stack); 140 allocator->mark_ptr_ = reinterpret_cast<uint8_t*>(addr);
|
/art/test/523-checker-can-throw-regression/smali/ |
H A 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/runtime/gc/accounting/ |
H A D | bitmap.h | 148 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; local 149 DCHECK_EQ(BitIndexFromAddr(addr), bit_index); 150 return addr; 154 ALWAYS_INLINE uintptr_t BitIndexFromAddr(uintptr_t addr) const { 155 DCHECK(HasAddress(addr)) << CoverBegin() << " <= " << addr << " < " << CoverEnd(); 156 return (addr - CoverBegin()) / kAlignment; 159 ALWAYS_INLINE bool HasAddress(const uintptr_t addr) const { 160 return cover_begin_ <= addr && addr < cover_end 163 Set(uintptr_t addr) argument 167 Clear(size_t addr) argument 176 AtomicTestAndSet(size_t addr) argument [all...] |
H A D | card_table_test.cc | 64 uint8_t PseudoRandomCard(const uint8_t* addr) const { 65 size_t offset = RoundDown(addr - heap_begin_, CardTable::kCardSize); 69 for (const uint8_t* addr = HeapBegin(); addr != HeapLimit(); addr += CardTable::kCardSize) { 70 EXPECT_TRUE(card_table_->AddrIsInCardTable(addr)); 71 uint8_t* card = card_table_->CardFromAddr(addr); 72 *card = PseudoRandomCard(addr); 83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimi [all...] |
H A D | card_table.h | 59 ALWAYS_INLINE void MarkCard(const void *addr) { argument 60 *CardFromAddr(addr) = kCardDirty; 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;
|
H A D | card_table.cc | 132 bool CardTable::AddrIsInCardTable(const void* addr) const { 133 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift)); 136 void CardTable::CheckAddrIsInCardTable(const uint8_t* addr) const { 137 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); 140 CHECK(AddrIsInCardTable(addr)) 147 << " addr: " << reinterpret_cast<const void*>(addr);
|
H A D | space_bitmap-inl.h | 34 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 35 DCHECK_GE(addr, heap_begin_); 36 const uintptr_t offset = addr - heap_begin_; 56 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 59 DCHECK_GE(addr, heap_begin_); 60 const uintptr_t offset = addr - heap_begin_; 160 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local 161 DCHECK_GE(addr, heap_begin_); 163 const uintptr_t offset = addr - heap_begin_;
|
H A D | mod_union_table.cc | 508 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); 509 addr += CardTable::kCardSize) { 510 if (card_bitmap_->Test(reinterpret_cast<uintptr_t>(addr))) { 511 os << reinterpret_cast<void*>(addr) << "-" 512 << reinterpret_cast<void*>(addr + CardTable::kCardSize) << "\n"; 520 for (uint8_t* addr = space_->Begin(); addr < AlignUp(space_->End(), CardTable::kCardSize); 521 addr += CardTable::kCardSize) { 522 card_bitmap_->Set(reinterpret_cast<uintptr_t>(addr)); 526 ContainsCardFor(uintptr_t addr) argument 537 ContainsCardFor(uintptr_t addr) argument [all...] |
H A 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;
|
H A D | atomic_stack.h | 245 uint8_t* addr = mem_map_->Begin(); local 246 CHECK(addr != nullptr); 248 begin_ = reinterpret_cast<StackReference<T>*>(addr);
|
H A D | card_table-inl.h | 219 inline uint8_t* CardTable::CardFromAddr(const void *addr) const { 220 uint8_t *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); 222 DCHECK(IsValidCard(card_addr)) << "addr: " << addr
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | EncodedTypeAddrPair.java | 23 public int addr; field in class:EncodedTypeAddrPair 28 addr = file.readUleb128(); 34 file.writeUleb128(addr);
|
/art/runtime/jdwp/ |
H A D | jdwp_socket.cc | 140 } addr; local 141 addr.addrInet.sin_family = AF_INET; 142 addr.addrInet.sin_port = htons(port); 143 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); 145 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { 215 } addr; local 225 addrlen = sizeof(addr); 227 sock = accept(listenSock, &addr.addrPlain, &addrlen); 242 remote_addr_ = addr 267 } addr; local 455 } addr; local [all...] |
/art/compiler/linker/arm/ |
H A D | relative_patcher_thumb2.cc | 99 uint8_t* addr = &(*code)[offset]; local 100 addr[0] = (value >> 16) & 0xff; 101 addr[1] = (value >> 24) & 0xff; 102 addr[2] = (value >> 0) & 0xff; 103 addr[3] = (value >> 8) & 0xff; 109 const uint8_t* addr = &code[offset]; local 111 (static_cast<uint32_t>(addr[0]) << 16) + 112 (static_cast<uint32_t>(addr[1]) << 24) + 113 (static_cast<uint32_t>(addr[2]) << 0)+ 114 (static_cast<uint32_t>(addr[ [all...] |
/art/compiler/ |
H A 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/compiler/linker/arm64/ |
H A D | relative_patcher_arm64.cc | 331 uint8_t* addr = &(*code)[offset]; local 332 addr[0] = (value >> 0) & 0xff; 333 addr[1] = (value >> 8) & 0xff; 334 addr[2] = (value >> 16) & 0xff; 335 addr[3] = (value >> 24) & 0xff; 341 const uint8_t* addr = &code[offset]; local 343 (static_cast<uint32_t>(addr[0]) << 0) + 344 (static_cast<uint32_t>(addr[1]) << 8) + 345 (static_cast<uint32_t>(addr[2]) << 16)+ 346 (static_cast<uint32_t>(addr[ [all...] |
/art/tools/ahat/src/ |
H A D | Main.java | 74 InetSocketAddress addr = new InetSocketAddress(loopback, port); 75 HttpServer server = HttpServer.create(addr, 0);
|
/art/runtime/gc/space/ |
H A D | region_space.cc | 295 for (uint8_t* addr = begin_addr; addr < end_addr; addr += kRegionSize) { 296 Region* reg = RefToRegionLocked(reinterpret_cast<mirror::Object*>(addr)); 297 if (addr == begin_addr) {
|