Home
last modified time | relevance | path

Searched refs:utf8_data (Results 1 – 5 of 5) sorted by relevance

/art/runtime/
Dintern_table.cc104 const char* utf8_data) { in LookupStrong() argument
105 DCHECK_EQ(utf16_length, CountModifiedUtf8Chars(utf8_data)); in LookupStrong()
107 utf8_data, in LookupStrong()
108 ComputeUtf16HashFromModifiedUtf8(utf8_data, utf16_length)); in LookupStrong()
256 ObjPtr<mirror::String> InternTable::InternStrong(int32_t utf16_length, const char* utf8_data) { in InternStrong() argument
257 DCHECK(utf8_data != nullptr); in InternStrong()
260 ObjPtr<mirror::String> s = LookupStrong(self, utf16_length, utf8_data); in InternStrong()
265 self, utf16_length, utf8_data)); in InternStrong()
268 ObjPtr<mirror::String> InternTable::InternStrong(const char* utf8_data) { in InternStrong() argument
269 DCHECK(utf8_data != nullptr); in InternStrong()
[all …]
Dintern_table.h62 Utf8String(uint32_t utf16_length, const char* utf8_data, int32_t hash) in Utf8String() argument
63 : hash_(hash), utf16_length_(utf16_length), utf8_data_(utf8_data) { } in Utf8String()
115 ObjPtr<mirror::String> InternStrong(int32_t utf16_length, const char* utf8_data)
128 ObjPtr<mirror::String> InternStrong(const char* utf8_data) REQUIRES_SHARED(Locks::mutator_lock_)
137 ObjPtr<mirror::String> InternWeak(const char* utf8_data) REQUIRES_SHARED(Locks::mutator_lock_)
154 ObjPtr<mirror::String> LookupStrong(Thread* self, uint32_t utf16_length, const char* utf8_data)
Dclass_linker.cc8918 const char* utf8_data = dex_file.StringDataAndUtf16LengthByIdx(string_idx, &utf16_length); in DoResolveString() local
8919 ObjPtr<mirror::String> string = intern_table_->InternStrong(utf16_length, utf8_data); in DoResolveString()
8931 const char* utf8_data = dex_file.StringDataAndUtf16LengthByIdx(string_idx, &utf16_length); in DoLookupString() local
8933 intern_table_->LookupStrong(Thread::Current(), utf16_length, utf8_data); in DoLookupString()
/art/libdexfile/dex/
Ddex_file-inl.h35 inline std::string_view StringViewFromUtf16Length(const char* utf8_data, size_t utf16_length) { in StringViewFromUtf16Length() argument
36 size_t utf8_length = LIKELY(utf8_data[utf16_length] == 0) // Is ASCII? in StringViewFromUtf16Length()
38 : utf16_length + strlen(utf8_data + utf16_length); in StringViewFromUtf16Length()
39 return std::string_view(utf8_data, utf8_length); in StringViewFromUtf16Length()
/art/dex2oat/linker/
Dimage_writer.cc1965 const char* utf8_data = dex_file->StringDataAndUtf16LengthByIdx(dex::StringIndex(i), in ProcessInterns() local
1967 int32_t hash = ComputeUtf16HashFromModifiedUtf8(utf8_data, utf16_length); in ProcessInterns()
1968 InternTable::Utf8String utf8_string(utf16_length, utf8_data, hash); in ProcessInterns()