/third_party/node/deps/v8/src/strings/ |
D | unicode-decoder.cc | 24 unibrow::Utf8::State state = unibrow::Utf8::State::kAccept; in Utf8Decoder() 27 unibrow::uchar t = in Utf8Decoder() 28 unibrow::Utf8::ValueOfIncremental(&cursor, &state, &incomplete_char); in Utf8Decoder() 29 if (t != unibrow::Utf8::kIncomplete) { in Utf8Decoder() 30 is_one_byte = is_one_byte && t <= unibrow::Latin1::kMaxChar; in Utf8Decoder() 32 if (t > unibrow::Utf16::kMaxNonSurrogateCharCode) utf16_length_++; in Utf8Decoder() 36 unibrow::uchar t = unibrow::Utf8::ValueOfIncrementalFinish(&state); in Utf8Decoder() 37 if (t != unibrow::Utf8::kBufferEmpty) { in Utf8Decoder() 52 unibrow::Utf8::State state = unibrow::Utf8::State::kAccept; in Decode() 58 unibrow::uchar t = in Decode() [all …]
|
D | uri.cc | 50 base::uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor); in DecodeOctets() 51 if (value == unibrow::Utf8::kBadChar && in DecodeOctets() 57 static_cast<base::uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in DecodeOctets() 60 buffer->push_back(unibrow::Utf16::LeadSurrogate(value)); in DecodeOctets() 61 buffer->push_back(unibrow::Utf16::TrailSurrogate(value)); in DecodeOctets() 107 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoTwoByte() 108 uint8_t octets[unibrow::Utf8::kMaxEncodedSize]; in IntoTwoByte() 157 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte() 165 if (code > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte() 263 unibrow::Utf8::Encode(s, c, unibrow::Utf16::kNoPreviousCharacter, false); in EncodeSingle() [all …]
|
D | char-predicates.h | 46 return (c <= 0xFFFF) ? unibrow::ID_Start::Is(c) : false; in IsIdentifierStartSlow() 62 return unibrow::ID_Start::Is(c) || unibrow::ID_Continue::Is(c); in IsIdentifierPartSlow() 76 return unibrow::WhiteSpace::Is(c); in IsWhiteSpaceSlow() 85 return IsWhiteSpaceSlow(c) || unibrow::IsLineTerminator(c); in IsWhiteSpaceOrLineTerminatorSlow()
|
D | unicode-decoder.h | 25 if (*chars > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart() 31 DCHECK_EQ(unibrow::Utf8::kMaxOneByteChar, 0x7F); in NonAsciiStart() 42 if (*chars > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart()
|
D | unicode-inl.h | 12 namespace unibrow {
|
D | unicode.h | 17 namespace unibrow {
|
/third_party/node/deps/v8/src/parsing/ |
D | scanner-character-streams.cc | 52 const unibrow::uchar kUtf8Bom = 0xFEFF; 522 current_({0, {0, 0, 0, unibrow::Utf8::State::kAccept}}), in Utf8ExternalStreamingStream() 547 unibrow::Utf8::State state; 571 current_({0, {0, 0, 0, unibrow::Utf8::State::kAccept}}), in Utf8ExternalStreamingStream() 600 unibrow::Utf8::State state = chunk.start.state; in SkipToPosition() 610 unibrow::uchar t = in SkipToPosition() 611 unibrow::Utf8::ValueOfIncremental(&cursor, &state, &incomplete_char); in SkipToPosition() 612 if (t == unibrow::Utf8::kIncomplete) continue; in SkipToPosition() 615 if (t > unibrow::Utf16::kMaxNonSurrogateCharCode) chars++; in SkipToPosition() 622 unibrow::uchar t = in SkipToPosition() [all …]
|
D | scanner.cc | 214 AdvanceUntil([](base::uc32 c0) { return unibrow::IsLineTerminator(c0); }); in SkipSingleLineComment() 221 if (unibrow::IsLineTerminator(c0_) || c0_ == kEndOfInput) { in SkipSourceURLComment() 258 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment() 266 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment() 283 return unibrow::IsLineTerminator(c0); in SkipMultiLineComment() 297 if (unibrow::IsLineTerminator(c0_)) { in SkipMultiLineComment() 378 DCHECK(!unibrow::IsLineTerminator(kEndOfInput)); in ScanEscape() 379 if (!capture_raw && unibrow::IsLineTerminator(c)) { in ScanEscape() 462 if (V8_UNLIKELY(unibrow::IsStringLiteralLineTerminator(c0))) { in ScanString() 488 unibrow::IsStringLiteralLineTerminator(c0_))) { in ScanString() [all …]
|
D | literal-buffer.cc | 72 static_cast<base::uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in AddTwoByteChar() 77 unibrow::Utf16::LeadSurrogate(code_unit); in AddTwoByteChar() 81 unibrow::Utf16::TrailSurrogate(code_unit); in AddTwoByteChar()
|
D | scanner.h | 541 DCHECK(!unibrow::Utf16::IsLeadSurrogate(kEndOfInput)); in CombineSurrogatePair() 542 if (unibrow::Utf16::IsLeadSurrogate(c0_)) { in CombineSurrogatePair() 544 DCHECK(!unibrow::Utf16::IsTrailSurrogate(kEndOfInput)); in CombineSurrogatePair() 545 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in CombineSurrogatePair() 546 c0_ = unibrow::Utf16::CombineSurrogatePair(c0_, c1); in CombineSurrogatePair() 556 base::IsInRange(c0_, 0u, unibrow::Utf16::kMaxNonSurrogateCharCode)); in PushBack()
|
D | func-name-inferrer.cc | 21 if (!name->IsEmpty() && unibrow::Uppercase::Is(name->FirstCharacter())) { in PushEnclosingName()
|
D | literal-buffer.h | 32 if (code_unit <= static_cast<base::uc32>(unibrow::Latin1::kMaxChar)) { in AddChar()
|
/third_party/node/deps/v8/src/regexp/ |
D | regexp-compiler-tonode.cc | 28 constexpr int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar; 279 base::uc16 from_l = unibrow::Utf16::LeadSurrogate(from); in AddNonBmpSurrogatePairs() 280 base::uc16 from_t = unibrow::Utf16::TrailSurrogate(from); in AddNonBmpSurrogatePairs() 281 base::uc16 to_l = unibrow::Utf16::LeadSurrogate(to); in AddNonBmpSurrogatePairs() 282 base::uc16 to_t = unibrow::Utf16::TrailSurrogate(to); in AddNonBmpSurrogatePairs() 549 unibrow::uchar Canonical( in Canonical() 550 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize, in Canonical() 551 unibrow::uchar c) { in Canonical() 552 unibrow::uchar chars[unibrow::Ecma262Canonicalize::kMaxWidth]; in Canonical() 555 unibrow::uchar canonical = c; in Canonical() [all …]
|
D | regexp-parser.cc | 389 DCHECK(!unibrow::Utf16::IsLeadSurrogate(c0)); in ReadNext() 403 unibrow::Utf16::IsLeadSurrogate(c0)) { in ReadNext() 405 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in ReadNext() 406 result = unibrow::Utf16::CombineSurrogatePair(c0, c1); in ReadNext() 450 current() > unibrow::Utf16::kMaxNonSurrogateCharCode ? -2 : -1; in RewindByOneCodepoint() 1063 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit() 1066 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit() 1067 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit() 1409 if (result && unicode() && unibrow::Utf16::IsLeadSurrogate(*value) && in ParseUnicodeEscape() 1417 unibrow::Utf16::IsTrailSurrogate(trail)) { in ParseUnicodeEscape() [all …]
|
D | regexp-macro-assembler.cc | 86 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize = in CaseInsensitiveCompareUnicode() 89 unibrow::uchar c1 = substring1[i]; in CaseInsensitiveCompareUnicode() 90 unibrow::uchar c2 = substring2[i]; in CaseInsensitiveCompareUnicode() 92 unibrow::uchar s1[1] = {c1}; in CaseInsensitiveCompareUnicode() 95 unibrow::uchar s2[1] = {c2}; in CaseInsensitiveCompareUnicode()
|
D | regexp-compiler.cc | 742 bool ContainsOnlyUtf16CodeUnits(unibrow::uchar* chars, int length) { in ContainsOnlyUtf16CodeUnits() 743 STATIC_ASSERT(sizeof(unibrow::uchar) == 4); in ContainsOnlyUtf16CodeUnits() 754 bool one_byte_subject, unibrow::uchar* letters, in GetCaseIndependentLetters() 785 letters[items++] = static_cast<unibrow::uchar>(cu); in GetCaseIndependentLetters() 835 unibrow::uchar chars[4]; in EmitAtomNonLetter() 895 unibrow::uchar chars[4]; in EmitAtomLetter() 1604 unibrow::uchar chars[4]; in GetQuickCheckDetails() 1882 c = unibrow::Latin1::TryConvertToLatin1(c); in FilterOneByte() 1884 if (c > unibrow::Latin1::kMaxChar) return set_replacement(nullptr); in FilterOneByte() 2357 quark = unibrow::Latin1::TryConvertToLatin1(quark); in TextEmitPass() [all …]
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-string.cc | 95 static_cast<base::uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in BUILTIN() 98 two_byte_buffer.push_back(unibrow::Utf16::LeadSurrogate(code)); in BUILTIN() 99 two_byte_buffer.push_back(unibrow::Utf16::TrailSurrogate(code)); in BUILTIN() 250 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCaseHelper() 266 unibrow::uchar chars[Converter::kMaxWidth]; in ConvertCaseHelper() 347 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCase()
|
/third_party/node/deps/v8/src/json/ |
D | json-parser.cc | 304 } else if (c <= unibrow::Latin1::kMaxChar) { in ReportUnexpectedCharacter() 341 JsonToken current = V8_LIKELY(c <= unibrow::Latin1::kMaxChar) in SkipWhitespace() 921 static_cast<int32_t>(unibrow::Latin1::kMaxChar)) && in ParseJsonNumber() 945 static_cast<int32_t>(unibrow::Latin1::kMaxChar)) || in ParseJsonNumber() 1105 static_cast<base::uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in DecodeString() 1108 *sink++ = unibrow::Utf16::LeadSurrogate(value); in DecodeString() 1109 *sink++ = unibrow::Utf16::TrailSurrogate(value); in DecodeString() 1131 if (sizeof(Char) == 2 && V8_UNLIKELY(c > unibrow::Latin1::kMaxChar)) { in ScanJsonString() 1148 bool convert = sizeof(Char) == 1 ? bits > unibrow::Latin1::kMaxChar in ScanJsonString() 1149 : bits <= unibrow::Latin1::kMaxChar; in ScanJsonString() [all …]
|
/third_party/node/deps/v8/src/runtime/ |
D | runtime.h | 851 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { in to_upper_mapping() 854 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { in to_lower_mapping() 871 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_; 872 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
|
/third_party/node/deps/v8/src/execution/ |
D | isolate.h | 1276 unibrow::Mapping<unibrow::Ecma262UnCanonicalize>* jsregexp_uncanonicalize() { in jsregexp_uncanonicalize() 1280 unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange() { in jsregexp_canonrange() 1284 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 2128 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 2129 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 2130 unibrow::Mapping<unibrow::Ecma262Canonicalize>
|
/third_party/node/deps/v8/src/objects/ |
D | string.h | 476 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar; 477 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar; 538 if (*chars > unibrow::Latin1::kMaxChar) { in NonOneByteStart() 545 STATIC_ASSERT(unibrow::Latin1::kMaxChar == 0xFF); in NonOneByteStart() 561 if (*chars > unibrow::Latin1::kMaxChar) { in NonOneByteStart()
|
D | js-regexp.cc | 256 return unibrow::IsLineTerminator(static_cast<unibrow::uchar>(c)); in IsLineTerminator()
|
D | string.cc | 800 int last = unibrow::Utf16::kNoPreviousCharacter; in ToCString() 803 utf8_bytes += unibrow::Utf8::Length(character, last); in ToCString() 817 last = unibrow::Utf16::kNoPreviousCharacter; in ToCString() 824 unibrow::Utf8::Encode(result + utf8_byte_position, character, last); in ToCString()
|
/third_party/node/deps/v8/src/regexp/experimental/ |
D | experimental-interpreter.cc | 37 return unibrow::IsLineTerminator(context[position - 1]); in SatisfiesAssertion() 40 return unibrow::IsLineTerminator(context[position]); in SatisfiesAssertion()
|
/third_party/node/deps/v8/tools/debug_helper/ |
D | get-object-properties.cc | 234 string_.size() * unibrow::Utf16::kMaxExtraUtf8BytesForOneUtf16CodeUnit); in GetString() 236 int prev_char = unibrow::Utf16::kNoPreviousCharacter; in GetString() 240 unibrow::Utf8::Encode(result.data() + write_index, character, in GetString()
|