Home
last modified time | relevance | path

Searched refs:unibrow (Results 1 – 25 of 28) sorted by relevance

12

/external/v8/src/
Dunicode-cache.h20 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<WhiteSpace, 128> kIsWhiteSpace;
[all …]
Dunicode-cache-inl.h14 bool UnicodeCache::IsIdentifierStart(unibrow::uchar c) { in IsIdentifierStart()
19 bool UnicodeCache::IsIdentifierPart(unibrow::uchar c) { in IsIdentifierPart()
23 bool UnicodeCache::IsLineTerminatorSequence(unibrow::uchar c, in IsLineTerminatorSequence()
24 unibrow::uchar next) { in IsLineTerminatorSequence()
25 if (!unibrow::IsLineTerminator(c)) return false; in IsLineTerminatorSequence()
31 bool UnicodeCache::IsWhiteSpace(unibrow::uchar c) { in IsWhiteSpace()
36 bool UnicodeCache::IsWhiteSpaceOrLineTerminator(unibrow::uchar c) { in IsWhiteSpaceOrLineTerminator()
Duri.cc50 uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor); in DecodeOctets()
51 if (value == unibrow::Utf8::kBadChar && in DecodeOctets()
56 if (value <= static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in DecodeOctets()
59 buffer->push_back(unibrow::Utf16::LeadSurrogate(value)); in DecodeOctets()
60 buffer->push_back(unibrow::Utf16::TrailSurrogate(value)); in DecodeOctets()
105 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoTwoByte()
106 uint8_t octets[unibrow::Utf8::kMaxEncodedSize]; in IntoTwoByte()
155 if (decoded > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte()
163 if (code > unibrow::Utf8::kMaxOneByteChar) { in IntoOneAndTwoByte()
255 unibrow::Utf8::Encode(s, c, unibrow::Utf16::kNoPreviousCharacter, false); in EncodeSingle()
[all …]
Dchar-predicates.h41 return (c <= 0xFFFF) ? unibrow::ID_Start::Is(c) : false;
59 return unibrow::ID_Start::Is(c) || unibrow::ID_Continue::Is(c);
74 static inline bool Is(uc32 c) { return unibrow::WhiteSpace::Is(c); }
83 return WhiteSpace::Is(c) || unibrow::IsLineTerminator(c); in Is()
Disolate.h1059 unibrow::Mapping<unibrow::Ecma262UnCanonicalize>* jsregexp_uncanonicalize() { in jsregexp_uncanonicalize()
1063 unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange() { in jsregexp_canonrange()
1071 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
1085 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
1700 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1701 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1702 unibrow::Mapping<unibrow::Ecma262Canonicalize>
Dunicode-decoder.cc11 namespace unibrow { namespace
Dunicode-decoder.h15 namespace unibrow {
Dunicode-inl.h12 namespace unibrow {
Dunicode.h17 namespace unibrow {
Dapi.cc5405 int last_character = unibrow::Utf16::kNoPreviousCharacter; in Utf8Length()
5407 utf8_length += unibrow::Utf8::Length(c, last_character); in Utf8Length()
5422 last_character_(unibrow::Utf16::kNoPreviousCharacter), in Utf8WriterVisitor()
5440 if (unibrow::Utf16::IsSurrogatePair(last_character, character)) { in WriteEndCharacter()
5441 int written = unibrow::Utf8::Encode(buffer, character, last_character, in WriteEndCharacter()
5447 char temp_buffer[unibrow::Utf8::kMaxEncodedSize]; in WriteEndCharacter()
5449 int written = unibrow::Utf8::Encode(temp_buffer, character, in WriteEndCharacter()
5450 unibrow::Utf16::kNoPreviousCharacter, in WriteEndCharacter()
5478 ? unibrow::Utf16::kNoPreviousCharacter in Visit()
5489 STATIC_ASSERT(unibrow::Utf16::kMaxExtraUtf8BytesForOneUtf16CodeUnit == in Visit()
[all …]
Dunicode.cc16 namespace unibrow { namespace
/external/v8/src/parsing/
Dscanner-character-streams.cc19 const unibrow::uchar kUtf8Bom = 0xFEFF;
173 unibrow::uchar t = unibrow::Utf8::ValueOfIncrementalFinish(&state_); in ProcessChunk()
174 if (t != unibrow::Utf8::kBufferEmpty) { in ProcessChunk()
175 DCHECK_EQ(t, unibrow::Utf8::kBadChar); in ProcessChunk()
178 result[0] = unibrow::Utf8::kBadChar; in ProcessChunk()
189 unibrow::Utf8::State state = state_; in ProcessChunk()
196 unibrow::uchar t = unibrow::Utf8::ValueOfIncremental(data[i], &i, &state, in ProcessChunk()
201 } else if (t != unibrow::Utf8::kIncomplete) { in ProcessChunk()
203 if (t > unibrow::Utf16::kMaxNonSurrogateCharCode) chars++; in ProcessChunk()
225 unibrow::uchar t = unibrow::Utf8::ValueOfIncremental(data[i], &i, &state_, in ProcessChunk()
[all …]
Dscanner.cc111 static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in AddTwoByteChar()
116 unibrow::Utf16::LeadSurrogate(code_unit); in AddTwoByteChar()
120 unibrow::Utf16::TrailSurrogate(code_unit); in AddTwoByteChar()
429 AdvanceUntil([](uc32 c0_) { return unibrow::IsLineTerminator(c0_); }); in SkipSingleLineComment()
436 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in SkipSourceURLComment()
475 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
488 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
502 DCHECK(!unibrow::IsLineTerminator(kEndOfInput)); in SkipMultiLineComment()
503 if (!HasLineTerminatorBeforeNext() && unibrow::IsLineTerminator(c0_)) { in SkipMultiLineComment()
856 DCHECK(!unibrow::IsLineTerminator(kEndOfInput)); in ScanEscape()
[all …]
Dscanner.h432 if (code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in AddChar()
617 DCHECK(!unibrow::Utf16::IsLeadSurrogate(kEndOfInput)); in CombineSurrogatePair()
618 if (unibrow::Utf16::IsLeadSurrogate(c0_)) { in CombineSurrogatePair()
620 DCHECK(!unibrow::Utf16::IsTrailSurrogate(kEndOfInput)); in CombineSurrogatePair()
621 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in CombineSurrogatePair()
622 c0_ = unibrow::Utf16::CombineSurrogatePair(c0_, c1); in CombineSurrogatePair()
631 DCHECK_LE(c0_, static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)); in PushBack()
Dscanner-inl.h23 if (unibrow::IsLineTerminator(c0_)) { in SkipWhiteSpace()
Dfunc-name-inferrer.cc26 if (!name->IsEmpty() && unibrow::Uppercase::Is(name->FirstCharacter())) { in PushEnclosingName()
/external/v8/src/regexp/
Dregexp-macro-assembler.cc35 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize = in CaseInsensitiveCompareUC16()
50 if (unibrow::Utf16::IsLeadSurrogate(c1)) { in CaseInsensitiveCompareUC16()
53 if (!unibrow::Utf16::IsLeadSurrogate(c2)) return 0; in CaseInsensitiveCompareUC16()
57 if (unibrow::Utf16::IsTrailSurrogate(c1t) && in CaseInsensitiveCompareUC16()
58 unibrow::Utf16::IsTrailSurrogate(c2t)) { in CaseInsensitiveCompareUC16()
59 c1 = unibrow::Utf16::CombineSurrogatePair(c1, c1t); in CaseInsensitiveCompareUC16()
60 c2 = unibrow::Utf16::CombineSurrogatePair(c2, c2t); in CaseInsensitiveCompareUC16()
74 unibrow::uchar c1 = substring1[i]; in CaseInsensitiveCompareUC16()
75 unibrow::uchar c2 = substring2[i]; in CaseInsensitiveCompareUC16()
77 unibrow::uchar s1[1] = {c1}; in CaseInsensitiveCompareUC16()
[all …]
Dregexp-parser.cc57 unibrow::Utf16::IsLeadSurrogate(static_cast<uc16>(c0))) { in ReadNext()
59 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in ReadNext()
60 c0 = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(c0), c1); in ReadNext()
814 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit()
817 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit()
818 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit()
1146 if (result && unicode() && unibrow::Utf16::IsLeadSurrogate(*value) && in ParseUnicodeEscape()
1154 unibrow::Utf16::IsTrailSurrogate(trail)) { in ParseUnicodeEscape()
1155 *value = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(*value), in ParseUnicodeEscape()
1724 DCHECK(unibrow::Utf16::IsLeadSurrogate(lead_surrogate)); in AddLeadSurrogate()
[all …]
Djsregexp.cc660 unibrow::Utf16::IsLeadSurrogate(subject_->Get(last_index)) && in AdvanceZeroLength()
661 unibrow::Utf16::IsTrailSurrogate(subject_->Get(last_index + 1))) { in AdvanceZeroLength()
1550 unibrow::uchar* letters) { in GetCaseIndependentLetters()
1606 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in EmitAtomNonLetter()
1687 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in EmitAtomLetter()
1696 DCHECK_EQ(4, unibrow::Ecma262UnCanonicalize::kMaxWidth); in EmitAtomLetter()
2495 unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth]; in GetQuickCheckDetails()
2747 c = unibrow::Latin1::TryConvertToLatin1(c); in FilterOneByte()
2749 if (c > unibrow::Latin1::kMaxChar) return set_replacement(nullptr); in FilterOneByte()
3189 quark = unibrow::Latin1::TryConvertToLatin1(quark); in TextEmitPass()
[all …]
Dinterpreter-irregexp.cc26 typedef unibrow::Mapping<unibrow::Ecma262Canonicalize> Canonicalize;
/external/v8/src/runtime/
Druntime.h724 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { in to_upper_mapping()
727 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { in to_lower_mapping()
744 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_;
745 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
/external/v8/src/builtins/
Dbuiltins-string.cc90 if (code <= static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in BUILTIN()
93 two_byte_buffer.push_back(unibrow::Utf16::LeadSurrogate(code)); in BUILTIN()
94 two_byte_buffer.push_back(unibrow::Utf16::TrailSurrogate(code)); in BUILTIN()
350 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCaseHelper()
366 unibrow::uchar chars[Converter::kMaxWidth]; in ConvertCaseHelper()
447 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCase()
/external/v8/src/objects/
Dstring.h348 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar;
349 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar;
391 if (static_cast<uint8_t>(*chars) > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart()
397 DCHECK_EQ(unibrow::Utf8::kMaxOneByteChar, 0x7F); in NonAsciiStart()
408 if (static_cast<uint8_t>(*chars) > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart()
/external/v8/src/profiler/
Dheap-snapshot-generator.cc2909 static void WriteUChar(OutputStreamWriter* w, unibrow::uchar u) { in WriteUChar()
3067 unibrow::uchar c = unibrow::Utf8::CalculateValue(s, length, &cursor); in SerializeString()
3068 if (c != unibrow::Utf8::kBadChar) { in SerializeString()
/external/v8/src/wasm/
Dmodule-decoder.cc95 return unibrow::Utf8::ValidateEncoding( in validate_utf8()
134 !unibrow::Utf8::ValidateEncoding(string_start, length)) { in consume_string()

12