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, in Setup() argument
957 max_mem_ = max_mem; in Setup()
958 if (max_mem <= 0) { in Setup()
960 } else if (max_mem <= sizeof(Prog)) { in Setup()
964 int64 m = (max_mem - sizeof(Prog)) / sizeof(Prog::Inst); in Setup()
991 Prog* Compiler::Compile(Regexp* re, bool reversed, int64 max_mem) { in Compile() argument
994 c.Setup(re->parse_flags(), max_mem, RE2::ANCHOR_BOTH /* unused */); in Compile()
1079 Prog* Regexp::CompileToProg(int64 max_mem) { in CompileToProg() argument
1080 return Compiler::Compile(this, false, max_mem); in CompileToProg()
1083 Prog* Regexp::CompileToReverseProg(int64 max_mem) { in CompileToReverseProg() argument
1084 return Compiler::Compile(this, true, max_mem); in CompileToReverseProg()
1097 c.Setup(pf, options.max_mem(), anchor); in CompileSet()