зеркало из https://github.com/mozilla/gecko-dev.git
Bug 639420 - Speed up the scanner ten ways, part 5. r=brendan.
This commit is contained in:
Родитель
67ab711320
Коммит
8d79a77d17
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче