Lines Matching refs:s
86 mirror::String* InternTable::LookupStrong(mirror::String* s) { in LookupStrong() argument
87 return strong_interns_.Find(s); in LookupStrong()
90 mirror::String* InternTable::LookupWeak(mirror::String* s) { in LookupWeak() argument
91 return weak_interns_.Find(s); in LookupWeak()
100 mirror::String* InternTable::InsertStrong(mirror::String* s) { in InsertStrong() argument
103 runtime->RecordStrongStringInsertion(s); in InsertStrong()
106 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
108 strong_interns_.Insert(s); in InsertStrong()
109 return s; in InsertStrong()
112 mirror::String* InternTable::InsertWeak(mirror::String* s) { in InsertWeak() argument
115 runtime->RecordWeakStringInsertion(s); in InsertWeak()
117 weak_interns_.Insert(s); in InsertWeak()
118 return s; in InsertWeak()
121 void InternTable::RemoveStrong(mirror::String* s) { in RemoveStrong() argument
122 strong_interns_.Remove(s); in RemoveStrong()
125 void InternTable::RemoveWeak(mirror::String* s) { in RemoveWeak() argument
128 runtime->RecordWeakStringRemoval(s); in RemoveWeak()
130 weak_interns_.Remove(s); in RemoveWeak()
134 mirror::String* InternTable::InsertStrongFromTransaction(mirror::String* s) { in InsertStrongFromTransaction() argument
136 return InsertStrong(s); in InsertStrongFromTransaction()
138 mirror::String* InternTable::InsertWeakFromTransaction(mirror::String* s) { in InsertWeakFromTransaction() argument
140 return InsertWeak(s); in InsertWeakFromTransaction()
142 void InternTable::RemoveStrongFromTransaction(mirror::String* s) { in RemoveStrongFromTransaction() argument
144 RemoveStrong(s); in RemoveStrongFromTransaction()
146 void InternTable::RemoveWeakFromTransaction(mirror::String* s) { in RemoveWeakFromTransaction() argument
148 RemoveWeak(s); in RemoveWeakFromTransaction()
185 mirror::String* InternTable::LookupStringFromImage(mirror::String* s) in LookupStringFromImage() argument
196 const std::string utf8 = s->ToModifiedUtf8(); in LookupStringFromImage()
234 mirror::String* InternTable::Insert(mirror::String* s, bool is_strong) { in Insert() argument
235 if (s == nullptr) { in Insert()
244 mirror::String* strong = LookupStrong(s); in Insert()
249 mirror::String* weak = LookupWeak(s); in Insert()
259 mirror::String* image = LookupStringFromImage(s); in Insert()
264 return is_strong ? InsertStrong(s) : InsertWeak(s); in Insert()
278 mirror::String* InternTable::InternStrong(mirror::String* s) { in InternStrong() argument
279 return Insert(s, true); in InternStrong()
282 mirror::String* InternTable::InternWeak(mirror::String* s) { in InternWeak() argument
283 return Insert(s, false); in InternWeak()
286 bool InternTable::ContainsWeak(mirror::String* s) { in ContainsWeak() argument
288 return LookupWeak(s) == s; in ContainsWeak()
345 void InternTable::Table::Remove(mirror::String* s) { in Remove() argument
346 auto it = post_zygote_table_.Find(GcRoot<mirror::String>(s)); in Remove()
350 it = pre_zygote_table_.Find(GcRoot<mirror::String>(s)); in Remove()
356 mirror::String* InternTable::Table::Find(mirror::String* s) { in Find() argument
358 auto it = pre_zygote_table_.Find(GcRoot<mirror::String>(s)); in Find()
362 it = post_zygote_table_.Find(GcRoot<mirror::String>(s)); in Find()
379 void InternTable::Table::Insert(mirror::String* s) { in Insert() argument
382 post_zygote_table_.Insert(GcRoot<mirror::String>(s)); in Insert()