Lines Matching refs:preparser
39 #include "preparser.h"
269 i::PreParser preparser(&scanner, &log, stack_limit);
270 preparser.set_allow_lazy(true);
271 preparser.set_allow_natives_syntax(true);
272 i::PreParser::PreParseResult result = preparser.PreParseProgram();
273 CHECK_EQ(i::PreParser::kPreParseSuccess, result);
303 // Preparser defaults to disallowing natives syntax.
304 i::PreParser preparser(&scanner, &log, stack_limit);
305 preparser.set_allow_lazy(true);
306 i::PreParser::PreParseResult result = preparser.PreParseProgram();
307 CHECK_EQ(i::PreParser::kPreParseSuccess, result);
405 i::PreParser preparser(&scanner, &log, stack_limit);
406 preparser.set_allow_lazy(true);
407 i::PreParser::PreParseResult result = preparser.PreParseProgram();
408 CHECK_EQ(i::PreParser::kPreParseStackOverflow, result);
906 // the preparser off in terms of byte offsets.
1117 i::PreParser preparser(&scanner, &log, stack_limit);
1118 SetParserFlags(&preparser, flags);
1120 i::PreParser::PreParseResult result = preparser.PreParseProgram();
1121 CHECK_EQ(i::PreParser::kPreParseSuccess, result);
1154 "However, the preparser succeeded",
1158 // Check that preparser and parser produce the same error.
1162 "Expected parser and preparser to produce the same error on:\n"
1174 "Preparser failed on:\n"