Home
last modified time | relevance | path

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

/external/v8/src/
Dunicode-decoder.cc21 size_t utf16_length = 0; in Reset() local
29 utf16_length += is_two_characters ? 2 : 1; in Reset()
34 if (utf16_length <= buffer_length) { in Reset()
41 if (utf16_length == buffer_length) { in Reset()
57 utf16_length_ = utf16_length; in Reset()
Dfactory.cc288 int utf16_length = static_cast<int>(decoder->Utf16Length()); in NewStringFromUtf8() local
289 DCHECK(utf16_length > 0); in NewStringFromUtf8()
294 NewRawTwoByteString(non_ascii_start + utf16_length, pretenure), in NewStringFromUtf8()
303 decoder->WriteUtf16(data, utf16_length); in NewStringFromUtf8()
Dobjects.cc12164 int utf16_length = 0; in ComputeUtf8Hash() local
12174 utf16_length += is_two_characters ? 2 : 1; in ComputeUtf8Hash()
12176 if (utf16_length > String::kMaxHashCalcLength) continue; in ComputeUtf8Hash()
12189 *utf16_length_out = static_cast<int>(utf16_length); in ComputeUtf8Hash()
12191 hasher.length_ = utf16_length; in ComputeUtf8Hash()