Force eager compilation of parenthesized functions.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 7 Aug 2012 14:47:36 +0000 (14:47 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 7 Aug 2012 14:47:36 +0000 (14:47 +0000)
commitfa2287fa968bd2c634dd7e89d5c6736f6f5b7f51
tree7a7e29203500d6b689df74cb9f0ce0e9a0442021
parentfb7345cdfd7d382a845af9dc73553f242ba9fe0b
Force eager compilation of parenthesized functions.

This makes the compiler use eager compilation for function literals that
are parenthesized. We consider this to be a hint that the function will
be called immediatly and hence try to avoid parsing it twice. The parser
already respects this heuristic.

R=ulan@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10836132

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