Revert "Revert "Fix a bug in scope analysis.""
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 8 Aug 2011 16:14:46 +0000 (16:14 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 8 Aug 2011 16:14:46 +0000 (16:14 +0000)
commitd941053dbe8433bf149a5db869cd17048486e8d2
tree185e22aeebd98f561084fb76ed374a416085d317
parent8e62a1c72c12d6ecfdad79c4f45f4ac0e6ec9eb9
Revert "Revert "Fix a bug in scope analysis.""

Reapply r8838 with a fix for the issue of function names.

Because function names can be added/changed/removed through the API,
remember whether the function is anonymous when initially parsed and use
that information when compiling.

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

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8858 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler.cc
src/heap.cc
src/objects-inl.h
src/objects.h
src/parser.cc
src/parser.h
src/runtime.cc
src/runtime.h
src/v8natives.js
test/mjsunit/regress/regress-1583.js [new file with mode: 0644]