JavaScriptCore:
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2008 21:05:16 +0000 (21:05 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2008 21:05:16 +0000 (21:05 +0000)
commitf1005226bc7ca5da6c3c030404241fac95f7c6b4
treedf11afa69f2cbce7450dcaf467916defda98c3e5
parent708ab3a4b5974f5406ac164b77a987981e1515a7
JavaScriptCore:

        Reviewed by Geoff.

        - Correctly report cost of appended strings to trigger GC.

        * kjs/ustring.cpp:
        (KJS::):
        (KJS::UString::Rep::create):
        (KJS::UString::UString): Don't create unnecssary objects.
        (KJS::UString::cost): Report cost if necessary but also keep track of
        reported cost.
        * kjs/ustring.h:

LayoutTests:

        Reviewed by Geoff.

        - Correctly report cost of appended strings to trigger GC.

        * fast/js/garbage-collect-after-string-appends-expected.txt: Added.
        * fast/js/garbage-collect-after-string-appends.html: Added.
        * fast/js/resources/garbage-collect-after-string-appends.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/ustring.cpp
JavaScriptCore/kjs/ustring.h
LayoutTests/ChangeLog
LayoutTests/fast/js/garbage-collect-after-string-appends-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/garbage-collect-after-string-appends.html [new file with mode: 0644]
LayoutTests/fast/js/resources/garbage-collect-after-string-appends.js [new file with mode: 0644]