Searched refs:addr (Results 1 - 21 of 21) sorted by relevance

/art/runtime/
H A Datomic.cc36 static Mutex& GetSwapMutex(const volatile int64_t* addr) { argument
37 return *(*gSwapMutexes)[(reinterpret_cast<unsigned>(addr) >> 3U) % kSwapMutexCount];
57 int64_t QuasiAtomic::Read64(volatile const int64_t* addr) { argument
60 MutexLock mu(Thread::Current(), GetSwapMutex(addr));
61 value = *addr;
68 : "r" (addr));
73 : "m" (*addr));
80 void QuasiAtomic::Write64(volatile int64_t* addr, int64_t value) { argument
82 MutexLock mu(Thread::Current(), GetSwapMutex(addr));
83 *addr
109 Cas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) argument
[all...]
H A Datomic.h38 // Reads the 64-bit value at "addr" without tearing.
39 static int64_t Read64(volatile const int64_t* addr);
41 // Writes to the 64-bit value at "addr" without tearing.
42 static void Write64(volatile int64_t* addr, int64_t val);
44 // Atomically compare the value at "addr" to "old_value", if equal replace it with "new_value"
46 static bool Cas64(int64_t old_value, int64_t new_value, volatile int64_t* addr);
H A Dmem_map.h41 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot);
57 byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse);
80 bool HasAddress(const void* addr) const {
81 return Begin() <= addr && addr < End();
H A Dmem_map.cc45 static void CheckMapRequest(byte* addr, size_t byte_count) { argument
46 if (addr == NULL) {
50 uint32_t base = reinterpret_cast<size_t>(addr);
70 MemMap* MemMap::MapAnonymous(const char* name, byte* addr, size_t byte_count, int prot) { argument
75 CheckMapRequest(addr, page_aligned_byte_count);
93 byte* actual = reinterpret_cast<byte*>(mmap(addr, page_aligned_byte_count, prot, flags, fd.get(), 0));
97 PLOG(ERROR) << "mmap(" << reinterpret_cast<void*>(addr) << ", " << page_aligned_byte_count
105 MemMap* MemMap::MapFileAtAddress(byte* addr, size_t byte_count, argument
117 // The 'addr' is modified (if specified, ie non-null) to be page aligned to the file but not
118 // necessarily to virtual memory. mmap will page align 'addr' fo
[all...]
H A Ddex_file.h609 const byte* addr = begin_ + class_def.interfaces_off_; local
610 return reinterpret_cast<const TypeList*>(addr);
628 const byte* addr = begin_ + code_off; local
629 return reinterpret_cast<const CodeItem*>(addr);
676 const byte* addr = begin_ + proto_id.parameters_off_; local
677 return reinterpret_cast<const TypeList*>(addr);
H A Ddex_file_verifier.cc306 uint32_t addr = DecodeUnsignedLeb128(&ptr_); local
307 if (addr >= code_item->insns_size_in_code_units_) {
308 LOG(ERROR) << StringPrintf("Invalid handler addr: %x", addr);
314 uint32_t addr = DecodeUnsignedLeb128(&ptr_); local
315 if (addr >= code_item->insns_size_in_code_units_) {
316 LOG(ERROR) << StringPrintf("Invalid handler catch_all_addr: %x", addr);
/art/jdwpspy/
H A DMain.cpp36 const unsigned char* addr = reinterpret_cast<const unsigned char*>(vaddr); local
46 offset = (int) addr;
78 *hex++ = gHexDigit[*addr >> 4];
79 *hex++ = gHexDigit[*addr & 0x0f];
81 if (isprint(*addr))
82 *asc++ = *addr;
85 addr++;
H A DNet.cpp261 sockaddr_in addr; local
262 addr.sin_family = AF_INET;
263 addr.sin_port = htons(listenPort);
264 addr.sin_addr.s_addr = INADDR_ANY;
266 if (bind(netState->listenSock, (sockaddr*) &addr, sizeof(addr)) != 0)
365 sockaddr_in addr; local
374 addrlen = sizeof(addr);
376 sock = accept(netState->listenSock, (sockaddr*) &addr, &addrlen);
384 inet_ntoa(addr
686 sockaddr_in addr; local
[all...]
/art/runtime/jdwp/
H A Djdwp_socket.cc138 } addr; local
139 addr.addrInet.sin_family = AF_INET;
140 addr.addrInet.sin_port = htons(port);
141 inet_aton("127.0.0.1", &addr.addrInet.sin_addr);
143 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) {
213 } addr; local
223 addrlen = sizeof(addr);
225 sock = accept(listenSock, &addr.addrPlain, &addrlen);
240 remote_addr_ = addr
265 } addr; local
428 } addr; local
[all...]
/art/runtime/gc/accounting/
H A Dcard_table.cc100 bool CardTable::AddrIsInCardTable(const void* addr) const {
101 return IsValidCard(biased_begin_ + ((uintptr_t)addr >> kCardShift));
104 void CardTable::CheckAddrIsInCardTable(const byte* addr) const {
105 byte* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift);
108 CHECK(AddrIsInCardTable(addr))
115 << " addr: " << reinterpret_cast<const void*>(addr);
H A Dspace_bitmap-inl.h29 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local
30 DCHECK_GE(addr, heap_begin_);
31 const uintptr_t offset = addr - heap_begin_;
48 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local
51 DCHECK_GE(addr, heap_begin_);
52 const uintptr_t offset = addr - heap_begin_;
121 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local
122 DCHECK_GE(addr, heap_begin_);
123 const uintptr_t offset = addr - heap_begin_;
H A Dcard_table.h56 void MarkCard(const void *addr) { argument
57 byte* card_addr = CardFromAddr(addr);
111 void CheckAddrIsInCardTable(const byte* addr) const;
123 byte* CardFromAddr(const void *addr) const ALWAYS_INLINE;
125 bool AddrIsInCardTable(const void* addr) const;
H A Datomic_stack.h168 byte* addr = mem_map_->Begin(); local
169 CHECK(addr != NULL);
171 begin_ = reinterpret_cast<T*>(addr);
H A Dcard_table-inl.h196 inline byte* CardTable::CardFromAddr(const void *addr) const {
197 byte *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift);
199 DCHECK(IsValidCard(card_addr)) << "addr: " << addr
H A Dspace_bitmap.h176 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); local
177 const uintptr_t offset = addr - heap_begin_;
/art/runtime/base/
H A Dlogging.cc176 const unsigned char* addr = reinterpret_cast<const unsigned char*>(address_); local
181 offset = reinterpret_cast<int>(addr);
216 *hex++ = gHexDigit[*addr >> 4];
217 *hex++ = gHexDigit[*addr & 0x0f];
219 if (*addr >= 0x20 && *addr < 0x7f /*isprint(*addr)*/) {
220 *asc++ = *addr;
224 addr++;
H A Dmutex.cc199 volatile int64_t* addr = reinterpret_cast<volatile int64_t*>(&wait_time); local
200 volatile const int64_t* caddr = const_cast<volatile const int64_t*>(addr);
204 } while (!QuasiAtomic::Cas64(static_cast<int64_t>(old_val), static_cast<int64_t>(new_val), addr));
/art/runtime/mirror/
H A Dobject-inl.h244 const int64_t* addr = reinterpret_cast<const int64_t*>(raw_addr); local
246 uint64_t result = QuasiAtomic::Read64(addr);
250 return *addr;
257 int64_t* addr = reinterpret_cast<int64_t*>(raw_addr); local
260 QuasiAtomic::Write64(addr, new_value);
263 *addr = new_value;
/art/compiler/utils/mips/
H A Dassembler_mips.h179 static Address Absolute(uword addr) {
182 result.SetDisp32(addr);
186 static Address Absolute(ThreadOffset addr) {
187 return Absolute(addr.Int32Value());
/art/compiler/
H A Delf_writer_mclinker.cc402 uint32_t* addr = reinterpret_cast<uint32_t*>(elf_file.Begin() + oatdata_offset); local
403 *addr = compiled_code_offset;
/art/compiler/utils/x86/
H A Dassembler_x86.h195 static Address Absolute(uword addr) { argument
198 result.SetDisp32(addr);
202 static Address Absolute(ThreadOffset addr) { argument
203 return Absolute(addr.Int32Value());

Completed in 351 milliseconds