Lines Matching refs:max_mem
131 static Prog *Compile(Regexp* re, bool reversed, int64 max_mem);
951 void Compiler::Setup(Regexp::ParseFlags flags, int64 max_mem,
957 max_mem_ = max_mem;
958 if (max_mem <= 0) {
960 } else if (max_mem <= sizeof(Prog)) {
964 int64 m = (max_mem - sizeof(Prog)) / sizeof(Prog::Inst);
991 Prog* Compiler::Compile(Regexp* re, bool reversed, int64 max_mem) {
994 c.Setup(re->parse_flags(), max_mem, RE2::ANCHOR_BOTH /* unused */);
1079 Prog* Regexp::CompileToProg(int64 max_mem) {
1080 return Compiler::Compile(this, false, max_mem);
1083 Prog* Regexp::CompileToReverseProg(int64 max_mem) {
1084 return Compiler::Compile(this, true, max_mem);
1097 c.Setup(pf, options.max_mem(), anchor);