Reintroduce the bailout that was put in in revision 3224.
It causes interactive ui test failures in Chromium.
TBR=fschneider@chromium.org
Review URL: http://codereview.chromium.org/421002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3337
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
void CodeGenSelector::VisitDeclaration(Declaration* decl) {
- if (decl->fun() != NULL) {
- ProcessExpression(decl->fun(), Expression::kValue);
+ Variable* var = decl->proxy()->var();
+ if (!var->is_global() || var->mode() == Variable::CONST) {
+ BAILOUT("Non-global declaration");
}
}