• Home
  • Raw
  • Download

Lines Matching refs:c0_

62     digits[i] = c0_;  in ScanHexNumber()
63 int d = HexValue(c0_); in ScanHexNumber()
223 if (static_cast<unsigned>(c0_) <= 0x7f) { in Next()
224 Token::Value token = static_cast<Token::Value>(one_char_tokens[c0_]); in Next()
259 if (unicode_cache_->IsLineTerminator(c0_)) { in SkipWhiteSpace()
261 } else if (!unicode_cache_->IsWhiteSpace(c0_) && in SkipWhiteSpace()
262 !IsLittleEndianByteOrderMark(c0_)) { in SkipWhiteSpace()
272 if (c0_ == '-' && has_line_terminator_before_next_) { in SkipWhiteSpace()
274 if (c0_ == '-') { in SkipWhiteSpace()
276 if (c0_ == '>') { in SkipWhiteSpace()
300 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in SkipSingleLineComment()
310 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in SkipSourceURLComment()
321 if (!unicode_cache_->IsWhiteSpace(c0_)) in TryToParseSourceURLComment()
325 while (c0_ >= 0 && !unicode_cache_->IsWhiteSpaceOrLineTerminator(c0_) && in TryToParseSourceURLComment()
326 c0_ != '=') { in TryToParseSourceURLComment()
327 name.AddChar(c0_); in TryToParseSourceURLComment()
340 if (c0_ != '=') in TryToParseSourceURLComment()
344 while (c0_ >= 0 && unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
347 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
349 if (c0_ == '"' || c0_ == '\'') { in TryToParseSourceURLComment()
353 if (unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
356 value->AddChar(c0_); in TryToParseSourceURLComment()
360 while (c0_ >= 0 && !unicode_cache_->IsLineTerminator(c0_)) { in TryToParseSourceURLComment()
361 if (!unicode_cache_->IsWhiteSpace(c0_)) { in TryToParseSourceURLComment()
371 DCHECK(c0_ == '*'); in SkipMultiLineComment()
374 while (c0_ >= 0) { in SkipMultiLineComment()
375 uc32 ch = c0_; in SkipMultiLineComment()
385 if (ch == '*' && c0_ == '/') { in SkipMultiLineComment()
386 c0_ = ' '; in SkipMultiLineComment()
398 DCHECK(c0_ == '!'); in ScanHtmlComment()
400 if (c0_ == '-') { in ScanHtmlComment()
402 if (c0_ == '-') return SkipSingleLineComment(); in ScanHtmlComment()
406 DCHECK(c0_ == '!'); in ScanHtmlComment()
418 switch (c0_) { in Scan()
438 if (c0_ == '=') { in Scan()
440 } else if (c0_ == '<') { in Scan()
442 } else if (c0_ == '!') { in Scan()
452 if (c0_ == '=') { in Scan()
454 } else if (c0_ == '>') { in Scan()
457 if (c0_ == '=') { in Scan()
459 } else if (c0_ == '>') { in Scan()
472 if (c0_ == '=') { in Scan()
474 } else if (c0_ == '>') { in Scan()
484 if (c0_ == '=') { in Scan()
494 if (c0_ == '+') { in Scan()
496 } else if (c0_ == '=') { in Scan()
506 if (c0_ == '-') { in Scan()
508 if (c0_ == '>' && has_line_terminator_before_next_) { in Scan()
515 } else if (c0_ == '=') { in Scan()
535 if (c0_ == '/') { in Scan()
537 if (c0_ == '@' || c0_ == '#') { in Scan()
541 PushBack(c0_); in Scan()
544 } else if (c0_ == '*') { in Scan()
546 } else if (c0_ == '=') { in Scan()
556 if (c0_ == '&') { in Scan()
558 } else if (c0_ == '=') { in Scan()
568 if (c0_ == '|') { in Scan()
570 } else if (c0_ == '=') { in Scan()
585 if (IsDecimalDigit(c0_)) { in Scan()
637 if (unicode_cache_->IsIdentifierStart(c0_)) { in Scan()
639 } else if (IsDecimalDigit(c0_)) { in Scan()
643 } else if (c0_ < 0) { in Scan()
682 uc32 c = c0_; in ScanEscape()
688 if (IsCarriageReturn(c) && IsLineFeed(c0_)) Advance(); in ScanEscape()
690 if (IsLineFeed(c) && IsCarriageReturn(c0_)) Advance(); in ScanEscape()
738 int d = c0_ - '0'; in ScanOctalEscape()
758 uc32 quote = c0_; in ScanString()
762 while (c0_ != quote && c0_ >= 0 in ScanString()
763 && !unicode_cache_->IsLineTerminator(c0_)) { in ScanString()
764 uc32 c = c0_; in ScanString()
767 if (c0_ < 0 || !ScanEscape()) return Token::ILLEGAL; in ScanString()
772 if (c0_ != quote) return Token::ILLEGAL; in ScanString()
781 while (IsDecimalDigit(c0_)) in ScanDecimalDigits()
787 DCHECK(IsDecimalDigit(c0_)); // the first digit of the number or the fraction in ScanNumber()
799 if (c0_ == '0') { in ScanNumber()
805 if (c0_ == 'x' || c0_ == 'X') { in ScanNumber()
809 if (!IsHexDigit(c0_)) { in ScanNumber()
813 while (IsHexDigit(c0_)) { in ScanNumber()
816 } else if (harmony_numeric_literals_ && (c0_ == 'o' || c0_ == 'O')) { in ScanNumber()
819 if (!IsOctalDigit(c0_)) { in ScanNumber()
823 while (IsOctalDigit(c0_)) { in ScanNumber()
826 } else if (harmony_numeric_literals_ && (c0_ == 'b' || c0_ == 'B')) { in ScanNumber()
829 if (!IsBinaryDigit(c0_)) { in ScanNumber()
833 while (IsBinaryDigit(c0_)) { in ScanNumber()
836 } else if ('0' <= c0_ && c0_ <= '7') { in ScanNumber()
840 if (c0_ == '8' || c0_ == '9') { in ScanNumber()
844 if (c0_ < '0' || '7' < c0_) { in ScanNumber()
857 if (c0_ == '.') { in ScanNumber()
865 if (c0_ == 'e' || c0_ == 'E') { in ScanNumber()
870 if (c0_ == '+' || c0_ == '-') in ScanNumber()
872 if (!IsDecimalDigit(c0_)) { in ScanNumber()
883 if (IsDecimalDigit(c0_) || unicode_cache_->IsIdentifierStart(c0_)) in ScanNumber()
894 if (c0_ != 'u') return -1; in ScanIdentifierUnicodeEscape()
1029 DCHECK(unicode_cache_->IsIdentifierStart(c0_)); in ScanIdentifierOrKeyword()
1032 if (c0_ == '\\') { in ScanIdentifierOrKeyword()
1044 uc32 first_char = c0_; in ScanIdentifierOrKeyword()
1049 while (unicode_cache_->IsIdentifierPart(c0_)) { in ScanIdentifierOrKeyword()
1050 if (c0_ != '\\') { in ScanIdentifierOrKeyword()
1051 uc32 next_char = c0_; in ScanIdentifierOrKeyword()
1077 while (unicode_cache_->IsIdentifierPart(c0_)) { in ScanIdentifierSuffix()
1078 if (c0_ == '\\') { in ScanIdentifierSuffix()
1088 AddLiteralChar(c0_); in ScanIdentifierSuffix()
1115 while (c0_ != '/' || in_character_class) { in ScanRegExpPattern()
1116 if (unicode_cache_->IsLineTerminator(c0_) || c0_ < 0) return false; in ScanRegExpPattern()
1117 if (c0_ == '\\') { // Escape sequence. in ScanRegExpPattern()
1119 if (unicode_cache_->IsLineTerminator(c0_) || c0_ < 0) return false; in ScanRegExpPattern()
1132 if (c0_ == '[') in_character_class = true; in ScanRegExpPattern()
1133 if (c0_ == ']') in_character_class = false; in ScanRegExpPattern()
1146 DCHECK(c0_ == '\\'); in ScanLiteralUnicodeEscape()
1150 if (c0_ == 'u') { in ScanLiteralUnicodeEscape()
1154 if (!IsHexDigit(c0_)) break; in ScanLiteralUnicodeEscape()
1155 chars_read[i] = c0_; in ScanLiteralUnicodeEscape()
1178 while (unicode_cache_->IsIdentifierPart(c0_)) { in ScanRegExpFlags()
1179 if (c0_ != '\\') { in ScanRegExpFlags()