Home
last modified time | relevance | path

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

12

/external/v8/src/strings/
Dunicode-decoder.cc24 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 …]
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()
261 unibrow::Utf8::Encode(s, c, unibrow::Utf16::kNoPreviousCharacter, false); in EncodeSingle()
[all …]
Dchar-predicates.h45 return (c <= 0xFFFF) ? unibrow::ID_Start::Is(c) : false; in IsIdentifierStartSlow()
61 return unibrow::ID_Start::Is(c) || unibrow::ID_Continue::Is(c); in IsIdentifierPartSlow()
74 inline bool IsWhiteSpaceSlow(uc32 c) { return unibrow::WhiteSpace::Is(c); } in IsWhiteSpaceSlow()
82 return IsWhiteSpaceSlow(c) || unibrow::IsLineTerminator(c); in IsWhiteSpaceOrLineTerminatorSlow()
Dunicode-decoder.h25 if (*chars > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart()
31 DCHECK_EQ(unibrow::Utf8::kMaxOneByteChar, 0x7F); in NonAsciiStart()
42 if (*chars > unibrow::Utf8::kMaxOneByteChar) { in NonAsciiStart()
Dunicode-inl.h12 namespace unibrow {
Dunicode.h17 namespace unibrow {
/external/v8/src/parsing/
Dscanner-character-streams.cc49 const unibrow::uchar kUtf8Bom = 0xFEFF;
429 : current_({0, {0, 0, 0, unibrow::Utf8::State::kAccept}}), in Utf8ExternalStreamingStream()
455 unibrow::Utf8::State state;
499 unibrow::Utf8::State state = chunk.start.state; in SkipToPosition()
509 unibrow::uchar t = in SkipToPosition()
510 unibrow::Utf8::ValueOfIncremental(&cursor, &state, &incomplete_char); in SkipToPosition()
511 if (t == unibrow::Utf8::kIncomplete) continue; in SkipToPosition()
514 if (t > unibrow::Utf16::kMaxNonSurrogateCharCode) chars++; in SkipToPosition()
521 unibrow::uchar t = in SkipToPosition()
522 unibrow::Utf8::ValueOfIncremental(&cursor, &state, &incomplete_char); in SkipToPosition()
[all …]
Dscanner.cc211 AdvanceUntil([](uc32 c0_) { return unibrow::IsLineTerminator(c0_); }); in SkipSingleLineComment()
218 if (unibrow::IsLineTerminator(c0_) || c0_ == kEndOfInput) { in SkipSourceURLComment()
255 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
268 while (c0_ != kEndOfInput && !unibrow::IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
285 return unibrow::IsLineTerminator(c0); in SkipMultiLineComment()
299 if (unibrow::IsLineTerminator(c0_)) { in SkipMultiLineComment()
380 DCHECK(!unibrow::IsLineTerminator(kEndOfInput)); in ScanEscape()
381 if (!capture_raw && unibrow::IsLineTerminator(c)) { in ScanEscape()
464 if (V8_UNLIKELY(unibrow::IsStringLiteralLineTerminator(c0))) { in ScanString()
490 unibrow::IsStringLiteralLineTerminator(c0_))) { in ScanString()
[all …]
Dliteral-buffer.cc70 static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in AddTwoByteChar()
75 unibrow::Utf16::LeadSurrogate(code_unit); in AddTwoByteChar()
79 unibrow::Utf16::TrailSurrogate(code_unit); in AddTwoByteChar()
Dscanner.h533 DCHECK(!unibrow::Utf16::IsLeadSurrogate(kEndOfInput)); in CombineSurrogatePair()
534 if (unibrow::Utf16::IsLeadSurrogate(c0_)) { in CombineSurrogatePair()
536 DCHECK(!unibrow::Utf16::IsTrailSurrogate(kEndOfInput)); in CombineSurrogatePair()
537 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in CombineSurrogatePair()
538 c0_ = unibrow::Utf16::CombineSurrogatePair(c0_, c1); in CombineSurrogatePair()
548 base::IsInRange(c0_, 0u, unibrow::Utf16::kMaxNonSurrogateCharCode)); in PushBack()
Dfunc-name-inferrer.cc21 if (!name->IsEmpty() && unibrow::Uppercase::Is(name->FirstCharacter())) { in PushEnclosingName()
Dliteral-buffer.h28 if (code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in AddChar()
Dscanner-inl.h328 if (!next().after_line_terminator && unibrow::IsLineTerminator(c0_)) { in SkipWhiteSpace()
/external/v8/src/regexp/
Dregexp-compiler-tonode.cc229 uc16 from_l = unibrow::Utf16::LeadSurrogate(from); in AddNonBmpSurrogatePairs()
230 uc16 from_t = unibrow::Utf16::TrailSurrogate(from); in AddNonBmpSurrogatePairs()
231 uc16 to_l = unibrow::Utf16::LeadSurrogate(to); in AddNonBmpSurrogatePairs()
232 uc16 to_t = unibrow::Utf16::TrailSurrogate(to); in AddNonBmpSurrogatePairs()
469 static unibrow::uchar Canonical( in Canonical()
470 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize, in Canonical()
471 unibrow::uchar c) { in Canonical()
472 unibrow::uchar chars[unibrow::Ecma262Canonicalize::kMaxWidth]; in Canonical()
475 unibrow::uchar canonical = c; in Canonical()
481 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize, in CompareFirstCharCaseIndependent()
[all …]
Dregexp-macro-assembler.cc80 unibrow::Mapping<unibrow::Ecma262Canonicalize>* canonicalize = in CaseInsensitiveCompareUnicode()
83 unibrow::uchar c1 = substring1[i]; in CaseInsensitiveCompareUnicode()
84 unibrow::uchar c2 = substring2[i]; in CaseInsensitiveCompareUnicode()
86 unibrow::uchar s1[1] = {c1}; in CaseInsensitiveCompareUnicode()
89 unibrow::uchar s2[1] = {c2}; in CaseInsensitiveCompareUnicode()
Dregexp-parser.cc56 unibrow::Utf16::IsLeadSurrogate(static_cast<uc16>(c0))) { in ReadNext()
58 if (unibrow::Utf16::IsTrailSurrogate(c1)) { in ReadNext()
59 c0 = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(c0), c1); in ReadNext()
822 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit()
825 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit()
826 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit()
1185 if (result && unicode() && unibrow::Utf16::IsLeadSurrogate(*value) && in ParseUnicodeEscape()
1193 unibrow::Utf16::IsTrailSurrogate(trail)) { in ParseUnicodeEscape()
1194 *value = unibrow::Utf16::CombineSurrogatePair(static_cast<uc16>(*value), in ParseUnicodeEscape()
1849 DCHECK(unibrow::Utf16::IsLeadSurrogate(lead_surrogate)); in AddLeadSurrogate()
[all …]
Dregexp-compiler.cc732 bool ContainsOnlyUtf16CodeUnits(unibrow::uchar* chars, int length) { in ContainsOnlyUtf16CodeUnits()
733 STATIC_ASSERT(sizeof(unibrow::uchar) == 4); in ContainsOnlyUtf16CodeUnits()
747 unibrow::uchar* letters, in GetCaseIndependentLetters()
778 letters[items++] = static_cast<unibrow::uchar>(cu); in GetCaseIndependentLetters()
829 unibrow::uchar chars[4]; in EmitAtomNonLetter()
889 unibrow::uchar chars[4]; in EmitAtomLetter()
1575 unibrow::uchar chars[4]; in GetQuickCheckDetails()
1845 c = unibrow::Latin1::TryConvertToLatin1(c); in FilterOneByte()
1847 if (c > unibrow::Latin1::kMaxChar) return set_replacement(nullptr); in FilterOneByte()
2313 quark = unibrow::Latin1::TryConvertToLatin1(quark); in TextEmitPass()
[all …]
/external/v8/src/builtins/
Dbuiltins-string.cc93 if (code <= static_cast<uc32>(unibrow::Utf16::kMaxNonSurrogateCharCode)) { in BUILTIN()
96 two_byte_buffer.push_back(unibrow::Utf16::LeadSurrogate(code)); in BUILTIN()
97 two_byte_buffer.push_back(unibrow::Utf16::TrailSurrogate(code)); in BUILTIN()
244 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCaseHelper()
260 unibrow::uchar chars[Converter::kMaxWidth]; in ConvertCaseHelper()
341 unibrow::Mapping<Converter, 128>* mapping) { in ConvertCase()
/external/v8/src/runtime/
Druntime.h782 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { in to_upper_mapping()
785 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { in to_lower_mapping()
802 unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_;
803 unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
/external/v8/src/json/
Djson-parser.cc287 } else if (c <= unibrow::Latin1::kMaxChar) { in ReportUnexpectedCharacter()
323 JsonToken current = V8_LIKELY(c <= unibrow::Latin1::kMaxChar) in SkipWhitespace()
913 static_cast<int32_t>(unibrow::Latin1::kMaxChar)) && in ParseJsonNumber()
937 static_cast<int32_t>(unibrow::Latin1::kMaxChar)) || in ParseJsonNumber()
1105 static_cast<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 …]
/external/v8/src/execution/
Disolate.h1105 unibrow::Mapping<unibrow::Ecma262UnCanonicalize>* jsregexp_uncanonicalize() { in jsregexp_uncanonicalize()
1109 unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange() { in jsregexp_canonrange()
1113 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
1787 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1788 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1789 unibrow::Mapping<unibrow::Ecma262Canonicalize>
/external/v8/src/objects/
Dstring.h405 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar;
406 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar;
463 if (*chars > unibrow::Latin1::kMaxChar) { in NonOneByteStart()
470 STATIC_ASSERT(unibrow::Latin1::kMaxChar == 0xFF); in NonOneByteStart()
486 if (*chars > unibrow::Latin1::kMaxChar) { in NonOneByteStart()
Djs-regexp.cc306 return unibrow::IsLineTerminator(static_cast<unibrow::uchar>(c)); in IsLineTerminator()
Dstring.cc604 int last = unibrow::Utf16::kNoPreviousCharacter; in ToCString()
607 utf8_bytes += unibrow::Utf8::Length(character, last); in ToCString()
621 last = unibrow::Utf16::kNoPreviousCharacter; in ToCString()
628 unibrow::Utf8::Encode(result + utf8_byte_position, character, last); in ToCString()
/external/v8/src/regexp/experimental/
Dexperimental-interpreter.cc35 return unibrow::IsLineTerminator(context[position - 1]); in SatisfiesAssertion()
38 return unibrow::IsLineTerminator(context[position]); in SatisfiesAssertion()

12