Home
last modified time | relevance | path

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

1234

/dalvik/vm/
DAtomic.cpp44 volatile int64_t* addr) in dvmQuasiAtomicCas64() argument
47 (int64_t*)addr) == 0; in dvmQuasiAtomicCas64()
52 volatile int64_t* addr) in dvmQuasiAtomicSwap64Body() argument
56 oldValue = *addr; in dvmQuasiAtomicSwap64Body()
57 } while (dvmQuasiAtomicCas64(oldValue, value, addr)); in dvmQuasiAtomicSwap64Body()
61 int64_t dvmQuasiAtomicSwap64(int64_t value, volatile int64_t* addr) in dvmQuasiAtomicSwap64() argument
63 return dvmQuasiAtomicSwap64Body(value, addr); in dvmQuasiAtomicSwap64()
66 int64_t dvmQuasiAtomicSwap64Sync(int64_t value, volatile int64_t* addr) in dvmQuasiAtomicSwap64Sync() argument
70 oldValue = dvmQuasiAtomicSwap64Body(value, addr); in dvmQuasiAtomicSwap64Sync()
76 int64_t dvmQuasiAtomicRead64(volatile const int64_t* addr) in dvmQuasiAtomicRead64() argument
[all …]
DDvmDex.cpp112 pDexFile = dexFileParse((u1*)memMap.addr, memMap.length, parseFlags); in dvmDexFileOpenFromFd()
144 int dvmDexFileOpenPartial(const void* addr, int len, DvmDex** ppDvmDex) in dvmDexFileOpenPartial() argument
156 pDexFile = dexFileParse((u1*)addr, len, parseFlags); in dvmDexFileOpenPartial()
223 bool dvmDexChangeDex1(DvmDex* pDvmDex, u1* addr, u1 newVal) in dvmDexChangeDex1() argument
225 if (*addr == newVal) { in dvmDexChangeDex1()
226 ALOGV("+++ byte at %p is already 0x%02x", addr, newVal); in dvmDexChangeDex1()
236 ALOGV("+++ change byte at %p from 0x%02x to 0x%02x", addr, *addr, newVal); in dvmDexChangeDex1()
237 if (sysChangeMapAccess(addr, 1, true, &pDvmDex->memMap) != 0) { in dvmDexChangeDex1()
242 *addr = newVal; in dvmDexChangeDex1()
244 if (sysChangeMapAccess(addr, 1, false, &pDvmDex->memMap) != 0) { in dvmDexChangeDex1()
[all …]
DAtomic.h41 extern "C" int64_t dvmQuasiAtomicSwap64(int64_t value, volatile int64_t* addr);
48 volatile int64_t* addr);
53 extern "C" int64_t dvmQuasiAtomicRead64(volatile const int64_t* addr);
60 volatile int64_t* addr);
DDvmDex.h81 int dvmDexFileOpenPartial(const void* addr, int len, DvmDex** ppDvmDex);
100 bool dvmDexChangeDex1(DvmDex* pDvmDex, u1* addr, u1 newVal);
101 bool dvmDexChangeDex2(DvmDex* pDvmDex, u2* addr, u2 newVal);
/dalvik/vm/analysis/
DCodeVerify.h151 int addr; /* code offset, or -1 for method arg ("this") */ member
221 INLINE bool dvmInsnIsOpcode(const InsnFlags* insnFlags, int addr) { in dvmInsnIsOpcode() argument
222 return (insnFlags[addr] & kInsnFlagWidthMask) != 0; in dvmInsnIsOpcode()
228 INLINE int dvmInsnGetWidth(const InsnFlags* insnFlags, int addr) { in dvmInsnGetWidth() argument
229 return insnFlags[addr] & kInsnFlagWidthMask; in dvmInsnGetWidth()
235 INLINE bool dvmInsnIsChanged(const InsnFlags* insnFlags, int addr) { in dvmInsnIsChanged() argument
236 return (insnFlags[addr] & kInsnFlagChanged) != 0; in dvmInsnIsChanged()
238 INLINE void dvmInsnSetChanged(InsnFlags* insnFlags, int addr, bool changed) in dvmInsnSetChanged() argument
241 insnFlags[addr] |= kInsnFlagChanged; in dvmInsnSetChanged()
243 insnFlags[addr] &= ~kInsnFlagChanged; in dvmInsnSetChanged()
[all …]
DRegisterMap.cpp426 int i, addr; in dumpRegisterMap() local
428 addr = *rawMap++; in dumpRegisterMap()
430 addr |= (*rawMap++) << 8; in dumpRegisterMap()
456 ALOGD(" %04x %s %s", addr, outBuf, hexBuf); in dumpRegisterMap()
497 int addr; in verifyMap() local
501 addr = *rawMap++; in verifyMap()
504 addr = *rawMap++; in verifyMap()
505 addr |= (*rawMap++) << 8; in verifyMap()
513 const RegType* regs = vdata->registerLines[addr].regTypes; in verifyMap()
515 ALOGE("GLITCH: addr %d has no data", addr); in verifyMap()
[all …]
/dalvik/dx/tests/044-dex-math-ops/
Dexpected.txt13 000b: add-double/2addr v6, v8
18 0011: sub-double/2addr v6, v8
23 0017: mul-double/2addr v6, v8
28 001d: div-double/2addr v6, v8
33 0023: rem-double/2addr v6, v8
48 000b: add-float/2addr v4, v5
53 0011: sub-float/2addr v4, v5
58 0017: mul-float/2addr v4, v5
63 001d: div-float/2addr v4, v5
68 0023: rem-float/2addr v4, v5
[all …]
/dalvik/vm/alloc/
DVerify.cpp81 static void verifyReference(void *addr, void *arg) in verifyReference() argument
86 assert(addr != NULL); in verifyReference()
87 obj = *(Object **)addr; in verifyReference()
100 ALOGE("Verify of reference %p @ %p failed", obj, addr); in verifyReference()
138 static void verifyRootReference(void *addr, u4 threadId, in verifyRootReference() argument
141 verifyReference(addr, arg); in verifyRootReference()
DCopying.cpp145 static bool toSpaceContains(const void *addr);
146 static bool fromSpaceContains(const void *addr);
263 void *addr = mmap(NULL, length, prot, flags, -1, 0); in virtualAlloc() local
264 if (addr == MAP_FAILED) { in virtualAlloc()
266 addr = NULL; in virtualAlloc()
268 return addr; in virtualAlloc()
271 static void virtualFree(void *addr, size_t length) in virtualFree() argument
273 assert(addr != NULL); in virtualFree()
274 assert((uintptr_t)addr % SYSTEM_PAGE_SIZE == 0); in virtualFree()
275 int res = munmap(addr, length); in virtualFree()
[all …]
DCardTable.h51 u1 *dvmCardFromAddr(const void *addr);
66 void dvmMarkCard(const void *addr);
DCardTable.cpp171 u1 *dvmCardFromAddr(const void *addr) in dvmCardFromAddr() argument
174 u1 *cardAddr = biasedBase + ((uintptr_t)addr >> GC_CARD_SHIFT); in dvmCardFromAddr()
192 void dvmMarkCard(const void *addr) in dvmMarkCard() argument
194 u1 *cardAddr = dvmCardFromAddr(addr); in dvmMarkCard()
220 static void countWhiteReferenceVisitor(void *addr, void *arg) in countWhiteReferenceVisitor() argument
225 assert(addr != NULL); in countWhiteReferenceVisitor()
227 obj = *(Object **)addr; in countWhiteReferenceVisitor()
242 static void dumpWhiteReferenceVisitor(void *addr, void *arg) in dumpWhiteReferenceVisitor() argument
247 assert(addr != NULL); in dumpWhiteReferenceVisitor()
249 obj = *(Object **)addr; in dumpWhiteReferenceVisitor()
DVisit.h42 typedef void Visitor(void *addr, void *arg);
49 typedef void RootVisitor(void *addr, u4 threadId, RootType type, void *arg);
/dalvik/dx/tests/047-dex-wide-args/
Dexpected.txt10 0007: add-long/2addr v6, v8
13 000a: add-long/2addr v6, v8
15 000c: add-long/2addr v6, v8
27 0007: add-long/2addr v6, v8
29 0009: add-long/2addr v6, v8
32 000c: add-long/2addr v6, v8
/dalvik/vm/jdwp/
DJdwpSocket.cpp168 } addr; in netStartup() local
169 addr.addrInet.sin_family = AF_INET; in netStartup()
170 addr.addrInet.sin_port = htons(port); in netStartup()
171 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); in netStartup()
173 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { in netStartup()
346 } addr; in acceptConnection() local
355 addrlen = sizeof(addr); in acceptConnection()
357 sock = accept(netState->listenSock, &addr.addrPlain, &addrlen); in acceptConnection()
369 netState->remoteAddr = addr.addrInet.sin_addr; in acceptConnection()
370 netState->remotePort = ntohs(addr.addrInet.sin_port); in acceptConnection()
[all …]
/dalvik/libdex/
DSysUtil.cpp72 pMap->addr = pMap->baseAddr = memPtr; in sysCreatePrivateMap()
139 pMap->baseAddr = pMap->addr = memPtr; in sysLoadFileInShmem()
172 pMap->baseAddr = pMap->addr = memPtr; in sysFakeMapFile()
205 pMap->baseAddr = pMap->addr = memPtr; in sysMapFileInShmemReadOnly()
252 pMap->baseAddr = pMap->addr = memPtr; in sysMapFileInShmemWritableReadOnly()
294 pMap->addr = (char*)memPtr + adjust; in sysMapFileSegmentInShmem()
300 pMap->addr, (int) pMap->length); in sysMapFileSegmentInShmem()
314 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite, in sysChangeMapAccess() argument
321 if (addr < pMap->baseAddr || in sysChangeMapAccess()
322 (u1*)addr >= (u1*)pMap->baseAddr + pMap->baseLength) in sysChangeMapAccess()
[all …]
DSysUtil.h44 void* addr; /* start of data */ member
103 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite,
DDexSwapVerify.cpp1062 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations() argument
1063 DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; in swapFieldAnnotations()
1091 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations() argument
1092 DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; in swapMethodAnnotations()
1121 u1* addr) { in swapParameterAnnotations() argument
1122 DexParameterAnnotationsItem* item = (DexParameterAnnotationsItem*) addr; in swapParameterAnnotations()
1158 u1* addr = (u1*) (item + 1); in swapAnnotationsDirectoryItem() local
1161 addr = swapFieldAnnotations(state, item->fieldsSize, addr); in swapAnnotationsDirectoryItem()
1162 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1168 addr = swapMethodAnnotations(state, item->methodsSize, addr); in swapAnnotationsDirectoryItem()
[all …]
/dalvik/vm/compiler/codegen/x86/
DCalloutHelper.h31 #define LOAD_FUNC_ADDR(cUnit, reg, addr) loadConstant(cUnit, reg, addr) argument
/dalvik/dx/tests/052-dex-static-var-access/
Dexpected.txt5 0004: add-int/2addr v1, v2
7 0007: add-int/2addr v1, v2
9 000a: add-int/2addr v1, v2
12 000e: add-int/2addr v1, v2
15 0012: add-int/2addr v1, v2
18 0016: add-int/2addr v1, v2
/dalvik/vm/test/
DAtomicTest.cpp93 static int compareAndSwap(int oldVal, int newVal, int* addr) __attribute__((noinline));
94 static int compareAndSwapWide(int64_t oldVal, int64_t newVal, int64_t* addr) __attribute__((noinlin…
108 static int compareAndSwap(int32_t oldVal, int32_t newVal, int32_t* addr) in compareAndSwap() argument
110 if (*addr == oldVal) { in compareAndSwap()
111 *addr = newVal; in compareAndSwap()
116 static int compareAndSwapWide(int64_t oldVal, int64_t newVal, int64_t* addr) in compareAndSwapWide() argument
118 if (*addr == oldVal) { in compareAndSwapWide()
119 *addr = newVal; in compareAndSwapWide()
/dalvik/vm/compiler/
DCompiler.h51 #define UNPROTECT_CODE_CACHE(addr, size) \ argument
54 mprotect((void *) (((intptr_t) (addr)) & ~gDvmJit.pageSizeMask), \
55 (size) + (((intptr_t) (addr)) & gDvmJit.pageSizeMask), \
60 #define PROTECT_CODE_CACHE(addr, size) \ argument
62 mprotect((void *) (((intptr_t) (addr)) & ~gDvmJit.pageSizeMask), \
63 (size) + (((intptr_t) (addr)) & gDvmJit.pageSizeMask), \
/dalvik/dx/tests/121-sccp/
Dexpected.txt11 0010: add-double/2addr v0, v6
36 000a: sub-double/2addr v0, v4
38 000d: mul-double/2addr v0, v4
41 0012: sub-double/2addr v0, v6
44 0017: mul-double/2addr v0, v2
64 0008: rem-double/2addr v0, v4
65 0009: add-double/2addr v0, v2
84 000a: mul-double/2addr v0, v2
87 000f: sub-double/2addr v0, v4
89 0012: mul-double/2addr v0, v2
[all …]
/dalvik/vm/compiler/codegen/arm/
DAssemble.cpp2386 static int selfVerificationLoad(int addr, int size) in selfVerificationLoad() argument
2393 int maskedAddr = addr & 0xFFFFFFFC; in selfVerificationLoad()
2394 int alignment = addr & 0x3; in selfVerificationLoad()
2398 if (heapSpacePtr->addr == maskedAddr) { in selfVerificationLoad()
2399 addr = ((unsigned int) &(heapSpacePtr->data)) | alignment; in selfVerificationLoad()
2406 data = *((u1*) addr); in selfVerificationLoad()
2409 data = *((s1*) addr); in selfVerificationLoad()
2412 data = *((u2*) addr); in selfVerificationLoad()
2415 data = *((s2*) addr); in selfVerificationLoad()
2418 data = *((u4*) addr); in selfVerificationLoad()
[all …]
/dalvik/dx/tests/053-dex-instance-var-access/
Dexpected.txt8 0007: add-int/2addr v2, v3
11 000b: add-int/2addr v2, v3
14 000f: add-int/2addr v2, v3
18 0014: add-int/2addr v2, v3
22 0019: add-int/2addr v2, v3
26 001e: add-int/2addr v2, v3
/dalvik/vm/interp/
DInterp.cpp84 u2* addr; /* absolute memory address */ member
168 static int dvmBreakpointSetFind(const BreakpointSet* pSet, const u2* addr) in dvmBreakpointSetFind() argument
174 if (pBreak->addr == addr) in dvmBreakpointSetFind()
189 const u2* addr, u1* pOrig) in dvmBreakpointSetOriginalOpcode() argument
191 int idx = dvmBreakpointSetFind(pSet, addr); in dvmBreakpointSetOriginalOpcode()
216 static bool instructionIsMagicNop(const u2* addr) in instructionIsMagicNop() argument
218 u2 curVal = *addr; in instructionIsMagicNop()
237 const u2* addr = method->insns + instrOffset; in dvmBreakpointSetAdd() local
238 int idx = dvmBreakpointSetFind(pSet, addr); in dvmBreakpointSetAdd()
259 pBreak->addr = (u2*)addr; in dvmBreakpointSetAdd()
[all …]

1234