/dalvik/vm/ |
D | Intern.cpp | 71 static StringObject* lookupInternedString(StringObject* strObj, bool isLiteral) in lookupInternedString() argument 75 assert(strObj != NULL); in lookupInternedString() 76 u4 key = dvmComputeStringHash(strObj); in lookupInternedString() 82 StringObject* literal = lookupString(gDvm.literalStrings, key, strObj); in lookupInternedString() 93 StringObject* interned = lookupString(gDvm.internedStrings, key, strObj); in lookupInternedString() 107 found = insertString(gDvm.literalStrings, key, strObj); in lookupInternedString() 108 assert(found == strObj); in lookupInternedString() 115 found = lookupString(gDvm.literalStrings, key, strObj); in lookupInternedString() 121 found = insertString(gDvm.internedStrings, key, strObj); in lookupInternedString() 135 StringObject* dvmLookupInternedString(StringObject* strObj) in dvmLookupInternedString() argument [all …]
|
D | Intern.h | 24 StringObject* dvmLookupInternedString(StringObject* strObj); 25 StringObject* dvmLookupImmortalInternedString(StringObject* strObj); 26 bool dvmIsWeakInternedString(StringObject* strObj);
|
D | UtfString.cpp | 207 u4 dvmComputeStringHash(StringObject* strObj) { in dvmComputeStringHash() argument 208 int hashCode = dvmGetFieldInt(strObj, STRING_FIELDOFF_HASHCODE); in dvmComputeStringHash() 212 int len = dvmGetFieldInt(strObj, STRING_FIELDOFF_COUNT); in dvmComputeStringHash() 213 int offset = dvmGetFieldInt(strObj, STRING_FIELDOFF_OFFSET); in dvmComputeStringHash() 215 (ArrayObject*) dvmGetFieldObject(strObj, STRING_FIELDOFF_VALUE); in dvmComputeStringHash() 217 dvmSetFieldInt(strObj, STRING_FIELDOFF_HASHCODE, hashCode); in dvmComputeStringHash()
|
D | UtfString.h | 60 u4 dvmComputeStringHash(StringObject* strObj);
|
D | Jni.cpp | 458 StringObject* strObj = (StringObject*) obj; in addGlobalReference() local 459 char* str = dvmCreateCstrFromString(strObj); in addGlobalReference() 2145 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringLength() local 2146 return strObj->length(); in GetStringLength() 2159 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringChars() local 2160 ArrayObject* strChars = strObj->array(); in GetStringChars() 2164 const u2* data = strObj->chars(); in GetStringChars() 2176 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in ReleaseStringChars() local 2177 ArrayObject* strChars = strObj->array(); in ReleaseStringChars() 2204 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(ts.self(), jstr); in GetStringUTFLength() local [all …]
|
D | InlineNative.cpp | 447 static inline int indexOfCommon(Object* strObj, int ch, int start) in indexOfCommon() argument 454 (ArrayObject*) dvmGetFieldObject(strObj, STRING_FIELDOFF_VALUE); in indexOfCommon() 456 int offset = dvmGetFieldInt(strObj, STRING_FIELDOFF_OFFSET); in indexOfCommon() 457 int count = dvmGetFieldInt(strObj, STRING_FIELDOFF_COUNT); in indexOfCommon()
|
D | Debugger.cpp | 1089 StringObject* strObj; in dvmDbgCreateString() local 1091 strObj = dvmCreateStringFromCstr(str); in dvmDbgCreateString() 1092 dvmReleaseTrackedAlloc((Object*) strObj, NULL); in dvmDbgCreateString() 1093 return objectToObjectId((Object*) strObj); in dvmDbgCreateString() 1678 StringObject* strObj = (StringObject*) objectIdToObject(strId); in dvmDbgStringToUtf8() local 1680 return dvmCreateCstrFromString(strObj); in dvmDbgStringToUtf8()
|
D | CheckJni.cpp | 1707 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(dvmThreadSelf(), string); in Check_GetStringChars() local 1708 int byteCount = strObj->length() * 2; in Check_GetStringChars() 1950 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(dvmThreadSelf(), string); in Check_GetStringCritical() local 1951 int byteCount = strObj->length() * 2; in Check_GetStringCritical()
|
/dalvik/vm/mterp/c/ |
D | OP_CONST_STRING.cpp | 3 StringObject* strObj; in HANDLE_OPCODE() local 8 strObj = dvmDexGetResolvedString(methodClassDex, ref); in HANDLE_OPCODE() 9 if (strObj == NULL) { in HANDLE_OPCODE() 11 strObj = dvmResolveString(curMethod->clazz, ref); in HANDLE_OPCODE() 12 if (strObj == NULL) in HANDLE_OPCODE() 15 SET_REGISTER(vdst, (u4) strObj); in HANDLE_OPCODE()
|
D | OP_CONST_STRING_JUMBO.cpp | 3 StringObject* strObj; in HANDLE_OPCODE() local 10 strObj = dvmDexGetResolvedString(methodClassDex, tmp); in HANDLE_OPCODE() 11 if (strObj == NULL) { in HANDLE_OPCODE() 13 strObj = dvmResolveString(curMethod->clazz, tmp); in HANDLE_OPCODE() 14 if (strObj == NULL) in HANDLE_OPCODE() 17 SET_REGISTER(vdst, (u4) strObj); in HANDLE_OPCODE()
|
/dalvik/vm/oo/ |
D | Resolve.cpp | 520 StringObject* strObj; in dvmResolveString() local 532 strObj = dvmCreateStringFromCstrAndLength(utf8, utf16Size); in dvmResolveString() 533 if (strObj == NULL) { in dvmResolveString() 550 internStrObj = dvmLookupImmortalInternedString(strObj); in dvmResolveString() 551 dvmReleaseTrackedAlloc((Object*) strObj, NULL); in dvmResolveString() 552 strObj = internStrObj; in dvmResolveString() 553 if (strObj == NULL) { in dvmResolveString() 559 dvmDexSetResolvedString(pDvmDex, stringIdx, strObj); in dvmResolveString() 562 return strObj; in dvmResolveString()
|
/dalvik/vm/mterp/out/ |
D | InterpC-allstubs.cpp | 1447 StringObject* strObj; in HANDLE_OPCODE() local 1452 strObj = dvmDexGetResolvedString(methodClassDex, ref); in HANDLE_OPCODE() 1453 if (strObj == NULL) { in HANDLE_OPCODE() 1455 strObj = dvmResolveString(curMethod->clazz, ref); in HANDLE_OPCODE() 1456 if (strObj == NULL) in HANDLE_OPCODE() 1459 SET_REGISTER(vdst, (u4) strObj); in HANDLE_OPCODE() 1467 StringObject* strObj; in HANDLE_OPCODE() local 1474 strObj = dvmDexGetResolvedString(methodClassDex, tmp); in HANDLE_OPCODE() 1475 if (strObj == NULL) { in HANDLE_OPCODE() 1477 strObj = dvmResolveString(curMethod->clazz, tmp); in HANDLE_OPCODE() [all …]
|
D | InterpC-portable.cpp | 1458 StringObject* strObj; in dvmInterpretPortable() local 1463 strObj = dvmDexGetResolvedString(methodClassDex, ref); in dvmInterpretPortable() 1464 if (strObj == NULL) { in dvmInterpretPortable() 1466 strObj = dvmResolveString(curMethod->clazz, ref); in dvmInterpretPortable() 1467 if (strObj == NULL) in dvmInterpretPortable() 1470 SET_REGISTER(vdst, (u4) strObj); in dvmInterpretPortable() 1478 StringObject* strObj; in dvmInterpretPortable() local 1485 strObj = dvmDexGetResolvedString(methodClassDex, tmp); in dvmInterpretPortable() 1486 if (strObj == NULL) { in dvmInterpretPortable() 1488 strObj = dvmResolveString(curMethod->clazz, tmp); in dvmInterpretPortable() [all …]
|