Fix SVN merge problem in the top-level compiler.

(Remove bailout on non-global declarations again)

TBR=whesse@chromium.org
Review URL: http://codereview.chromium.org/372054

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3245 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent db357420
......@@ -650,16 +650,6 @@ void CodeGenSelector::VisitDeclaration(Declaration* decl) {
if (decl->fun() != NULL) {
ProcessExpression(decl->fun(), Expression::kValue);
}
Variable* var = decl->proxy()->var();
ASSERT_NOT_NULL(var);
if ((!var->is_global() && decl->fun() != NULL)) {
BAILOUT("Non-global function declaration");
}
if ((!var->is_global() &&
var->slot() != NULL &&
var->slot()->type() == Slot::LOOKUP)) {
BAILOUT("Lookup slot encountered in declaration");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment