/dalvik/libdex/ |
H A D | SysUtil.h | 40 void* addr; /* start of data */ member in struct:MemMapping 99 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite,
|
H A D | SysUtil.c | 72 pMap->addr = pMap->baseAddr = memPtr; 139 pMap->baseAddr = pMap->addr = memPtr; 172 pMap->baseAddr = pMap->addr = memPtr; 205 pMap->baseAddr = pMap->addr = memPtr; 252 pMap->baseAddr = pMap->addr = memPtr; 294 pMap->addr = (char*)memPtr + adjust; 300 pMap->addr, (int) pMap->length); 314 int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite, argument 319 * Verify that "addr" is part of this mapping file. 321 if (addr < pMa [all...] |
/dalvik/vm/alloc/ |
H A D | WriteBarrier.h | 29 INLINE void dvmWriteBarrierField(const Object *obj, void *addr) argument
|
H A D | Verify.c | 69 static void verifyReference(void *addr, void *arg) argument 74 assert(addr != NULL); 75 obj = *(Object **)addr; 88 LOGE("Verify of reference %p @ %p failed", obj, addr);
|
H A D | Visit.c | 104 int addr = saveArea->xtra.currentPc - method->insns; local 105 regVector = dvmRegisterMapGetLine(pMap, addr);
|
H A D | CardTable.c | 113 u1 *dvmCardFromAddr(const void *addr) argument 116 u1 *cardAddr = biasedBase + ((uintptr_t)addr >> GC_CARD_SHIFT); 134 void dvmMarkCard(const void *addr) argument 136 u1 *cardAddr = dvmCardFromAddr(addr); 162 static void countWhiteReferenceVisitor(void *addr, void *arg) argument 167 assert(addr != NULL); 169 obj = *(Object **)addr;
|
H A D | HeapBitmap.h | 83 typedef void BitmapCallback(void *addr, void *arg); 84 typedef void BitmapScanCallback(void *addr, void *finger, void *arg); 128 void *addr = (void *)(ptrBase + shift * HB_OBJECT_ALIGNMENT); local 129 (*callback)(addr, arg); 167 void *addr = (void *)(ptrBase + shift * HB_OBJECT_ALIGNMENT); local 168 (*callback)(addr, finger, arg);
|
H A D | MarkSweep.c | 256 static void markObjectVisitor(void *addr, void *arg) argument 260 assert(addr != NULL); 262 obj = *(Object **)addr; 311 void *addr = BYTE_OFFSET((Object *)obj, field->byteOffset); local 312 markObject(((JValue *)addr)->l, ctx); 600 u1 *addr = dvmAddrFromCard(card); local 605 u1 *limit = addr + GC_CARD_SIZE; 606 u1 *next = addr; 623 static void scanBitmapCallback(void *addr, void *finger, void *arg) argument 627 scanObject(addr, ct [all...] |
/dalvik/vm/ |
H A D | Atomic.c | 44 volatile int64_t* addr) 47 (int64_t*)addr) == 0; 50 int64_t dvmQuasiAtomicSwap64(int64_t value, volatile int64_t* addr) argument 54 oldValue = *addr; 55 } while (dvmQuasiAtomicCas64(oldValue, value, addr)); 59 int64_t dvmQuasiAtomicRead64(volatile const int64_t* addr) argument 61 return OSAtomicAdd64Barrier(0, addr); 72 int64_t dvmQuasiAtomicSwap64(int64_t newvalue, volatile int64_t* addr) argument 80 : "=&r" (prev), "=&r" (status), "+m"(*addr) 81 : "r" (addr), " 43 dvmQuasiAtomicCas64(int64_t oldvalue, int64_t newvalue, volatile int64_t* addr) argument 87 dvmQuasiAtomicCas64(int64_t oldvalue, int64_t newvalue, volatile int64_t* addr) argument 106 dvmQuasiAtomicRead64(volatile const int64_t* addr) argument 142 dvmQuasiAtomicSwap64(int64_t value, volatile int64_t* addr) argument 156 dvmQuasiAtomicCas64(int64_t oldvalue, int64_t newvalue, volatile int64_t* addr) argument 174 dvmQuasiAtomicRead64(volatile const int64_t* addr) argument 220 dvmQuasiAtomicCas64(int64_t oldvalue, int64_t newvalue, volatile int64_t* addr) argument 245 dvmQuasiAtomicRead64(volatile const int64_t* addr) argument 263 dvmQuasiAtomicSwap64(int64_t value, volatile int64_t* addr) argument [all...] |
H A D | DvmDex.c | 124 pDexFile = dexFileParse(memMap.addr, memMap.length, parseFlags); 155 int dvmDexFileOpenPartial(const void* addr, int len, DvmDex** ppDvmDex) argument 167 pDexFile = dexFileParse(addr, len, parseFlags); 230 bool dvmDexChangeDex1(DvmDex* pDvmDex, u1* addr, u1 newVal) argument 232 if (*addr == newVal) { 233 LOGV("+++ byte at %p is already 0x%02x\n", addr, newVal); 243 LOGV("+++ change byte at %p from 0x%02x to 0x%02x\n", addr, *addr, newVal); 244 if (sysChangeMapAccess(addr, 1, true, &pDvmDex->memMap) != 0) { 249 *addr 267 dvmDexChangeDex2(DvmDex* pDvmDex, u2* addr, u2 newVal) argument [all...] |
H A D | Profile.c | 751 u4 addr; local 771 addr = (u4) method->nativeFunc; 787 addr = (u4) method->insns - pOptHdr->dexOffset; 790 *(pMagic+action) = addr; 792 pMagic+action, addr, method->clazz->descriptor, method->name);
|
H A D | Init.c | 1075 void* addr = info->si_addr; local 1077 LOGE("Caught a SIGBUS (%d), addr=%p\n", signum, addr);
|
H A D | Misc.c | 53 const unsigned char* addr = vaddr; local 64 offset = (int) addr; 97 *hex++ = gHexDigit[*addr >> 4]; 98 *hex++ = gHexDigit[*addr & 0x0f]; 100 if (*addr >= 0x20 && *addr < 0x7f /*isprint(*addr)*/) 101 *asc++ = *addr; 104 addr++;
|
/dalvik/vm/alloc/TEST/HeapBitmapTest/ |
H A D | main.c | 380 uintptr_t addr; local 382 for (addr = base; addr < top; addr += step) { 383 *p++ = (void *)addr;
|
/dalvik/vm/analysis/ |
H A D | CodeVerify.h | 116 int addr; /* code offset, or -1 for method arg ("this") */ member in struct:UninitInstanceMap::__anon56 175 INLINE bool dvmInsnIsOpcode(const InsnFlags* insnFlags, int addr) { argument 176 return (insnFlags[addr] & kInsnFlagWidthMask) != 0; 182 INLINE int dvmInsnGetWidth(const InsnFlags* insnFlags, int addr) { argument 183 return insnFlags[addr] & kInsnFlagWidthMask; 189 INLINE bool dvmInsnIsChanged(const InsnFlags* insnFlags, int addr) { argument 190 return (insnFlags[addr] & kInsnFlagChanged) != 0; 192 INLINE void dvmInsnSetChanged(InsnFlags* insnFlags, int addr, bool changed) argument 195 insnFlags[addr] |= kInsnFlagChanged; 197 insnFlags[addr] 203 dvmInsnIsVisited(const InsnFlags* insnFlags, int addr) argument 206 dvmInsnSetVisited(InsnFlags* insnFlags, int addr, bool changed) argument 217 dvmInsnIsVisitedOrChanged(const InsnFlags* insnFlags, int addr) argument 224 dvmInsnIsInTry(const InsnFlags* insnFlags, int addr) argument 227 dvmInsnSetInTry(InsnFlags* insnFlags, int addr, bool inTry) argument 239 dvmInsnIsBranchTarget(const InsnFlags* insnFlags, int addr) argument 242 dvmInsnSetBranchTarget(InsnFlags* insnFlags, int addr, bool isBranch) argument 255 dvmInsnIsGcPoint(const InsnFlags* insnFlags, int addr) argument 258 dvmInsnSetGcPoint(InsnFlags* insnFlags, int addr, bool isGcPoint) argument [all...] |
H A D | VerifySubs.c | 117 u4 addr; local 133 for (addr = start; addr < end; 134 addr += dvmInsnGetWidth(insnFlags, addr)) 136 assert(dvmInsnGetWidth(insnFlags, addr) != 0); 137 dvmInsnSetInTry(insnFlags, addr, true); 149 u4 addr; local 155 addr = handler->address; 156 if (dvmInsnGetWidth(insnFlags, addr) [all...] |
H A D | DexPrepare.c | 45 static bool rewriteDex(u1* addr, int len, u4* pHeaderFlags, 52 static void updateChecksum(u1* addr, int len, DexHeader* pHeader); 685 static bool rewriteDex(u1* addr, int len, u4* pHeaderFlags, argument 696 if (dexSwapAndVerify(addr, len) != 0) 726 if (dvmDexFileOpenPartial(addr, len, &pDvmDex) != 0) { 1436 static void updateChecksum(u1* addr, int len, DexHeader* pHeader) argument 1444 adler = adler32(adler, addr + nonSum, len - nonSum);
|
H A D | RegisterMap.c | 424 int i, addr; local 426 addr = *rawMap++; 428 addr |= (*rawMap++) << 8; 454 LOGD(" %04x %s %s\n", addr, outBuf, hexBuf); 495 int addr; local 499 addr = *rawMap++; 502 addr = *rawMap++; 503 addr |= (*rawMap++) << 8; 511 const RegType* regs = vdata->addrRegs[addr]; 513 LOGE("GLITCH: addr 893 dvmRegisterMapGetLine(const RegisterMap* pMap, int addr) argument 1253 int ent, addr, prevAddr = -1; local 1510 u2 addr, prevAddr; local 1719 int addr = *srcPtr & 0x7f; local [all...] |
/dalvik/vm/interp/ |
H A D | Jit.h | 33 int addr; member in struct:ShadowHeap 38 int addr; member in struct:InstructionTrace
|
H A D | Jit.c | 207 static void selfVerificationPrintRegisters(int* addr, int* addrRef, argument 212 LOGD("(v%d) 0x%8x%s", i, addr[i], addr[i] != addrRef[i] ? " X" : ""); 253 int i, addr, offset; local 258 addr = shadowSpace->trace[i].addr; 259 offset = (int)((u2*)addr - stackSave->method->insns); 263 addr, offset, dexGetOpcodeName(decInsn->opCode)); 327 LOGD("*** Interp Registers: addr: 0x%x bytes: %d", 332 LOGD("*** Shadow Registers: addr [all...] |
H A D | Interp.c | 66 u2* addr; /* absolute memory address */ member in struct:__anon78 150 static int dvmBreakpointSetFind(const BreakpointSet* pSet, const u2* addr) argument 156 if (pBreak->addr == addr) 171 const u2* addr, u1* pOrig) 173 int idx = dvmBreakpointSetFind(pSet, addr); 198 static bool instructionIsMagicNop(const u2* addr) argument 200 u2 curVal = *addr; 219 const u2* addr = method->insns + instrOffset; local 220 int idx = dvmBreakpointSetFind(pSet, addr); 170 dvmBreakpointSetOriginalOpCode(const BreakpointSet* pSet, const u2* addr, u1* pOrig) argument 296 const u2* addr = method->insns + instrOffset; local 438 dvmGetOriginalOpCode(const u2* addr) argument [all...] |
/dalvik/vm/test/ |
H A D | AtomicTest.c | 94 static int compareAndSwap(int oldVal, int newVal, int* addr) __attribute__((noinline)); 95 static int compareAndSwapWide(int64_t oldVal, int64_t newVal, int64_t* addr) __attribute__((noinline)); 109 static int compareAndSwap(int32_t oldVal, int32_t newVal, int32_t* addr) argument 111 if (*addr == oldVal) { 112 *addr = newVal; 117 static int compareAndSwapWide(int64_t oldVal, int64_t newVal, int64_t* addr) argument 119 if (*addr == oldVal) { 120 *addr = newVal;
|
/dalvik/vm/jdwp/ |
H A D | JdwpSocket.c | 164 } addr; local 165 addr.addrInet.sin_family = AF_INET; 166 addr.addrInet.sin_port = htons(port); 167 inet_aton("127.0.0.1", &addr.addrInet.sin_addr); 169 if (bind(netState->listenSock, &addr.addrPlain, sizeof(addr)) != 0) { 342 } addr; local 351 addrlen = sizeof(addr); 353 sock = accept(netState->listenSock, &addr.addrPlain, &addrlen); 365 netState->remoteAddr = addr 393 } addr; local 740 } addr; local [all...] |
/dalvik/vm/oo/ |
H A D | ObjectInlines.h | 108 const s8* addr = BYTE_OFFSET(obj, offset); local 109 s8 val = dvmQuasiAtomicRead64(addr); 115 const s8* addr = BYTE_OFFSET(obj, offset); local 116 alias.lval = dvmQuasiAtomicRead64(addr); 178 s8* addr = BYTE_OFFSET(obj, offset); local 180 dvmQuasiAtomicSwap64(val, addr); 256 const s8* addr = &sfield->value.j; local 257 s8 val = dvmQuasiAtomicRead64(addr); 263 const s8* addr = &sfield->value.j; local 264 alias.lval = dvmQuasiAtomicRead64(addr); 325 s8* addr = &sfield->value.j; local [all...] |
/dalvik/dexdump/ |
H A D | DexDump.c | 1586 int idx, addr, byte; local 1593 addr = *data++; 1595 addr |= (*data++) << 8; 1597 printf(" %4x:", addr); 1763 pDexFile = dexFileParse(map.addr, map.length, flags);
|