JavaScriptCore:
2008-05-29 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver.
- fixed <rdar://problem/
5972943> REGRESSION(r33979): Flash clips do not play on cnn.com
Finally blocks could clobber registers that had to remain live
until they returned. This patch takes a conservative approach and
makes sure that finally blocks do not reuse any registers that
were previously allocated for the function. In the future this
could probably be tightened up to be less profligate with the
register allocation.
* VM/CodeGenerator.cpp:
(KJS::CodeGenerator::highestUsedRegister):
* VM/CodeGenerator.h:
* kjs/nodes.cpp:
(KJS::TryNode::emitCode):
LayoutTests:
2008-05-29 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver. Test by Geoff Garen.
- fixed <rdar://problem/
5972943> REGRESSION(r33979): Flash clips do not play on cnn.com
* fast/js/finally-codegen-failure-expected.txt: Added.
* fast/js/finally-codegen-failure.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34250
268f45cc-cd09-0410-ab3c-
d52691b4dbfc