Searched refs:utf8_data (Results 1 – 7 of 7) sorted by relevance
/art/runtime/ |
D | intern_table.cc | 124 const char* utf8_data) { in LookupStrong() argument 125 uint32_t hash = Utf8String::Hash(utf16_length, utf8_data); in LookupStrong() 127 return strong_interns_.Find(Utf8String(utf16_length, utf8_data), hash); in LookupStrong() 253 ObjPtr<mirror::String> InternTable::InternStrong(uint32_t utf16_length, const char* utf8_data) { in InternStrong() argument 254 DCHECK(utf8_data != nullptr); in InternStrong() 255 uint32_t hash = Utf8String::Hash(utf16_length, utf8_data); in InternStrong() 264 s = strong_interns_.Find(Utf8String(utf16_length, utf8_data), hash); in InternStrong() 269 bool is_ascii = (utf8_data[utf16_length] == 0); in InternStrong() 270 int32_t utf8_length = utf16_length + (LIKELY(is_ascii) ? 0 : strlen(utf8_data + utf16_length)); in InternStrong() 271 DCHECK_EQ(static_cast<size_t>(utf8_length), strlen(utf8_data)); in InternStrong() [all …]
|
D | intern_table-inl.h | 32 inline uint32_t InternTable::Utf8String::Hash(uint32_t utf16_length, const char* utf8_data) { in Hash() argument 33 DCHECK_EQ(utf16_length, CountModifiedUtf8Chars(utf8_data)); in Hash() 34 if (LIKELY(utf8_data[utf16_length] == 0)) { in Hash() 35 int32_t hash = ComputeUtf16Hash(utf8_data, utf16_length); in Hash() 36 DCHECK_EQ(hash, ComputeUtf16HashFromModifiedUtf8(utf8_data, utf16_length)); in Hash() 39 return ComputeUtf16HashFromModifiedUtf8(utf8_data, utf16_length); in Hash()
|
D | intern_table.h | 64 Utf8String(uint32_t utf16_length, const char* utf8_data) in Utf8String() argument 65 : utf16_length_(utf16_length), utf8_data_(utf8_data) { } in Utf8String() 71 static uint32_t Hash(uint32_t utf16_length, const char* utf8_data); 123 EXPORT ObjPtr<mirror::String> InternStrong(uint32_t utf16_length, const char* utf8_data) 127 EXPORT ObjPtr<mirror::String> InternStrong(const char* utf8_data) 135 ObjPtr<mirror::String> InternWeak(const char* utf8_data) REQUIRES_SHARED(Locks::mutator_lock_) 149 ObjPtr<mirror::String> LookupStrong(Thread* self, uint32_t utf16_length, const char* utf8_data)
|
D | class_linker.cc | 9913 const char* utf8_data = dex_file.GetStringDataAndUtf16Length(string_idx, &utf16_length); in DoResolveString() local 9914 ObjPtr<mirror::String> string = intern_table_->InternStrong(utf16_length, utf8_data); in DoResolveString() 9926 const char* utf8_data = dex_file.GetStringDataAndUtf16Length(string_idx, &utf16_length); in DoLookupString() local 9928 intern_table_->LookupStrong(Thread::Current(), utf16_length, utf8_data); in DoLookupString()
|
/art/libdexfile/dex/ |
D | dex_file-inl.h | 49 inline std::string_view DexFile::StringViewFromUtf16Length(const char* utf8_data, in StringViewFromUtf16Length() argument 51 size_t utf8_length = LIKELY(utf8_data[utf16_length] == 0) // Is ASCII? in StringViewFromUtf16Length() 53 : utf16_length + strlen(utf8_data + utf16_length); in StringViewFromUtf16Length() 54 return std::string_view(utf8_data, utf8_length); in StringViewFromUtf16Length()
|
D | dex_file.h | 914 static std::string_view StringViewFromUtf16Length(const char* utf8_data, size_t utf16_length);
|
/art/dex2oat/linker/ |
D | image_writer.cc | 2091 const char* utf8_data = dex_file->GetStringDataAndUtf16Length(dex::StringIndex(i), in ProcessInterns() local 2093 uint32_t hash = InternTable::Utf8String::Hash(utf16_length, utf8_data); in ProcessInterns() 2095 intern_set.FindWithHash(InternTable::Utf8String(utf16_length, utf8_data), hash); in ProcessInterns()
|