Home | History | Annotate | Download | only in src

Lines Matching refs:scanner_

62   ASSERT_EQ(i::Token::LBRACE, scanner_->current_token());
64 int start_position = scanner_->peek_location().beg_pos;
68 ReportUnexpectedToken(scanner_->current_token());
70 ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
72 int end_pos = scanner_->location().end_pos;
103 i::Scanner::Location source_location = scanner_->location();
131 i::Scanner::Location octal = scanner_->octal_position();
134 scanner_->clear_octal_position();
272 i::Scanner::Location start_location = scanner_->peek_location();
274 i::Scanner::Location end_location = scanner_->location();
300 i::Scanner::Location location = scanner_->location();
396 i::Scanner::Location location = scanner_->peek_location();
404 i::Scanner::Location location = scanner_->peek_location();
421 i::Scanner::Location location = scanner_->peek_location();
430 i::Scanner::Location location = scanner_->peek_location();
451 StrictModeIdentifierViolation(scanner_->location(),
516 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
533 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
559 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
575 i::Scanner::Location location = scanner_->location();
708 if (scanner_->HasAnyLineTerminatorBeforeNext()) {
709 i::Scanner::Location pos = scanner_->location();
745 StrictModeIdentifierViolation(scanner_->location(),
814 i::Scanner::Location before = scanner_->peek_location();
825 i::Scanner::Location after = scanner_->location();
909 i::Scanner::Location before = scanner_->peek_location();
914 i::Scanner::Location after = scanner_->location();
930 i::Scanner::Location before = scanner_->peek_location();
932 if (!scanner_->HasAnyLineTerminatorBeforeNext() &&
937 i::Scanner::Location after = scanner_->location();
1042 StrictModeIdentifierViolation(scanner_->location(),
1114 i::Scanner::Location location = scanner_->location();
1124 i::Scanner::Location location = scanner_->location();
1212 old_type = finder->AddNumber(scanner_->literal_ascii_string(), type);
1213 } else if (scanner_->is_literal_ascii()) {
1214 old_type = finder->AddAsciiSymbol(scanner_->literal_ascii_string(),
1217 old_type = finder->AddUtf16Symbol(scanner_->literal_utf16_string(), type);
1223 ReportMessageAt(scanner_->location(),
1227 ReportMessageAt(scanner_->location(),
1232 ReportMessageAt(scanner_->location(),
1248 DuplicateFinder duplicate_finder(scanner_->unicode_cache());
1319 if (!scanner_->ScanRegExpPattern(seen_equal)) {
1321 ReportMessageAt(scanner_->location(), "unterminated_regexp", NULL);
1328 if (!scanner_->ScanRegExpFlags()) {
1330 ReportMessageAt(scanner_->location(), "invalid_regexp_flags", NULL);
1373 int start_position = scanner_->location().beg_pos;
1375 DuplicateFinder duplicate_finder(scanner_->unicode_cache());
1379 StrictModeIdentifierViolation(scanner_->location(),
1385 if (scanner_->is_literal_ascii()) {
1387 duplicate_finder.AddAsciiSymbol(scanner_->literal_ascii_string(), 1);
1390 duplicate_finder.AddUtf16Symbol(scanner_->literal_utf16_string(), 1);
1394 SetStrictModeViolation(scanner_->location(),
1422 int end_position = scanner_->location().end_pos;
1433 int body_start = scanner_->location().beg_pos;
1440 ASSERT_EQ(i::Token::RBRACE, scanner_->peek());
1441 int body_end = scanner_->peek_location().end_pos;
1474 if (scanner_->HasAnyLineTerminatorBeforeNext() ||
1484 int identifier_pos = scanner_->location().beg_pos;
1485 if (scanner_->is_literal_ascii()) {
1486 log_->LogAsciiSymbol(identifier_pos, scanner_->literal_ascii_string());
1488 log_->LogUtf16Symbol(identifier_pos, scanner_->literal_utf16_string());
1497 if (scanner_->is_literal_ascii() &&
1498 scanner_->literal_length() == kUseStrictLength &&
1499 !scanner_->literal_contains_escapes() &&
1500 !strncmp(scanner_->literal_ascii_string().start(), kUseStrictChars,
1510 if (scanner_->current_token() == i::Token::FUTURE_RESERVED_WORD) {
1512 } else if (scanner_->current_token() ==
1516 if (scanner_->is_literal_ascii()) {
1518 if (scanner_->literal_length() == 4 &&
1519 !strncmp(scanner_->literal_ascii_string().start(), "eval", 4)) {
1522 if (scanner_->literal_length() == 9 &&
1523 !strncmp(scanner_->literal_ascii_string().start(), "arguments", 9)) {
1535 i::Scanner::Location location = scanner_->location();
1543 i::Scanner::Location location = scanner_->location();
1614 int pos = scanner_->location().beg_pos;
1639 if (scanner_->is_literal_ascii() &&
1640 scanner_->literal_length() == 3) {
1641 const char* token = scanner_->literal_ascii_string().start();