Fix an issue with optimization of functions inside catch.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Jul 2011 14:05:46 +0000 (14:05 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Jul 2011 14:05:46 +0000 (14:05 +0000)
commita48c03bb2afcd52b7e120f6226e949c1e6f77579
treeb16e5678ee3501ce672855c0c1656fca3e7ddd81
parentb6779044c9c113c717c4ce1189a4bac8c583e687
Fix an issue with optimization of functions inside catch.

When optimizing a function defined inside a catch, we did not count
the catch context as part of the context chain.

R=vegorov@chromium.org
BUG=1521
TEST=regress-1521

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

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