Refactoring of code generation for declarations, in preparation for modules.
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Apr 2012 11:48:20 +0000 (11:48 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Apr 2012 11:48:20 +0000 (11:48 +0000)
commit43a52c4ceea9b973e5f2b3b98ddb0d14e41e4ef7
treec7be5cd9a515d6b5f0c0b050cafa3ab3f8306e45
parentef29accd6ffaf3cc0f1cd63da6dbf6748bc51b80
Refactoring of code generation for declarations, in preparation for modules.

Do proper dispatch on declaration type instead of mingling together
different code generation paths. Once we add more declaration forms,
this is more scalable.

In separate steps, I'd like to (1) clean up the logic for DeclareGlobal,
and (2) try to reduce the special handling of the name function var if
possible.

R=fschneider@chromium.org
BUG=
TEST=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11331 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
12 files changed:
src/arm/full-codegen-arm.cc
src/full-codegen.cc
src/full-codegen.h
src/hydrogen.cc
src/hydrogen.h
src/ia32/full-codegen-ia32.cc
src/parser.cc
src/runtime.cc
src/scopeinfo.cc
src/scopes.cc
src/scopes.h
src/x64/full-codegen-x64.cc