Searched refs:inst_cap_ (Results 1 – 1 of 1) sorted by relevance
227 int inst_cap_; // Number of instructions allocated. member in re2::Compiler246 inst_cap_ = 0; in Compiler()265 if (inst_len_ + n > inst_cap_) { in AllocInst()266 if (inst_cap_ == 0) in AllocInst()267 inst_cap_ = 8; in AllocInst()268 while (inst_len_ + n > inst_cap_) in AllocInst()269 inst_cap_ *= 2; in AllocInst()270 Prog::Inst* ip = new Prog::Inst[inst_cap_]; in AllocInst()272 memset(ip + inst_len_, 0, (inst_cap_ - inst_len_) * sizeof ip[0]); in AllocInst()282 if (inst_len_ < inst_cap_) { in Trim()[all …]