Home | History | Annotate | Download | only in vm

Lines Matching refs:strObj

71 static StringObject* lookupInternedString(StringObject* strObj, bool isLiteral)
75 assert(strObj != NULL);
76 u4 key = dvmComputeStringHash(strObj);
82 StringObject* literal = lookupString(gDvm.literalStrings, key, strObj);
93 StringObject* interned = lookupString(gDvm.internedStrings, key, strObj);
107 found = insertString(gDvm.literalStrings, key, strObj);
108 assert(found == strObj);
115 found = lookupString(gDvm.literalStrings, key, strObj);
121 found = insertString(gDvm.internedStrings, key, strObj);
135 StringObject* dvmLookupInternedString(StringObject* strObj)
137 return lookupInternedString(strObj, false);
144 StringObject* dvmLookupImmortalInternedString(StringObject* strObj)
146 return lookupInternedString(strObj, true);
153 bool dvmIsWeakInternedString(StringObject* strObj)
155 assert(strObj != NULL);
160 u4 key = dvmComputeStringHash(strObj);
161 StringObject* found = lookupString(gDvm.internedStrings, key, strObj);
163 return found == strObj;