2008-07-01 Cameron Zwarich <cwzwarich@uwaterloo.ca>
Reviewed by Darin.
Bug 19844: JavaScript Switch statement modifies "this"
<https://bugs.webkit.org/show_bug.cgi?id=19844>
Use a temporary when generating code for switch clauses to avoid
overwriting 'this' or a local variable.
JavaScriptCore:
* kjs/nodes.cpp:
(KJS::CaseBlockNode::emitCodeForBlock):
LayoutTests:
* fast/js/codegen-temporaries-expected.txt:
* fast/js/resources/codegen-temporaries.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34940
268f45cc-cd09-0410-ab3c-
d52691b4dbfc