Introduce local function declarations in Crankshaft and fix issue 1647.
We have to emit code for declarations later into the body block (and not into the start block) so that the environment contains the correct values. In order to capture the environment effect of the declarations that generate code (function declarations) I inserted a separate AST id and a HSimulate after the declarations are visited. Also fixes handling deopt in named function expressions: BUG=v8:1647 TEST=test/mjsunit/regress/regress-fundecl.js, test/mjsunit/regress/regress-1647.js Review URL: http://codereview.chromium.org/7776009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9083 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Showing
Please
register
or
sign in
to comment