Rebuild scope chain from serialized scope info before parsing lazily.
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Mar 2011 16:57:03 +0000 (16:57 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 9 Mar 2011 16:57:03 +0000 (16:57 +0000)
commit83616da7f5d0c95366e0832dd83787c03197ee77
tree3ec9e5d08f9c45ce3c584eefb2a57952a8789383
parent5dcd32beda349395dcb3ce4ab20149afb463b6ab
Rebuild scope chain from serialized scope info before parsing lazily.

We used to rebuild it in Scope::Analyze but this might lead to mismatch between scopes seen by parser during the first and the second parse of the function.

BUG=v8:1230

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7110 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/parser.h
src/scopes.cc
src/scopes.h