Clear exceptions set during attempts to lazily optimize.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Feb 2011 11:17:31 +0000 (11:17 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 25 Feb 2011 11:17:31 +0000 (11:17 +0000)
commit485f4ea0d99fa083cda714234ebdd8b8e7d412cf
tree9bb23b9087c03b3f63982700815eae4b08a5f4a1
parentc416ddf166bb2f45cbd92c2e91f5bf93f9b2ca90
Clear exceptions set during attempts to lazily optimize.

Resubmit of patch for issue 1145 with a few additions:
- Now also clears exceptions when calling Runtime_LazyRecompile.
- Sets function where parsing fails to not be optimizable.

BUG=v8:1145
TEST=test/mjsunit/regress/regress-1145.js

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6945 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/handles.cc
src/handles.h
src/hydrogen.cc
src/objects.cc
src/runtime.cc
test/mjsunit/regress/regress-1145.js [new file with mode: 0644]