Lines Matching refs:CharacterRange

2077   ZoneList<CharacterRange>* ranges = cc->ranges(zone);  in EmitCharClass()
2078 CharacterRange::Canonicalize(ranges); in EmitCharClass()
2091 CharacterRange& range = ranges->at(last_valid_range); in EmitCharClass()
2144 CharacterRange& range = ranges->at(i); in EmitCharClass()
2554 ZoneList<CharacterRange>* ranges = tree->ranges(zone()); in GetQuickCheckDetails()
2573 CharacterRange range = ranges->at(first_range); in GetQuickCheckDetails()
2589 CharacterRange range = ranges->at(i); in GetQuickCheckDetails()
2719 static inline bool RangeContainsLatin1Equivalents(CharacterRange range) { in RangeContainsLatin1Equivalents()
2726 static bool RangesContainLatin1Equivalents(ZoneList<CharacterRange>* ranges) { in RangesContainLatin1Equivalents()
2757 ZoneList<CharacterRange>* ranges = cc->ranges(zone()); in FilterOneByte()
2758 CharacterRange::Canonicalize(ranges); in FilterOneByte()
3250 ZoneList<CharacterRange>* ranges, in CreateForCharacterRanges()
3262 TextNode* TextNode::CreateForSurrogatePair(Zone* zone, CharacterRange lead, in CreateForSurrogatePair()
3263 CharacterRange trail, in CreateForSurrogatePair()
3267 ZoneList<CharacterRange>* lead_ranges = CharacterRange::List(zone, lead); in CreateForSurrogatePair()
3268 ZoneList<CharacterRange>* trail_ranges = CharacterRange::List(zone, trail); in CreateForSurrogatePair()
3370 ZoneList<CharacterRange>* ranges = cc->ranges(zone()); in MakeCaseIndependent()
3371 CharacterRange::AddCaseEquivalents(isolate, zone(), ranges, in MakeCaseIndependent()
3389 ZoneList<CharacterRange>* ranges = node->ranges(zone()); in GetSuccessorOfOmnivorousTextNode()
3390 CharacterRange::Canonicalize(ranges); in GetSuccessorOfOmnivorousTextNode()
4554 CharacterRange range = node->ranges(zone)->at(j); in VisitText()
4722 static bool CompareInverseRanges(ZoneList<CharacterRange>* ranges, in CompareInverseRanges()
4733 CharacterRange range = ranges->at(0); in CompareInverseRanges()
4753 static bool CompareRanges(ZoneList<CharacterRange>* ranges, in CompareRanges()
4762 CharacterRange range = ranges->at(i >> 1); in CompareRanges()
4814 ZoneList<CharacterRange>* base) in UnicodeRangeSplitter()
4835 table_.AddRange(CharacterRange::Range(0, kLeadSurrogateStart - 1), in UnicodeRangeSplitter()
4837 table_.AddRange(CharacterRange::Range(kLeadSurrogateStart, kLeadSurrogateEnd), in UnicodeRangeSplitter()
4840 CharacterRange::Range(kTrailSurrogateStart, kTrailSurrogateEnd), in UnicodeRangeSplitter()
4843 CharacterRange::Range(kTrailSurrogateEnd + 1, kNonBmpStart - 1), in UnicodeRangeSplitter()
4845 table_.AddRange(CharacterRange::Range(kNonBmpStart, kNonBmpEnd), in UnicodeRangeSplitter()
4854 ZoneList<CharacterRange>** target = nullptr; in Call()
4866 *target = new (zone_) ZoneList<CharacterRange>(2, zone_); in Call()
4867 (*target)->Add(CharacterRange::Range(entry.from(), entry.to()), zone_); in Call()
4872 ZoneList<CharacterRange>* bmp = splitter->bmp(); in AddBmpCharacters()
4883 ZoneList<CharacterRange>* non_bmp = splitter->non_bmp(); in AddNonBmpSurrogatePairs()
4888 CharacterRange::Canonicalize(non_bmp); in AddNonBmpSurrogatePairs()
4905 zone, CharacterRange::Singleton(from_l), in AddNonBmpSurrogatePairs()
4906 CharacterRange::Range(from_t, to_t), compiler->read_backward(), in AddNonBmpSurrogatePairs()
4913 zone, CharacterRange::Singleton(from_l), in AddNonBmpSurrogatePairs()
4914 CharacterRange::Range(from_t, kTrailSurrogateEnd), in AddNonBmpSurrogatePairs()
4922 zone, CharacterRange::Singleton(to_l), in AddNonBmpSurrogatePairs()
4923 CharacterRange::Range(kTrailSurrogateStart, to_t), in AddNonBmpSurrogatePairs()
4931 zone, CharacterRange::Range(from_l, to_l), in AddNonBmpSurrogatePairs()
4932 CharacterRange::Range(kTrailSurrogateStart, kTrailSurrogateEnd), in AddNonBmpSurrogatePairs()
4940 RegExpCompiler* compiler, ZoneList<CharacterRange>* lookbehind, in NegativeLookaroundAgainstReadDirectionAndMatch()
4941 ZoneList<CharacterRange>* match, RegExpNode* on_success, bool read_backward, in NegativeLookaroundAgainstReadDirectionAndMatch()
4956 RegExpCompiler* compiler, ZoneList<CharacterRange>* match, in MatchAndNegativeLookaroundInReadDirection()
4957 ZoneList<CharacterRange>* lookahead, RegExpNode* on_success, in MatchAndNegativeLookaroundInReadDirection()
4974 ZoneList<CharacterRange>* lead_surrogates = splitter->lead_surrogates(); in AddLoneLeadSurrogates()
4978 ZoneList<CharacterRange>* trail_surrogates = CharacterRange::List( in AddLoneLeadSurrogates()
4979 zone, CharacterRange::Range(kTrailSurrogateStart, kTrailSurrogateEnd)); in AddLoneLeadSurrogates()
5002 ZoneList<CharacterRange>* trail_surrogates = splitter->trail_surrogates(); in AddLoneTrailSurrogates()
5006 ZoneList<CharacterRange>* lead_surrogates = CharacterRange::List( in AddLoneTrailSurrogates()
5007 zone, CharacterRange::Range(kLeadSurrogateStart, kLeadSurrogateEnd)); in AddLoneTrailSurrogates()
5035 ZoneList<CharacterRange>* range = CharacterRange::List( in UnanchoredAdvance()
5036 zone, CharacterRange::Range(0, String::kMaxUtf16CodeUnit)); in UnanchoredAdvance()
5042 void AddUnicodeCaseEquivalents(ZoneList<CharacterRange>* ranges, Zone* zone) { in AddUnicodeCaseEquivalents()
5044 DCHECK(CharacterRange::IsCanonical(ranges)); in AddUnicodeCaseEquivalents()
5066 ranges->Add(CharacterRange::Range(set.getRangeStart(i), set.getRangeEnd(i)), in AddUnicodeCaseEquivalents()
5070 CharacterRange::Canonicalize(ranges); in AddUnicodeCaseEquivalents()
5079 ZoneList<CharacterRange>* ranges = this->ranges(zone); in ToNode()
5086 ZoneList<CharacterRange>* negated = in ToNode()
5087 new (zone) ZoneList<CharacterRange>(2, zone); in ToNode()
5088 CharacterRange::Negate(ranges, negated, zone); in ToNode()
5337 ZoneList<CharacterRange>* ranges = in FixSingleCharacterDisjunctions()
5338 new (zone) ZoneList<CharacterRange>(2, zone); in FixSingleCharacterDisjunctions()
5342 ranges->Add(CharacterRange::Singleton(old_atom->data().at(0)), zone); in FixSingleCharacterDisjunctions()
5585 ZoneList<CharacterRange>* word_range = in BoundaryAssertionAsLookaround()
5586 new (zone) ZoneList<CharacterRange>(2, zone); in BoundaryAssertionAsLookaround()
5587 CharacterRange::AddClassEscape('w', word_range, true, zone); in BoundaryAssertionAsLookaround()
5645 ZoneList<CharacterRange>* newline_ranges = in ToNode()
5646 new(zone) ZoneList<CharacterRange>(3, zone); in ToNode()
5647 CharacterRange::AddClassEscape('n', newline_ranges, false, zone); in ToNode()
5794 ZoneList<CharacterRange>* ranges, in AddClass()
5800 ranges->Add(CharacterRange::Range(elmv[i], elmv[i + 1] - 1), zone); in AddClass()
5807 ZoneList<CharacterRange>* ranges, in AddClassNegated()
5817 ranges->Add(CharacterRange::Range(last, elmv[i] - 1), zone); in AddClassNegated()
5820 ranges->Add(CharacterRange::Range(last, String::kMaxCodePoint), zone); in AddClassNegated()
5823 void CharacterRange::AddClassEscape(char type, ZoneList<CharacterRange>* ranges, in AddClassEscape()
5830 ZoneList<CharacterRange>* new_ranges = in AddClassEscape()
5831 new (zone) ZoneList<CharacterRange>(2, zone); in AddClassEscape()
5835 ZoneList<CharacterRange>* negated = in AddClassEscape()
5836 new (zone) ZoneList<CharacterRange>(2, zone); in AddClassEscape()
5837 CharacterRange::Negate(new_ranges, negated, zone); in AddClassEscape()
5846 void CharacterRange::AddClassEscape(char type, ZoneList<CharacterRange>* ranges, in AddClassEscape()
5877 ranges->Add(CharacterRange::Everything(), zone); in AddClassEscape()
5893 Vector<const int> CharacterRange::GetWordBounds() { in GetWordBounds()
5898 void CharacterRange::AddCaseEquivalents(Isolate* isolate, Zone* zone, in AddCaseEquivalents()
5899 ZoneList<CharacterRange>* ranges, in AddCaseEquivalents()
5901 CharacterRange::Canonicalize(ranges); in AddCaseEquivalents()
5904 CharacterRange range = ranges->at(i); in AddCaseEquivalents()
5921 ranges->Add(CharacterRange::Singleton(chars[i]), zone); in AddCaseEquivalents()
5961 ranges->Add(CharacterRange::Range(range_from, range_to), zone); in AddCaseEquivalents()
5971 bool CharacterRange::IsCanonical(ZoneList<CharacterRange>* ranges) { in IsCanonical()
5977 CharacterRange next_range = ranges->at(i); in IsCanonical()
5985 ZoneList<CharacterRange>* CharacterSet::ranges(Zone* zone) { in ranges()
5987 ranges_ = new(zone) ZoneList<CharacterRange>(2, zone); in ranges()
5988 CharacterRange::AddClassEscape(standard_set_type_, ranges_, false, zone); in ranges()
5996 static void MoveRanges(ZoneList<CharacterRange>* list, in MoveRanges()
6013 static int InsertRangeInCanonicalList(ZoneList<CharacterRange>* list, in InsertRangeInCanonicalList()
6015 CharacterRange insert) { in InsertRangeInCanonicalList()
6026 CharacterRange current = list->at(i); in InsertRangeInCanonicalList()
6052 CharacterRange to_replace = list->at(start_pos); in InsertRangeInCanonicalList()
6055 list->at(start_pos) = CharacterRange::Range(new_from, new_to); in InsertRangeInCanonicalList()
6066 list->at(start_pos) = CharacterRange::Range(new_from, new_to); in InsertRangeInCanonicalList()
6075 CharacterRange::Canonicalize(ranges_); in Canonicalize()
6079 void CharacterRange::Canonicalize(ZoneList<CharacterRange>* character_ranges) { in Canonicalize()
6087 CharacterRange current = character_ranges->at(i); in Canonicalize()
6112 DCHECK(CharacterRange::IsCanonical(character_ranges)); in Canonicalize()
6116 void CharacterRange::Negate(ZoneList<CharacterRange>* ranges, in Negate()
6117 ZoneList<CharacterRange>* negated_ranges, in Negate()
6119 DCHECK(CharacterRange::IsCanonical(ranges)); in Negate()
6129 CharacterRange range = ranges->at(i); in Negate()
6130 negated_ranges->Add(CharacterRange::Range(from, range.from() - 1), zone); in Negate()
6135 negated_ranges->Add(CharacterRange::Range(from, String::kMaxCodePoint), in Negate()
6190 void DispatchTable::AddRange(CharacterRange full_range, int value, in AddRange()
6192 CharacterRange current = full_range; in AddRange()
6215 CharacterRange left = in AddRange()
6216 CharacterRange::Range(entry->from(), current.from() - 1); in AddRange()
6217 CharacterRange right = CharacterRange::Range(current.from(), entry->to()); in AddRange()
6462 ZoneList<CharacterRange>* ranges = char_class->ranges(zone()); in FillInBMInfo()
6467 CharacterRange& range = ranges->at(k); in FillInBMInfo()
6491 AddRange(CharacterRange::Everything()); in VisitEnd()
6517 constructor_->AddRange(CharacterRange::Range(from, entry.to())); in Call()
6533 AddRange(CharacterRange::Everything()); in VisitBackReference()
6543 static int CompareRangeByFrom(const CharacterRange* a, in CompareRangeByFrom()
6544 const CharacterRange* b) { in CompareRangeByFrom()
6549 void DispatchTableConstructor::AddInverse(ZoneList<CharacterRange>* ranges) { in AddInverse()
6553 CharacterRange range = ranges->at(i); in AddInverse()
6555 AddRange(CharacterRange::Range(last, range.from() - 1)); in AddInverse()
6564 AddRange(CharacterRange::Range(last, String::kMaxCodePoint)); in AddInverse()
6573 AddRange(CharacterRange::Range(c, c)); in VisitText()
6578 ZoneList<CharacterRange>* ranges = tree->ranges(that->zone()); in VisitText()
6606 ZoneList<CharacterRange>* lead_surrogates = CharacterRange::List( in OptionallyStepBackToLeadSurrogate()
6607 zone, CharacterRange::Range(kLeadSurrogateStart, kLeadSurrogateEnd)); in OptionallyStepBackToLeadSurrogate()
6608 ZoneList<CharacterRange>* trail_surrogates = CharacterRange::List( in OptionallyStepBackToLeadSurrogate()
6609 zone, CharacterRange::Range(kTrailSurrogateStart, kTrailSurrogateEnd)); in OptionallyStepBackToLeadSurrogate()