Fix issue 259.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 Mar 2009 10:18:33 +0000 (10:18 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 Mar 2009 10:18:33 +0000 (10:18 +0000)
commitb638d5c61325c564753a5f819a450a383b2a9561
tree28b7c8a04e7708c0f878005e03f4bfc01cbfc783
parent3d9c24c8a4922c72549091d63a82b135995af818
Fix issue 259.

http://code.google.com/p/v8/issues/detail?id=259

Due to constant folding of loop conditions, it is possible to have a
try/finally with no exits from the try block (eg, an infinite loop in
the try block).  In that case the code to unlink the try handler is
dead and should not be emitted.

Review URL: http://codereview.chromium.org/39251

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1434 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/codegen-ia32.cc
test/mjsunit/regress/regress-259.js [new file with mode: 0644]