Home
last modified time | relevance | path

Searched refs:utf16_length (Results 1 – 3 of 3) sorted by relevance

/external/v8/src/
Dunicode.cc270 unsigned utf16_length = 0; in Reset() local
278 utf16_length += is_two_characters ? 2 : 1; in Reset()
283 if (utf16_length <= buffer_length) { in Reset()
290 if (utf16_length == buffer_length) { in Reset()
304 utf16_length_ = utf16_length; in Reset()
Dfactory.cc243 int utf16_length = decoder->Utf16Length(); in NewStringFromUtf8() local
244 DCHECK(utf16_length > 0); in NewStringFromUtf8()
249 NewRawTwoByteString(non_ascii_start + utf16_length, pretenure), in NewStringFromUtf8()
258 decoder->WriteUtf16(data, utf16_length); in NewStringFromUtf8()
Dobjects.cc8962 int utf16_length = 0; in ComputeUtf8Hash() local
8972 utf16_length += is_two_characters ? 2 : 1; in ComputeUtf8Hash()
8974 if (utf16_length > String::kMaxHashCalcLength) continue; in ComputeUtf8Hash()
8987 *utf16_length_out = static_cast<int>(utf16_length); in ComputeUtf8Hash()
8989 hasher.length_ = utf16_length; in ComputeUtf8Hash()