Fast path for jsStringWithCache() when asked for the same string repeatedly.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jul 2014 21:06:15 +0000 (21:06 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jul 2014 21:06:15 +0000 (21:06 +0000)
commit1be28a2545e062282b8a8ce126720bc5d99f5dc4
tree5c49cdc636a262a5bae51f0c8eeca3d9f870bd8a
parentf6cebbe545e5b2c8cae0f1b5eb2cd9a47f7db50c
Fast path for jsStringWithCache() when asked for the same string repeatedly.
<https://webkit.org/b/134635>

Reviewed by Darin Adler.

Follow-up to r170818 addressing a review comment by Geoff Garen.

* runtime/JSString.cpp:
(JSC::jsStringWithCacheSlowCase):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSString.cpp