Lines Matching refs:c0_
69 int d = HexValue(c0_); in ScanHexNumber()
84 int d = HexValue(c0_); in ScanUnlimitedLengthHexNumber()
92 d = HexValue(c0_); in ScanUnlimitedLengthHexNumber()
247 if (static_cast<unsigned>(c0_) <= 0x7f) { in Next()
248 Token::Value token = static_cast<Token::Value>(one_char_tokens[c0_]); in Next()
296 if (c0_ < 0) break; in SkipWhiteSpace()
299 if (unicode_cache_->IsLineTerminator(c0_)) { in SkipWhiteSpace()
301 } else if (!unicode_cache_->IsWhiteSpace(c0_) && in SkipWhiteSpace()
302 !IsLittleEndianByteOrderMark(c0_)) { in SkipWhiteSpace()
312 if (c0_ == '-' && has_line_terminator_before_next_) { in SkipWhiteSpace()
314 if (c0_ == '-') { in SkipWhiteSpace()
316 if (c0_ == '>') { in SkipWhiteSpace()
340 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in SkipSingleLineComment()
350 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in SkipSourceURLComment()
361 if (c0_ < 0 || !unicode_cache_->IsWhiteSpace(c0_)) return; in TryToParseSourceURLComment()
364 while (c0_ >= 0 && !unicode_cache_->IsWhiteSpaceOrLineTerminator(c0_) && in TryToParseSourceURLComment()
365 c0_ != '=') { in TryToParseSourceURLComment()
366 name.AddChar(c0_); in TryToParseSourceURLComment()
379 if (c0_ != '=') in TryToParseSourceURLComment()
383 while (c0_ >= 0 && unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
386 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
388 if (c0_ == '"' || c0_ == '\'') { in TryToParseSourceURLComment()
392 if (unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
395 value->AddChar(c0_); in TryToParseSourceURLComment()
399 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
400 if (!unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
410 DCHECK(c0_ == '*'); in SkipMultiLineComment()
413 while (c0_ >= 0) { in SkipMultiLineComment()
414 uc32 ch = c0_; in SkipMultiLineComment()
416 if (c0_ >= 0 && unicode_cache_->IsLineTerminator(ch)) { in SkipMultiLineComment()
424 if (ch == '*' && c0_ == '/') { in SkipMultiLineComment()
425 c0_ = ' '; in SkipMultiLineComment()
437 DCHECK(c0_ == '!'); in ScanHtmlComment()
439 if (c0_ == '-') { in ScanHtmlComment()
441 if (c0_ == '-') return SkipSingleLineComment(); in ScanHtmlComment()
445 DCHECK(c0_ == '!'); in ScanHtmlComment()
458 switch (c0_) { in Scan()
478 if (c0_ == '=') { in Scan()
480 } else if (c0_ == '<') { in Scan()
482 } else if (c0_ == '!') { in Scan()
492 if (c0_ == '=') { in Scan()
494 } else if (c0_ == '>') { in Scan()
497 if (c0_ == '=') { in Scan()
499 } else if (c0_ == '>') { in Scan()
512 if (c0_ == '=') { in Scan()
514 } else if (c0_ == '>') { in Scan()
524 if (c0_ == '=') { in Scan()
534 if (c0_ == '+') { in Scan()
536 } else if (c0_ == '=') { in Scan()
546 if (c0_ == '-') { in Scan()
548 if (c0_ == '>' && has_line_terminator_before_next_) { in Scan()
555 } else if (c0_ == '=') { in Scan()
575 if (c0_ == '/') { in Scan()
577 if (c0_ == '#' || c0_ == '@') { in Scan()
581 PushBack(c0_); in Scan()
584 } else if (c0_ == '*') { in Scan()
586 } else if (c0_ == '=') { in Scan()
596 if (c0_ == '&') { in Scan()
598 } else if (c0_ == '=') { in Scan()
608 if (c0_ == '|') { in Scan()
610 } else if (c0_ == '=') { in Scan()
625 if (IsDecimalDigit(c0_)) { in Scan()
629 if (c0_ == '.') { in Scan()
631 if (c0_ == '.') { in Scan()
690 if (c0_ < 0) { in Scan()
692 } else if (unicode_cache_->IsIdentifierStart(c0_)) { in Scan()
694 } else if (IsDecimalDigit(c0_)) { in Scan()
736 uc32 c = c0_; in ScanEscape()
740 if (!in_template_literal && c0_ >= 0 && unicode_cache_->IsLineTerminator(c)) { in ScanEscape()
742 if (IsCarriageReturn(c) && IsLineFeed(c0_)) Advance<capture_raw>(); in ScanEscape()
744 if (IsLineFeed(c) && IsCarriageReturn(c0_)) Advance<capture_raw>(); in ScanEscape()
797 int d = c0_ - '0'; in ScanOctalEscape()
820 uc32 quote = c0_; in ScanString()
825 if (c0_ > kMaxAscii) { in ScanString()
829 if (c0_ < 0 || c0_ == '\n' || c0_ == '\r') return Token::ILLEGAL; in ScanString()
830 if (c0_ == quote) { in ScanString()
835 uc32 c = c0_; in ScanString()
841 while (c0_ != quote && c0_ >= 0 in ScanString()
842 && !unicode_cache_->IsLineTerminator(c0_)) { in ScanString()
843 uc32 c = c0_; in ScanString()
846 if (c0_ < 0 || !ScanEscape<false, false>()) return Token::ILLEGAL; in ScanString()
851 if (c0_ != quote) return Token::ILLEGAL; in ScanString()
880 uc32 c = c0_; in ScanTemplateSpan()
886 } else if (c == '$' && c0_ == '{') { in ScanTemplateSpan()
891 if (c0_ > 0 && unicode_cache_->IsLineTerminator(c0_)) { in ScanTemplateSpan()
894 uc32 lastChar = c0_; in ScanTemplateSpan()
898 if (c0_ == '\n') { in ScanTemplateSpan()
917 if (c0_ == '\n') { in ScanTemplateSpan()
935 DCHECK(c0_ == '`'); in ScanTemplateStart()
950 while (IsDecimalDigit(c0_)) in ScanDecimalDigits()
956 DCHECK(IsDecimalDigit(c0_)); // the first digit of the number or the fraction in ScanNumber()
969 if (c0_ == '0') { in ScanNumber()
975 if (c0_ == 'x' || c0_ == 'X') { in ScanNumber()
979 if (!IsHexDigit(c0_)) { in ScanNumber()
983 while (IsHexDigit(c0_)) { in ScanNumber()
986 } else if (c0_ == 'o' || c0_ == 'O') { in ScanNumber()
989 if (!IsOctalDigit(c0_)) { in ScanNumber()
993 while (IsOctalDigit(c0_)) { in ScanNumber()
996 } else if (c0_ == 'b' || c0_ == 'B') { in ScanNumber()
999 if (!IsBinaryDigit(c0_)) { in ScanNumber()
1003 while (IsBinaryDigit(c0_)) { in ScanNumber()
1006 } else if ('0' <= c0_ && c0_ <= '7') { in ScanNumber()
1010 if (c0_ == '8' || c0_ == '9') { in ScanNumber()
1015 if (c0_ < '0' || '7' < c0_) { in ScanNumber()
1029 while (IsDecimalDigit(c0_)) { in ScanNumber()
1030 value = 10 * value + (c0_ - '0'); in ScanNumber()
1032 uc32 first_char = c0_; in ScanNumber()
1038 value <= Smi::kMaxValue && c0_ != '.' && c0_ != 'e' && c0_ != 'E') { in ScanNumber()
1049 if (c0_ == '.') { in ScanNumber()
1057 if (c0_ == 'e' || c0_ == 'E') { in ScanNumber()
1062 if (c0_ == '+' || c0_ == '-') in ScanNumber()
1064 if (!IsDecimalDigit(c0_)) { in ScanNumber()
1075 if (IsDecimalDigit(c0_) || in ScanNumber()
1076 (c0_ >= 0 && unicode_cache_->IsIdentifierStart(c0_))) in ScanNumber()
1087 if (c0_ != 'u') return -1; in ScanIdentifierUnicodeEscape()
1097 if (c0_ == '{') { in ScanUnicodeEscape()
1103 if (c0_ != '}') { in ScanUnicodeEscape()
1236 DCHECK(unicode_cache_->IsIdentifierStart(c0_)); in ScanIdentifierOrKeyword()
1238 if (IsInRange(c0_, 'a', 'z')) { in ScanIdentifierOrKeyword()
1240 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1243 } while (IsInRange(c0_, 'a', 'z')); in ScanIdentifierOrKeyword()
1245 if (IsDecimalDigit(c0_) || IsInRange(c0_, 'A', 'Z') || c0_ == '_' || in ScanIdentifierOrKeyword()
1246 c0_ == '$') { in ScanIdentifierOrKeyword()
1248 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1251 while (IsAsciiIdentifier(c0_)) { in ScanIdentifierOrKeyword()
1252 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1256 if (c0_ <= kMaxAscii && c0_ != '\\') { in ScanIdentifierOrKeyword()
1260 } else if (c0_ <= kMaxAscii && c0_ != '\\') { in ScanIdentifierOrKeyword()
1268 } else if (IsInRange(c0_, 'A', 'Z') || c0_ == '_' || c0_ == '$') { in ScanIdentifierOrKeyword()
1270 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1273 } while (IsAsciiIdentifier(c0_)); in ScanIdentifierOrKeyword()
1275 if (c0_ <= kMaxAscii && c0_ != '\\') { in ScanIdentifierOrKeyword()
1281 } else if (c0_ == '\\') { in ScanIdentifierOrKeyword()
1293 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1299 while (c0_ >= 0 && unicode_cache_->IsIdentifierPart(c0_)) { in ScanIdentifierOrKeyword()
1300 if (c0_ != '\\') { in ScanIdentifierOrKeyword()
1301 uc32 next_char = c0_; in ScanIdentifierOrKeyword()
1323 while (c0_ >= 0 && unicode_cache_->IsIdentifierPart(c0_)) { in ScanIdentifierSuffix()
1324 if (c0_ == '\\') { in ScanIdentifierSuffix()
1335 AddLiteralChar(c0_); in ScanIdentifierSuffix()
1366 while (c0_ != '/' || in_character_class) { in ScanRegExpPattern()
1367 if (c0_ < 0 || unicode_cache_->IsLineTerminator(c0_)) return false; in ScanRegExpPattern()
1368 if (c0_ == '\\') { // Escape sequence. in ScanRegExpPattern()
1370 if (c0_ < 0 || unicode_cache_->IsLineTerminator(c0_)) return false; in ScanRegExpPattern()
1383 if (c0_ == '[') in_character_class = true; in ScanRegExpPattern()
1384 if (c0_ == ']') in_character_class = false; in ScanRegExpPattern()
1400 while (c0_ >= 0 && unicode_cache_->IsIdentifierPart(c0_)) { in ScanRegExpFlags()
1402 switch (c0_) { in ScanRegExpFlags()
1484 if (c0_ != kNoBookmark && bookmark_c0_ == kNoBookmark && in SetBookmark()
1486 bookmark_c0_ = c0_; in SetBookmark()
1499 c0_ = bookmark_c0_; in ResetToBookmark()