JavaScriptCore:
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Sep 2008 12:17:33 +0000 (12:17 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Sep 2008 12:17:33 +0000 (12:17 +0000)
commit4422070f78438abb912e007d15611f7380cfb4a7
tree769ff92da1cb0d38104c89d1eaa8c6556d60ba82
parented566b579a685d9f32c68ab62815fd7546a03de5
JavaScriptCore:

2008-09-08  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Anders Carlsson.

        - Cache the code generated for eval to speed up SunSpider and web sites
        https://bugs.webkit.org/show_bug.cgi?id=20718

        1.052x on SunSpider
        2.29x on date-format-tofte

        Lots of real sites seem to get many hits on this cache as well,
        including GMail, Google Spreadsheets, Slate and Digg (the last of
        these gets over 100 hits on initial page load).

        * VM/CodeBlock.h:
        (JSC::EvalCodeCache::get):
        * VM/Machine.cpp:
        (JSC::Machine::callEval):
        (JSC::Machine::privateExecute):
        (JSC::Machine::cti_op_call_eval):
        * VM/Machine.h:

LayoutTests:

2008-09-08  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Anders Carlsson.

        - Test for potential bug found while fixing "Cache the code generated for eval to speed up SunSpider and web sites"
        https://bugs.webkit.org/show_bug.cgi?id=20718

        * fast/js/eval-cache-crash-expected.txt: Added.
        * fast/js/eval-cache-crash.html: Added.
        * fast/js/resources/eval-cache-crash.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@36267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/VM/CodeBlock.h
JavaScriptCore/VM/Machine.cpp
JavaScriptCore/VM/Machine.h
LayoutTests/ChangeLog
LayoutTests/fast/js/eval-cache-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/eval-cache-crash.html [new file with mode: 0644]
LayoutTests/fast/js/resources/eval-cache-crash.js [new file with mode: 0644]