Home | History | Annotate | Download | only in src

Lines Matching refs:scanner_

67   ASSERT_EQ(i::Token::LBRACE, scanner_->current_token());
69 int start_position = scanner_->peek_location().beg_pos;
73 ReportUnexpectedToken(scanner_->current_token());
75 ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
77 int end_pos = scanner_->location().end_pos;
108 i::Scanner::Location source_location = scanner_->location();
136 i::Scanner::Location octal = scanner_->octal_position();
139 scanner_->clear_octal_position();
278 i::Scanner::Location start_location = scanner_->peek_location();
280 i::Scanner::Location end_location = scanner_->location();
310 i::Scanner::Location location = scanner_->location();
406 i::Scanner::Location location = scanner_->peek_location();
414 i::Scanner::Location location = scanner_->peek_location();
431 i::Scanner::Location location = scanner_->peek_location();
440 i::Scanner::Location location = scanner_->peek_location();
461 StrictModeIdentifierViolation(scanner_->location(),
528 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
545 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
571 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
587 i::Scanner::Location location = scanner_->location();
665 scanner_->is_next_contextual_keyword(v8::internal::CStrVector("of")))) {
732 if (scanner_->HasAnyLineTerminatorBeforeNext()) {
733 i::Scanner::Location pos = scanner_->location();
769 StrictModeIdentifierViolation(scanner_->location(),
842 i::Scanner::Location before = scanner_->peek_location();
853 i::Scanner::Location after = scanner_->location();
950 i::Scanner::Location before = scanner_->peek_location();
955 i::Scanner::Location after = scanner_->location();
971 i::Scanner::Location before = scanner_->peek_location();
973 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
978 i::Scanner::Location after = scanner_->location();
1085 StrictModeIdentifierViolation(scanner_->location(),
1240 old_type = finder->AddNumber(scanner_->literal_ascii_string(), type);
1241 } else if (scanner_->is_literal_ascii()) {
1242 old_type = finder->AddAsciiSymbol(scanner_->literal_ascii_string(),
1245 old_type = finder->AddUtf16Symbol(scanner_->literal_utf16_string(), type);
1251 ReportMessageAt(scanner_->location(),
1255 ReportMessageAt(scanner_->location(),
1260 ReportMessageAt(scanner_->location(),
1276 DuplicateFinder duplicate_finder(scanner_->unicode_cache());
1347 if (!scanner_->ScanRegExpPattern(seen_equal)) {
1349 ReportMessageAt(scanner_->location(), "unterminated_regexp", NULL);
1356 if (!scanner_->ScanRegExpFlags()) {
1358 ReportMessageAt(scanner_->location(), "invalid_regexp_flags", NULL);
1403 int start_position = scanner_->location().beg_pos;
1405 DuplicateFinder duplicate_finder(scanner_->unicode_cache());
1409 StrictModeIdentifierViolation(scanner_->location(),
1415 if (scanner_->is_literal_ascii()) {
1417 duplicate_finder.AddAsciiSymbol(scanner_->literal_ascii_string(), 1);
1420 duplicate_finder.AddUtf16Symbol(scanner_->literal_utf16_string(), 1);
1424 SetStrictModeViolation(scanner_->location(),
1452 int end_position = scanner_->location().end_pos;
1463 int body_start = scanner_->location().beg_pos;
1470 ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
1471 int body_end = scanner_->peek_location().end_pos;
1504 if (scanner_->HasAnyLineTerminatorBeforeNext() ||
1514 int identifier_pos = scanner_->location().beg_pos;
1515 if (scanner_->is_literal_ascii()) {
1516 log_->LogAsciiSymbol(identifier_pos, scanner_->literal_ascii_string());
1518 log_->LogUtf16Symbol(identifier_pos, scanner_->literal_utf16_string());
1527 if (scanner_->is_literal_ascii() &&
1528 scanner_->literal_length() == kUseStrictLength &&
1529 !scanner_->literal_contains_escapes() &&
1530 !strncmp(scanner_->literal_ascii_string().start(), kUseStrictChars,
1540 if (scanner_->current_token() == i::Token::FUTURE_RESERVED_WORD) {
1542 } else if (scanner_->current_token() ==
1545 } else if (scanner_->current_token() == i::Token::YIELD) {
1548 if (scanner_->is_literal_ascii()) {
1550 if (scanner_->literal_length() == 4 &&
1551 !strncmp(scanner_->literal_ascii_string().start(), "eval", 4)) {
1554 if (scanner_->literal_length() == 9 &&
1555 !strncmp(scanner_->literal_ascii_string().start(), "arguments", 9)) {
1567 i::Scanner::Location location = scanner_->location();
1576 ReportMessageAt(scanner_->location(), "unexpected_token", "yield");
1583 i::Scanner::Location location = scanner_->location();
1654 int pos = scanner_->location().beg_pos;
1679 if (scanner_->is_literal_ascii() &&
1680 scanner_->literal_length() == 3) {
1681 const char* token = scanner_->literal_ascii_string().start();