Lines Matching refs:s

92 ObjPtr<mirror::String> InternTable::LookupWeak(Thread* self, ObjPtr<mirror::String> s) {  in LookupWeak()  argument
94 return LookupWeakLocked(s); in LookupWeak()
97 ObjPtr<mirror::String> InternTable::LookupStrong(Thread* self, ObjPtr<mirror::String> s) { in LookupStrong() argument
99 return LookupStrongLocked(s); in LookupStrong()
113 ObjPtr<mirror::String> InternTable::LookupWeakLocked(ObjPtr<mirror::String> s) { in LookupWeakLocked() argument
114 return weak_interns_.Find(s); in LookupWeakLocked()
117 ObjPtr<mirror::String> InternTable::LookupStrongLocked(ObjPtr<mirror::String> s) { in LookupStrongLocked() argument
118 return strong_interns_.Find(s); in LookupStrongLocked()
127 ObjPtr<mirror::String> InternTable::InsertStrong(ObjPtr<mirror::String> s) { in InsertStrong() argument
130 runtime->RecordStrongStringInsertion(s); in InsertStrong()
133 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
135 strong_interns_.Insert(s); in InsertStrong()
136 return s; in InsertStrong()
139 ObjPtr<mirror::String> InternTable::InsertWeak(ObjPtr<mirror::String> s) { in InsertWeak() argument
142 runtime->RecordWeakStringInsertion(s); in InsertWeak()
144 weak_interns_.Insert(s); in InsertWeak()
145 return s; in InsertWeak()
148 void InternTable::RemoveStrong(ObjPtr<mirror::String> s) { in RemoveStrong() argument
149 strong_interns_.Remove(s); in RemoveStrong()
152 void InternTable::RemoveWeak(ObjPtr<mirror::String> s) { in RemoveWeak() argument
155 runtime->RecordWeakStringRemoval(s); in RemoveWeak()
157 weak_interns_.Remove(s); in RemoveWeak()
161 ObjPtr<mirror::String> InternTable::InsertStrongFromTransaction(ObjPtr<mirror::String> s) { in InsertStrongFromTransaction() argument
163 return InsertStrong(s); in InsertStrongFromTransaction()
166 ObjPtr<mirror::String> InternTable::InsertWeakFromTransaction(ObjPtr<mirror::String> s) { in InsertWeakFromTransaction() argument
168 return InsertWeak(s); in InsertWeakFromTransaction()
171 void InternTable::RemoveStrongFromTransaction(ObjPtr<mirror::String> s) { in RemoveStrongFromTransaction() argument
173 RemoveStrong(s); in RemoveStrongFromTransaction()
176 void InternTable::RemoveWeakFromTransaction(ObjPtr<mirror::String> s) { in RemoveWeakFromTransaction() argument
178 RemoveWeak(s); in RemoveWeakFromTransaction()
200 ObjPtr<mirror::String> InternTable::Insert(ObjPtr<mirror::String> s, in Insert() argument
203 if (s == nullptr) { in Insert()
221 ObjPtr<mirror::String> strong = LookupStrongLocked(s); in Insert()
234 auto h = hs.NewHandleWrapper(&s); in Insert()
243 ObjPtr<mirror::String> weak = LookupWeakLocked(s); in Insert()
253 return is_strong ? InsertStrong(s) : InsertWeak(s); in Insert()
260 ObjPtr<mirror::String> s = LookupStrong(self, utf16_length, utf8_data); in InternStrong() local
261 if (s != nullptr) { in InternStrong()
262 return s; in InternStrong()
273 ObjPtr<mirror::String> InternTable::InternStrongImageString(ObjPtr<mirror::String> s) { in InternStrongImageString() argument
275 return Insert(s, true, true); in InternStrongImageString()
288 ObjPtr<mirror::String> InternTable::InternStrong(ObjPtr<mirror::String> s) { in InternStrong() argument
289 return Insert(s, true, false); in InternStrong()
297 ObjPtr<mirror::String> InternTable::InternWeak(ObjPtr<mirror::String> s) { in InternWeak() argument
298 return Insert(s, false, false); in InternWeak()
301 bool InternTable::ContainsWeak(ObjPtr<mirror::String> s) { in ContainsWeak() argument
302 return LookupWeak(Thread::Current(), s) == s; in ContainsWeak()
380 void InternTable::Table::Remove(ObjPtr<mirror::String> s) { in Remove() argument
382 auto it = table.set_.find(GcRoot<mirror::String>(s)); in Remove()
388 LOG(FATAL) << "Attempting to remove non-interned string " << s->ToModifiedUtf8(); in Remove()
391 ObjPtr<mirror::String> InternTable::Table::Find(ObjPtr<mirror::String> s) { in Find() argument
394 auto it = table.set_.find(GcRoot<mirror::String>(s)); in Find()
417 void InternTable::Table::Insert(ObjPtr<mirror::String> s) { in Insert() argument
421 tables_.back().set_.insert(GcRoot<mirror::String>(s)); in Insert()