Home | History | Annotate | Download | only in re2

Lines Matching defs:ip

69     const char* cap_j;  // if j>=0, set capture[j] = cap_j before processing ip
223 Prog::Inst* ip = prog_->inst(id);
224 switch (ip->opcode()) {
226 LOG(DFATAL) << "unhandled " << ip->opcode() << " in AddToThreadq";
242 stk[nstk++] = AddState(ip->out1());
243 stk[nstk++] = AddState(ip->out());
248 stk[nstk++] = AddState(ip->out());
252 if ((j=ip->cap()) < ncapture_) {
260 stk[nstk++] = AddState(ip->out());
276 if (ip->empty() & ~flag)
278 stk[nstk++] = AddState(ip->out());
309 Prog::Inst* ip = prog_->inst(id);
311 switch (ip->opcode()) {
314 LOG(DFATAL) << "Unhandled " << ip->opcode() << " in step";
318 if (ip->Matches(c))
319 AddToThreadq(nextq, ip->out(), flag, p+1, t->capture);
326 if (ip->greedy(prog_) || longest_) {
333 if (ip->greedy(prog_))
334 return ip->out1();
335 return ip->out();
525 Prog::Inst* ip = prog_->inst(id);
526 switch (ip->opcode()) {
528 LOG(DFATAL) << "Unexpected opcode in short circuit: " << ip->opcode();
532 match_[ip->cap()] = p;
533 id = ip->out();
537 id = ip->out();
546 if (ip->empty() & ~(kEmptyEndLine|kEmptyEndText)) {
547 LOG(DFATAL) << "Unexpected empty-width in short circuit: " << ip->empty();
550 id = ip->out();
634 Prog::Inst* ip = prog_->inst(id);
635 switch (ip->opcode()) {
637 LOG(DFATAL) << "unhandled " << ip->opcode() << " in ComputeFirstByte";
646 if (ip->lo() != ip->hi())
648 if (ip->foldcase() && 'a' <= ip->lo() && ip->lo() <= 'z')
653 b = ip->lo();
654 else if (b != ip->lo())
662 // Ignore ip->empty() flags for kInstEmptyWidth
665 if (ip->out())
666 q.insert(ip->out());
672 if (ip->out())
673 q.insert(ip->out());
674 if (ip->out1())
675 q.insert(ip->out1());