Lines Matching refs:zone
19 Zone* zone) in RegExpParser() argument
21 zone_(zone), in RegExpParser()
54 } else if (zone()->excess_allocation()) { in Advance()
145 zone()); in ParseDisjunction()
184 body = new (zone()) RegExpLookaround( in ParseDisjunction()
211 new (zone()) RegExpAssertion(RegExpAssertion::START_OF_LINE)); in ParseDisjunction()
214 new (zone()) RegExpAssertion(RegExpAssertion::START_OF_INPUT)); in ParseDisjunction()
224 builder->AddAssertion(new (zone()) RegExpAssertion(assertion_type)); in ParseDisjunction()
231 new (zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
232 CharacterRange::AddClassEscape('.', ranges, zone()); in ParseDisjunction()
233 RegExpTree* atom = new (zone()) RegExpCharacterClass(ranges, false); in ParseDisjunction()
279 state = new (zone()) RegExpParserState( in ParseDisjunction()
280 state, subexpr_type, lookaround_type, captures_started_, zone()); in ParseDisjunction()
298 new (zone()) RegExpAssertion(RegExpAssertion::BOUNDARY)); in ParseDisjunction()
303 new (zone()) RegExpAssertion(RegExpAssertion::NON_BOUNDARY)); in ParseDisjunction()
319 new (zone()) ZoneList<CharacterRange>(2, zone()); in ParseDisjunction()
320 CharacterRange::AddClassEscape(c, ranges, zone()); in ParseDisjunction()
321 RegExpTree* atom = new (zone()) RegExpCharacterClass(ranges, false); in ParseDisjunction()
345 RegExpTree* atom = new (zone()) RegExpBackReference(capture); in ParseDisjunction()
620 captures_ = new (zone()) ZoneList<RegExpCapture*>(know_captures, zone()); in GetCapture()
623 captures_->Add(new (zone()) RegExpCapture(captures_->length() + 1), zone()); in GetCapture()
919 Zone* zone) { in AddRangeOrEscape() argument
921 CharacterRange::AddClassEscape(char_class, ranges, zone); in AddRangeOrEscape()
923 ranges->Add(range, zone); in AddRangeOrEscape()
940 new (zone()) ZoneList<CharacterRange>(2, zone()); in ParseCharacterClass()
951 AddRangeOrEscape(ranges, char_class, first, zone()); in ParseCharacterClass()
952 ranges->Add(CharacterRange::Singleton('-'), zone()); in ParseCharacterClass()
959 AddRangeOrEscape(ranges, char_class, first, zone()); in ParseCharacterClass()
960 ranges->Add(CharacterRange::Singleton('-'), zone()); in ParseCharacterClass()
961 AddRangeOrEscape(ranges, char_class_2, next, zone()); in ParseCharacterClass()
967 ranges->Add(CharacterRange::Range(first.from(), next.to()), zone()); in ParseCharacterClass()
969 AddRangeOrEscape(ranges, char_class, first, zone()); in ParseCharacterClass()
977 ranges->Add(CharacterRange::Everything(), zone()); in ParseCharacterClass()
980 return new (zone()) RegExpCharacterClass(ranges, is_negated); in ParseCharacterClass()
987 bool RegExpParser::ParseRegExp(Isolate* isolate, Zone* zone, in ParseRegExp() argument
991 RegExpParser parser(input, &result->error, multiline, unicode, isolate, zone); in ParseRegExp()
1001 tree->Print(os, zone); in ParseRegExp()
1014 RegExpBuilder::RegExpBuilder(Zone* zone) in RegExpBuilder() argument
1015 : zone_(zone), in RegExpBuilder()
1031 RegExpTree* atom = new (zone()) RegExpAtom(characters_->ToConstVector()); in FlushCharacters()
1033 text_.Add(atom, zone()); in FlushCharacters()
1045 terms_.Add(text_.last(), zone()); in FlushText()
1047 RegExpText* text = new (zone()) RegExpText(zone()); in FlushText()
1048 for (int i = 0; i < num_text; i++) text_.Get(i)->AppendToText(text, zone()); in FlushText()
1049 terms_.Add(text, zone()); in FlushText()
1058 characters_ = new (zone()) ZoneList<uc16>(4, zone()); in AddCharacter()
1060 characters_->Add(c, zone()); in AddCharacter()
1067 ZoneList<uc16> surrogate_pair(2, zone()); in AddUnicodeCharacter()
1068 surrogate_pair.Add(unibrow::Utf16::LeadSurrogate(c), zone()); in AddUnicodeCharacter()
1069 surrogate_pair.Add(unibrow::Utf16::TrailSurrogate(c), zone()); in AddUnicodeCharacter()
1070 RegExpAtom* atom = new (zone()) RegExpAtom(surrogate_pair.ToConstVector()); in AddUnicodeCharacter()
1088 text_.Add(term, zone()); in AddAtom()
1091 terms_.Add(term, zone()); in AddAtom()
1099 terms_.Add(assert, zone()); in AddAssertion()
1112 alternative = new (zone()) RegExpEmpty(); in FlushTerms()
1116 alternative = new (zone()) RegExpAlternative(terms_.GetList(zone())); in FlushTerms()
1118 alternatives_.Add(alternative, zone()); in FlushTerms()
1127 if (num_alternatives == 0) return new (zone()) RegExpEmpty(); in ToRegExp()
1129 return new (zone()) RegExpDisjunction(alternatives_.GetList(zone())); in ToRegExp()
1147 text_.Add(new (zone()) RegExpAtom(prefix), zone()); in AddQuantifierToAtom()
1151 atom = new (zone()) RegExpAtom(char_vector); in AddQuantifierToAtom()
1166 terms_.Add(atom, zone()); in AddQuantifierToAtom()
1174 terms_.Add(new (zone()) RegExpQuantifier(min, max, quantifier_type, atom), in AddQuantifierToAtom()
1175 zone()); in AddQuantifierToAtom()