Lines Matching defs:ranges
109 uint32_t Hash(const ZoneList<CharacterRange>* ranges) {
111 for (int i = 0; i < ranges->length(); i++) {
112 const CharacterRange& r = ranges->at(i);
125 int RangeArrayLengthFor(const ZoneList<CharacterRange>* ranges) {
126 const int ranges_length = ranges->length();
127 return MaskEndOfRangeMarker(ranges->at(ranges_length - 1).to()) == kMaxUInt16
146 const ZoneList<CharacterRange>* ranges) {
147 const int ranges_length = ranges->length();
148 const int byte_array_length = RangeArrayLengthFor(ranges);
153 const CharacterRange& r = ranges->at(i);
170 const ZoneList<CharacterRange>* ranges) {
171 const uint32_t hash = Hash(ranges);
175 if (Equals(ranges, range_array)) return range_array;
178 Handle<ByteArray> range_array = MakeRangeArray(isolate(), ranges);
192 ByteArray ranges = ByteArray::cast(Object(raw_byte_array));
194 DCHECK_EQ(ranges.length() % kUInt16Size, 0); // uc16 elements.
195 const int length = ranges.length() / kUInt16Size;
199 if (current_char < ranges.get_uint16(0)) return kFalse;
200 if (current_char >= ranges.get_uint16(length - 1)) {
205 // Binary search for the matching range. `ranges` is encoded as
212 const base::uc16 elem = ranges.get_uint16(mid);
223 const bool current_char_ge_last_elem = current_char >= ranges.get_uint16(mid);