Home | History | Annotate | Download | only in re2

Lines Matching full:opcode

88     // Constructors per opcode
99 InstOp opcode() { return static_cast<InstOp>(out_opcode_&7); }
101 int out1() { DCHECK(opcode() == kInstAlt || opcode() == kInstAltMatch); return out1_; }
102 int cap() { DCHECK_EQ(opcode(), kInstCapture); return cap_; }
103 int lo() { DCHECK_EQ(opcode(), kInstByteRange); return lo_; }
104 int hi() { DCHECK_EQ(opcode(), kInstByteRange); return hi_; }
105 int foldcase() { DCHECK_EQ(opcode(), kInstByteRange); return foldcase_; }
106 int match_id() { DCHECK_EQ(opcode(), kInstMatch); return match_id_; }
107 EmptyOp empty() { DCHECK_EQ(opcode(), kInstEmptyWidth); return empty_; }
109 DCHECK_EQ(opcode(), kInstAltMatch);
110 return p->inst(out())->opcode() == kInstByteRange;
115 DCHECK_EQ(opcode(), kInstByteRange);
129 void set_opcode(InstOp opcode) {
130 out_opcode_ = (out()<<3) | opcode;
134 out_opcode_ = (out<<3) | opcode();
137 void set_out_opcode(int out, InstOp opcode) {
138 out_opcode_ = (out<<3) | opcode;
141 uint32 out_opcode_; // 29 bits of out, 3 (low) bits opcode
143 uint32 out1_; // opcode == kInstAlt
146 int32 cap_; // opcode == kInstCapture
153 int32 match_id_; // opcode == kInstMatch
156 struct { // opcode == kInstByteRange
162 EmptyOp empty_; // opcode == kInstEmptyWidth