mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 416615 - Optimize JS_MAX(upcase(localMax), downcase(localMax)), r=mrbkap, blocking1.9=brendan, idea from BijuMailList@gmail.com
This commit is contained in:
parent
06933f868f
commit
cb2e41b183
@ -1055,7 +1055,10 @@ lexHex:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (state->flags & JSREG_FOLD) {
|
if (state->flags & JSREG_FOLD) {
|
||||||
c = (jschar) JS_MAX(upcase(localMax), downcase(localMax));
|
jschar uc = upcase(localMax);
|
||||||
|
jschar dc = downcase(localMax);
|
||||||
|
|
||||||
|
c = JS_MAX(uc, dc);
|
||||||
if (c > localMax)
|
if (c > localMax)
|
||||||
localMax = c;
|
localMax = c;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user