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