Bug 639420 - Speed up the scanner ten ways, part 5. r=brendan.

This commit is contained in:
Nicholas Nethercote 2011-03-16 15:17:38 -07:00
Родитель 67ab711320
Коммит 8d79a77d17
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1121,7 +1121,7 @@ TokenStream::getTokenInternal()
c = getCharIgnoreEOL();
} while (JS7_ISDEC(c));
}
if (JS_TOLOWER(c) == 'e') {
if (c == 'e' || c == 'E') {
hasFracOrExp = true;
c = getCharIgnoreEOL();
if (c == '+' || c == '-')
@ -1169,7 +1169,7 @@ TokenStream::getTokenInternal()
if (c == '0') {
int radix;
c = getCharIgnoreEOL();
if (JS_TOLOWER(c) == 'x') {
if (c == 'x' || c == 'X') {
radix = 16;
c = getCharIgnoreEOL();
if (!JS7_ISHEX(c)) {