/external/v8/src/ |
D | unicode-cache.h | 20 typedef unibrow::Utf8Decoder<512> Utf8Decoder; 24 inline bool IsIdentifierStart(unibrow::uchar c); 25 inline bool IsIdentifierPart(unibrow::uchar c); 26 inline bool IsLineTerminator(unibrow::uchar c); 27 inline bool IsLineTerminatorSequence(unibrow::uchar c, unibrow::uchar next); 29 inline bool IsWhiteSpace(unibrow::uchar c); 30 inline bool IsWhiteSpaceOrLineTerminator(unibrow::uchar c); 33 unibrow::Predicate<IdentifierStart, 128> kIsIdentifierStart; 34 unibrow::Predicate<IdentifierPart, 128> kIsIdentifierPart; 35 unibrow::Predicate<unibrow::LineTerminator, 128> kIsLineTerminator; [all …]
|
D | unicode-cache-inl.h | 14 bool UnicodeCache::IsIdentifierStart(unibrow::uchar c) { in IsIdentifierStart() 19 bool UnicodeCache::IsIdentifierPart(unibrow::uchar c) { in IsIdentifierPart() 24 bool UnicodeCache::IsLineTerminator(unibrow::uchar c) { in IsLineTerminator() 29 bool UnicodeCache::IsLineTerminatorSequence(unibrow::uchar c, in IsLineTerminatorSequence() 30 unibrow::uchar next) { in IsLineTerminatorSequence() 37 bool UnicodeCache::IsWhiteSpace(unibrow::uchar c) { in IsWhiteSpace() 42 bool UnicodeCache::IsWhiteSpaceOrLineTerminator(unibrow::uchar c) { in IsWhiteSpaceOrLineTerminator()
|
D | uri.cc | 48 uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor); in DecodeOctets() 49 if (value == unibrow::Utf8::kBadChar && in DecodeOctets() 54 if (value <= static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in DecodeOctets() 57 buffer->Add(unibrow::Utf16::LeadSurrogate(value)); in DecodeOctets() 58 buffer->Add(unibrow::Utf16::TrailSurrogate(value)); in DecodeOctets() 103 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoTwoByte() 104 uint8_t octets[unibrow::Utf8::kMaxEncodedSize]; in IntoTwoByte() 153 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte() 161 if (code > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte() 253 unibrow::Utf8::Encode(s, c, unibrow::Utf16::kNoPreviousCharacter, false); in EncodeSingle() [all …]
|
D | char-predicates.h | 44 return unibrow::ID_Start::Is(c); in Is() 58 return unibrow::ID_Start::Is(c) || unibrow::ID_Continue::Is(c); in Is() 70 static inline bool Is(uc32 c) { return unibrow::WhiteSpace::Is(c); } in Is() 78 return WhiteSpace::Is(c) || unibrow::LineTerminator::Is(c); in Is()
|
D | isolate.h | 896 unibrow::Mapping<unibrow::Ecma262UnCanonicalize>* jsregexp_uncanonicalize() { in jsregexp_uncanonicalize() 900 unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange() { in jsregexp_canonrange() 914 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 923 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 1341 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1342 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1343 unibrow::Mapping<unibrow::Ecma262Canonicalize>
|
D | unicode-decoder.cc | 11 namespace unibrow { namespace 72 if (character > unibrow::Utf16::kMaxNonSurrogateCharCode) { in WriteUtf16Slow()
|
D | unicode-decoder.h | 12 namespace unibrow {
|
D | unicode-inl.h | 12 namespace unibrow {
|
D | unicode.h | 16 namespace unibrow {
|
D | log.cc | 90 int previous = unibrow::Utf16::kNoPreviousCharacter; in AppendString() 93 if (c <= unibrow::Utf8::kMaxOneByteChar) { in AppendString() 96 int char_length = unibrow::Utf8::Length(c, previous); in AppendString() 98 unibrow::Utf8::Encode(utf8_buffer_ + utf8_pos_, c, previous); in AppendString()
|
D | api.cc | 5315 int last_character = unibrow::Utf16::kNoPreviousCharacter; in VisitTwoByteString() 5318 utf8_length += unibrow::Utf8::Length(c, last_character); in VisitTwoByteString() 5323 if (unibrow::Utf16::IsTrailSurrogate(chars[0])) { in VisitTwoByteString() 5326 if (unibrow::Utf16::IsLeadSurrogate(chars[length-1])) { in VisitTwoByteString() 5357 *length -= unibrow::Utf8::kBytesSavedByCombiningSurrogates; in MergeLeafLeft() 5375 *length -= unibrow::Utf8::kBytesSavedByCombiningSurrogates; in MergeLeafRight() 5390 *length -= unibrow::Utf8::kBytesSavedByCombiningSurrogates; in MergeTerminal() 5484 last_character_(unibrow::Utf16::kNoPreviousCharacter), in Utf8WriterVisitor() 5502 if (unibrow::Utf16::IsSurrogatePair(last_character, character)) { in WriteEndCharacter() 5503 int written = unibrow::Utf8::Encode(buffer, character, last_character, in WriteEndCharacter() [all …]
|
D | unicode.cc | 12 namespace unibrow { namespace
|
/external/v8/src/regexp/ |
D | regexp-macro-assembler.cc | 34 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize = in CaseInsensitiveCompareUC16() 49 if (unibrow::Utf16::IsLeadSurrogate(c1)) { in CaseInsensitiveCompareUC16() 52 if (!unibrow::Utf16::IsLeadSurrogate(c2)) return 0; in CaseInsensitiveCompareUC16() 56 if (unibrow::Utf16::IsTrailSurrogate(c1t) && in CaseInsensitiveCompareUC16() 57 unibrow::Utf16::IsTrailSurrogate(c2t)) { in CaseInsensitiveCompareUC16() 58 c1 = unibrow::Utf16::CombineSurrogatePair(c1, c1t); in CaseInsensitiveCompareUC16() 59 c2 = unibrow::Utf16::CombineSurrogatePair(c2, c2t); in CaseInsensitiveCompareUC16() 73 unibrow::uchar c1 = substring1[i]; in CaseInsensitiveCompareUC16() 74 unibrow::uchar c2 = substring2[i]; in CaseInsensitiveCompareUC16() 76 unibrow::uchar s1[1] = {c1}; in CaseInsensitiveCompareUC16() [all …]
|
D | regexp-parser.cc | 53 unibrow::Utf16::IsLeadSurrogate(static_cast<uc16>(c0))) { in ReadNext() 55 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in ReadNext() 56 c0 = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(c0), c1); in ReadNext() 712 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit() 715 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit() 716 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit() 1030 if (result && unicode() && unibrow::Utf16::IsLeadSurrogate(*value) && in ParseUnicodeEscape() 1038 unibrow::Utf16::IsTrailSurrogate(trail)) { in ParseUnicodeEscape() 1039 *value = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(*value), in ParseUnicodeEscape() 1524 DCHECK(unibrow::Utf16::IsLeadSurrogate(lead_surrogate)); in AddLeadSurrogate() [all …]
|
D | jsregexp.cc | 704 unibrow::Utf16::IsLeadSurrogate(subject_->Get(last_index)) && in AdvanceZeroLength() 705 unibrow::Utf16::IsTrailSurrogate(subject_->Get(last_index + 1))) { in AdvanceZeroLength() 1609 unibrow::uchar* letters) { in GetCaseIndependentLetters() 1665 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in EmitAtomNonLetter() 1746 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in EmitAtomLetter() 1755 DCHECK(unibrow::Ecma262UnCanonicalize::kMaxWidth == 4); in EmitAtomLetter() 2560 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in GetQuickCheckDetails() 2818 uint16_t converted = unibrow::Latin1::ConvertNonLatin1ToLatin1(c); in FilterOneByte() 4969 uc16 from_l = unibrow::Utf16::LeadSurrogate(from); in AddNonBmpSurrogatePairs() 4970 uc16 from_t = unibrow::Utf16::TrailSurrogate(from); in AddNonBmpSurrogatePairs() [all …]
|
D | interpreter-irregexp.cc | 25 typedef unibrow::Mapping<unibrow::Ecma262Canonicalize> Canonicalize;
|
/external/v8/src/parsing/ |
D | scanner-character-streams.cc | 18 const unibrow::uchar kUtf8Bom = 0xfeff; 198 : current_({0, {0, 0, unibrow::Utf8::Utf8IncrementalBuffer(0)}}), in Utf8ExternalStreamingStream() 215 unibrow::Utf8::Utf8IncrementalBuffer incomplete_char; 259 unibrow::Utf8::Utf8IncrementalBuffer incomplete_char = in SkipToPosition() 264 unibrow::uchar t = in SkipToPosition() 265 unibrow::Utf8::ValueOfIncremental(chunk.data[it], &incomplete_char); in SkipToPosition() 268 } else if (t != unibrow::Utf8::kIncomplete) { in SkipToPosition() 270 if (t > unibrow::Utf16::kMaxNonSurrogateCharCode) chars++; in SkipToPosition() 298 unibrow::uchar t = in FillBufferFromCurrentChunk() 299 unibrow::Utf8::ValueOfIncrementalFinish(¤t_.pos.incomplete_char); in FillBufferFromCurrentChunk() [all …]
|
D | scanner.h | 372 if (code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in INLINE() 380 static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in INLINE() 385 unibrow::Utf16::LeadSurrogate(code_unit); in INLINE() 389 unibrow::Utf16::TrailSurrogate(code_unit); in INLINE() 602 if (unibrow::Utf16::IsLeadSurrogate(c0_)) { in HandleLeadSurrogate() 604 if (!unibrow::Utf16::IsTrailSurrogate(c1)) { in HandleLeadSurrogate() 607 c0_ = unibrow::Utf16::CombineSurrogatePair(c0_, c1); in HandleLeadSurrogate() 613 if (c0_ > static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in PushBack()
|
D | func-name-inferrer.cc | 28 if (!name->IsEmpty() && unibrow::Uppercase::Is(name->FirstCharacter())) { in PushEnclosingName()
|
/external/v8/src/runtime/ |
D | runtime.h | 1094 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { in to_upper_mapping() 1097 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { in to_lower_mapping() 1112 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_; 1113 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
|
D | runtime-strings.cc | 588 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCaseHelper() 604 unibrow::uchar chars[Converter::kMaxWidth]; in ConvertCaseHelper() 801 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCase()
|
/external/v8/src/builtins/ |
D | builtins-string.cc | 604 if (code <= static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in BUILTIN() 607 two_byte_buffer.Add(unibrow::Utf16::LeadSurrogate(code)); in BUILTIN() 608 two_byte_buffer.Add(unibrow::Utf16::TrailSurrogate(code)); in BUILTIN()
|
/external/v8/src/profiler/ |
D | heap-snapshot-generator.cc | 2930 static void WriteUChar(OutputStreamWriter* w, unibrow::uchar u) { in WriteUChar() 3090 unibrow::uchar c = unibrow::Utf8::CalculateValue(s, length, &cursor); in SerializeString() 3091 if (c != unibrow::Utf8::kBadChar) { in SerializeString()
|
/external/v8/src/heap/ |
D | heap.cc | 3613 uint32_t c = unibrow::Utf8::ValueOf(stream, stream_length, &consumed); in WriteTwoByteData() 3614 DCHECK(c != unibrow::Utf8::kBadChar); in WriteTwoByteData() 3618 if (c > unibrow::Utf16::kMaxNonSurrogateCharCode) { in WriteTwoByteData() 3621 *chars++ = unibrow::Utf16::LeadSurrogate(c); in WriteTwoByteData() 3622 *chars++ = unibrow::Utf16::TrailSurrogate(c); in WriteTwoByteData()
|
/external/v8/src/wasm/ |
D | module-decoder.cc | 820 !unibrow::Utf8::Validate(string_start, *length)) { in consume_string()
|