v8/test
kmillikin@chromium.org b625ce2b6b Fix a bug in scope analysis.
When recompiling code (e.g., when optimizing) we could incorrectly hoist
some function expressions.  This leads to incorrect results or a crash.  The
root cause was that functions were not correctly categorized as expression
or declaration at parse time.

This requires some extra hoops to prevent the print name "anonymous" for
functions created by 'new Function' from establishing a binding.

R=vegorov@chromium.org,kasperl@chromium.org
BUG=1583
TEST=regress-1583

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8838 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-08-05 08:28:11 +00:00
..
benchmarks Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00
cctest Minimize malloc heap allocation on process startup. 2011-08-04 15:18:18 +00:00
es5conform Revert "Make window.{undefined,NaN,Infinity} read-only" 2011-08-03 09:53:14 +00:00
message Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00
mjsunit Fix a bug in scope analysis. 2011-08-05 08:28:11 +00:00
mozilla Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00
preparser Revert "Make GYP build usable for day-to-day work" 2011-07-18 16:39:41 +00:00
sputnik Revert "Make window.{undefined,NaN,Infinity} read-only" 2011-08-03 09:53:14 +00:00
test262 Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00