Lines Matching refs:scanner
67 i::Scanner scanner(&unicode_cache); in TEST() local
69 scanner.SetHarmonyScoping(true); in TEST()
70 scanner.SetHarmonyModules(true); in TEST()
71 scanner.Initialize(&stream); in TEST()
72 CHECK_EQ(key_token.token, scanner.Next()); in TEST()
73 CHECK_EQ(i::Token::EOS, scanner.Next()); in TEST()
78 i::Scanner scanner(&unicode_cache); in TEST() local
79 scanner.Initialize(&stream); in TEST()
80 CHECK_EQ(i::Token::IDENTIFIER, scanner.Next()); in TEST()
81 CHECK_EQ(i::Token::EOS, scanner.Next()); in TEST()
89 i::Scanner scanner(&unicode_cache); in TEST() local
90 scanner.Initialize(&stream); in TEST()
91 CHECK_EQ(i::Token::IDENTIFIER, scanner.Next()); in TEST()
92 CHECK_EQ(i::Token::EOS, scanner.Next()); in TEST()
99 i::Scanner scanner(&unicode_cache); in TEST() local
100 scanner.Initialize(&stream); in TEST()
101 CHECK_EQ(i::Token::IDENTIFIER, scanner.Next()); in TEST()
102 CHECK_EQ(i::Token::EOS, scanner.Next()); in TEST()
266 i::Scanner scanner(CcTest::i_isolate()->unicode_cache()); in TEST() local
267 scanner.Initialize(&stream); in TEST()
269 i::PreParser preparser(&scanner, &log, stack_limit); in TEST()
300 i::Scanner scanner(CcTest::i_isolate()->unicode_cache()); in TEST() local
301 scanner.Initialize(&stream); in TEST()
304 i::PreParser preparser(&scanner, &log, stack_limit); in TEST()
402 i::Scanner scanner(CcTest::i_isolate()->unicode_cache()); in TEST() local
403 scanner.Initialize(&stream); in TEST()
405 i::PreParser preparser(&scanner, &log, stack_limit); in TEST()
622 i::Scanner scanner(CcTest::i_isolate()->unicode_cache()); in TestStreamScanner() local
623 scanner.Initialize(stream); in TestStreamScanner()
628 i::Token::Value actual = scanner.Next(); in TestStreamScanner()
630 if (scanner.location().end_pos == skip_pos) { in TestStreamScanner()
631 scanner.SeekForward(skip_to); in TestStreamScanner()
704 i::Scanner scanner(CcTest::i_isolate()->unicode_cache()); in TestScanRegExp() local
705 scanner.Initialize(&stream); in TestScanRegExp()
707 i::Token::Value start = scanner.peek(); in TestScanRegExp()
709 CHECK(scanner.ScanRegExpPattern(start == i::Token::ASSIGN_DIV)); in TestScanRegExp()
710 scanner.Next(); // Current token is now the regexp literal. in TestScanRegExp()
711 CHECK(scanner.is_literal_ascii()); in TestScanRegExp()
712 i::Vector<const char> actual = scanner.literal_ascii_string(); in TestScanRegExp()
1115 i::Scanner scanner(isolate->unicode_cache()); in TestParserSyncWithFlags() local
1117 i::PreParser preparser(&scanner, &log, stack_limit); in TestParserSyncWithFlags()
1119 scanner.Initialize(&stream); in TestParserSyncWithFlags()