Allow multiple function literals to be assigned to the same var / property.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 16 Apr 2009 16:34:24 +0000 (16:34 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 16 Apr 2009 16:34:24 +0000 (16:34 +0000)
commit7aacf00933a112ec388a51c11615f031ea05393a
treee53e890c4700d7d4272fd60f9cf02a0b7632f74c
parent5edf6f35bc00c14efff3229f0ecd77f3cca20b4a
Allow multiple function literals to be assigned to the same var / property.

In such a case all functions get the same name. I think it's a good performance / usability tradeoff. In case a developer wants more clarity, it's up to him to give names to functions.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1727 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/func-name-inferrer.cc
src/func-name-inferrer.h
src/rewriter.cc
test/cctest/test-func-name-inference.cc