Fix a problem with const initialization in the top-level code generator.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Jan 2010 17:22:57 +0000 (17:22 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 12 Jan 2010 17:22:57 +0000 (17:22 +0000)
commitfdba189730471ffb560ed8284cf6d05b24de2c07
treed254188615281e425ad50e7051e5465448f26b9c
parent6cabd63572c0bc21fd6fc326b63f89bc0181462f
Fix a problem with const initialization in the top-level code generator.

When initializing the special local variable containing the reference to the enclosing
function in named functions we now (correctly) emit an INIT_CONST instead of INIT_VAR,
and we correctly bail out in the top-level code generator.

Also part of this change is adding missing statement position information
for some statements in the top-level code generator.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3587 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/codegen-arm.cc
src/arm/codegen-arm.h
src/compiler.cc
src/fast-codegen.cc
src/ia32/codegen-ia32.cc
src/parser.cc
src/x64/codegen-x64.cc