REGRESSION: These sorting idioms used by Peacekeeper and Browsermark are ~20X slower
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 May 2015 20:42:00 +0000 (20:42 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 May 2015 20:42:00 +0000 (20:42 +0000)
commit2c44e9b7c6fd11345c7545ffc0823f2b3e3652d1
treeb63fa537aca14528d143f182bc2bcc210e127397
parent29355ab4c64051b63447fda0c1f5a5cf31f1a075
REGRESSION: These sorting idioms used by Peacekeeper and Browsermark are ~20X slower
https://bugs.webkit.org/show_bug.cgi?id=145412

Reviewed by Darin Adler.

Use @toString instead of the String constructor because calls to the
String constructor are never optimized. (See
https://bugs.webkit.org/show_bug.cgi?id=144458.)

This is a ~2X speedup.

* builtins/Array.prototype.js:
(sort.stringComparator):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/Array.prototype.js