Changeset 27748 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 13, 2007, 12:05:03 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r27747 r27748 1 2007-11-12 Geoffrey Garen <[email protected]> 2 3 Reviewed by Sam Weinig. 4 5 Fixed http://bugs.webkit.org/show_bug.cgi?id=15958 6 base64 spends 1.1% of total time checking for special Infinity case 7 8 Use a fast character test instead of calling strncmp. 9 10 1.1% speedup on string-base64. SunSpider reports a .4% speedup overall; 11 Sharks reports only .1%. Who are you going to believe? Huh? 12 13 * kjs/ustring.cpp: 14 (KJS::UString::toDouble): 15 1 16 2007-11-12 Eric Seidel <[email protected]> 2 17 -
trunk/JavaScriptCore/kjs/ustring.cpp
r27746 r27748 1002 1002 // whereas the ECMA spec requires that it be converted to NaN. 1003 1003 1004 if ( strncmp(c, "Infinity", 8) == 0) {1004 if (c[0] == 'I' && c[1] == 'n' && c[2] == 'f' && c[3] == 'i' && c[4] == 'n' && c[5] == 'i' && c[6] == 't' && c[7] == 'y') { 1005 1005 d = sign * Inf; 1006 1006 c += 8;
Note:
See TracChangeset
for help on using the changeset viewer.