• Home
  • Raw
  • Download

Lines Matching refs:pMap

43 static bool verifyMap(VerifierData* vdata, const RegisterMap* pMap);
47 static void computeMapStats(RegisterMap* pMap, const Method* method);
49 static RegisterMap* compressMapDifferential(const RegisterMap* pMap,\
51 static RegisterMap* uncompressMapDifferential(const RegisterMap* pMap);
191 RegisterMap* pMap = NULL; in dvmGenerateRegisterMapV() local
248 pMap = (RegisterMap*) malloc(bufSize); in dvmGenerateRegisterMapV()
249 dvmRegisterMapSetFormat(pMap, format); in dvmGenerateRegisterMapV()
250 dvmRegisterMapSetOnHeap(pMap, true); in dvmGenerateRegisterMapV()
251 dvmRegisterMapSetRegWidth(pMap, regWidth); in dvmGenerateRegisterMapV()
252 dvmRegisterMapSetNumEntries(pMap, gcPointCount); in dvmGenerateRegisterMapV()
257 mapData = pMap->data; in dvmGenerateRegisterMapV()
273 ALOGV("mapData=%p pMap=%p bufSize=%d", mapData, pMap, bufSize); in dvmGenerateRegisterMapV()
274 assert(mapData - (const u1*) pMap == bufSize); in dvmGenerateRegisterMapV()
276 if (REGISTER_MAP_VERIFY && !verifyMap(vdata, pMap)) in dvmGenerateRegisterMapV()
279 computeMapStats(pMap, vdata->method); in dvmGenerateRegisterMapV()
287 pCompMap = compressMapDifferential(pMap, vdata->method); in dvmGenerateRegisterMapV()
304 if (compareMaps(pMap, pUncompMap) != 0) { in dvmGenerateRegisterMapV()
323 free(pMap); in dvmGenerateRegisterMapV()
324 pMap = pCompMap; in dvmGenerateRegisterMapV()
330 dvmRegisterMapGetNumEntries(pMap), in dvmGenerateRegisterMapV()
331 dvmRegisterMapGetRegWidth(pMap)); in dvmGenerateRegisterMapV()
335 pResult = pMap; in dvmGenerateRegisterMapV()
344 void dvmFreeRegisterMap(RegisterMap* pMap) in dvmFreeRegisterMap() argument
346 if (pMap == NULL) in dvmFreeRegisterMap()
349 assert(dvmRegisterMapGetOnHeap(pMap)); in dvmFreeRegisterMap()
350 free(pMap); in dvmFreeRegisterMap()
399 static void dumpRegisterMap(const RegisterMap* pMap, int registersSize) in dumpRegisterMap() argument
401 const u1* rawMap = pMap->data; in dumpRegisterMap()
402 const RegisterMapFormat format = dvmRegisterMapGetFormat(pMap); in dumpRegisterMap()
403 const int numEntries = dvmRegisterMapGetNumEntries(pMap); in dumpRegisterMap()
404 const int regWidth = dvmRegisterMapGetRegWidth(pMap); in dumpRegisterMap()
466 static bool verifyMap(VerifierData* vdata, const RegisterMap* pMap) in verifyMap() argument
468 const u1* rawMap = pMap->data; in verifyMap()
469 const RegisterMapFormat format = dvmRegisterMapGetFormat(pMap); in verifyMap()
470 const int numEntries = dvmRegisterMapGetNumEntries(pMap); in verifyMap()
490 if ((vdata->method->registersSize + 7) / 8 != pMap->regWidth) { in verifyMap()
492 vdata->method->registersSize, pMap->regWidth); in verifyMap()
547 dumpRegisterMap(pMap, vdata->method->registersSize); in verifyMap()
570 static size_t computeRegisterMapSize(const RegisterMap* pMap) in computeRegisterMapSize() argument
573 u1 format = dvmRegisterMapGetFormat(pMap); in computeRegisterMapSize()
574 u2 numEntries = dvmRegisterMapGetNumEntries(pMap); in computeRegisterMapSize()
576 assert(pMap != NULL); in computeRegisterMapSize()
582 return kHeaderSize + (1 + pMap->regWidth) * numEntries; in computeRegisterMapSize()
584 return kHeaderSize + (2 + pMap->regWidth) * numEntries; in computeRegisterMapSize()
588 const u1* ptr = pMap->data; in computeRegisterMapSize()
590 return len + (ptr - (u1*) pMap); in computeRegisterMapSize()
874 const RegisterMap* pMap = (const RegisterMap*) *pPtr; in dvmRegisterMapGetNext() local
876 *pPtr = /*align32*/(((u1*) pMap) + computeRegisterMapSize(pMap)); in dvmRegisterMapGetNext()
878 pMap, *pPtr, pMap->format, pMap->regWidth, in dvmRegisterMapGetNext()
879 dvmRegisterMapGetNumEntries(pMap)); in dvmRegisterMapGetNext()
880 return pMap; in dvmRegisterMapGetNext()
895 const u1* dvmRegisterMapGetLine(const RegisterMap* pMap, int addr) in dvmRegisterMapGetLine() argument
898 u1 format = dvmRegisterMapGetFormat(pMap); in dvmRegisterMapGetLine()
899 u2 numEntries = dvmRegisterMapGetNumEntries(pMap); in dvmRegisterMapGetLine()
918 lineWidth = addrWidth + pMap->regWidth; in dvmRegisterMapGetLine()
930 data = pMap->data; in dvmRegisterMapGetLine()
940 assert(data == pMap->data + lineWidth * numEntries); in dvmRegisterMapGetLine()
949 data = pMap->data + lineWidth * mid; in dvmRegisterMapGetLine()
1248 static void computeMapStats(RegisterMap* pMap, const Method* method) in computeMapStats() argument
1251 const u1 format = dvmRegisterMapGetFormat(pMap); in computeMapStats()
1252 const u2 numEntries = dvmRegisterMapGetNumEntries(pMap); in computeMapStats()
1253 const u1* rawMap = pMap->data; in computeMapStats()
1312 for (regByte = 0; regByte < pMap->regWidth; regByte++) { in computeMapStats()
1360 rawMap += pMap->regWidth; in computeMapStats()
1442 static RegisterMap* compressMapDifferential(const RegisterMap* pMap, in compressMapDifferential() argument
1446 int origSize = computeRegisterMapSize(pMap); in compressMapDifferential()
1458 u1 format = dvmRegisterMapGetFormat(pMap); in compressMapDifferential()
1471 regWidth = dvmRegisterMapGetRegWidth(pMap); in compressMapDifferential()
1472 numEntries = dvmRegisterMapGetNumEntries(pMap); in compressMapDifferential()
1478 dumpRegisterMap(pMap, -1); in compressMapDifferential()
1509 const u1* mapData = pMap->data; in compressMapDifferential()
1672 computeRegisterMapSize(pMap), computeRegisterMapSize(pNewMap), in compressMapDifferential()
1695 static RegisterMap* uncompressMapDifferential(const RegisterMap* pMap) in uncompressMapDifferential() argument
1698 u1 format = dvmRegisterMapGetFormat(pMap); in uncompressMapDifferential()
1707 regWidth = dvmRegisterMapGetRegWidth(pMap); in uncompressMapDifferential()
1708 numEntries = dvmRegisterMapGetNumEntries(pMap); in uncompressMapDifferential()
1711 const u1* srcPtr = pMap->data; in uncompressMapDifferential()
1829 computeRegisterMapSize(pMap), computeRegisterMapSize(pNewMap)); in uncompressMapDifferential()