Revert r9047 to fix broken build.
I need some more time to properly fix the problem. TBR=kmillikin@chromium.org Review URL: http://codereview.chromium.org/7781008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9055 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
054b737ea5
commit
a846d482dd
@ -5804,17 +5804,13 @@ void HGraphBuilder::VisitThisFunction(ThisFunction* expr) {
|
||||
void HGraphBuilder::VisitDeclaration(Declaration* decl) {
|
||||
// We support only declarations that do not require code generation.
|
||||
Variable* var = decl->proxy()->var();
|
||||
if (!var->IsStackAllocated()) {
|
||||
if (!var->IsStackAllocated() || decl->fun() != NULL) {
|
||||
return Bailout("unsupported declaration");
|
||||
}
|
||||
|
||||
if (decl->mode() == Variable::CONST) {
|
||||
ASSERT(var->IsStackAllocated());
|
||||
environment()->Bind(var, graph()->GetConstantHole());
|
||||
} else if (decl->fun() != NULL) {
|
||||
VisitForValue(decl->fun());
|
||||
HValue* function = Pop();
|
||||
environment()->Bind(var, function);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user