Index: src/rewriter.cc |
diff --git a/src/rewriter.cc b/src/rewriter.cc |
index 6641f2615a9afc3ef3f490d02c98329dc16e2f26..4e3676b7daf9ac31a72c3326017b95bbcc64dfda 100644 |
--- a/src/rewriter.cc |
+++ b/src/rewriter.cc |
@@ -194,7 +194,7 @@ void AstOptimizer::VisitFunctionLiteral(FunctionLiteral* node) { |
if (node->name()->length() == 0) { |
// Anonymous function. |
- func_name_inferrer_.SetFuncToInfer(node); |
+ func_name_inferrer_.AddFunction(node); |
} |
} |
@@ -282,10 +282,7 @@ void AstOptimizer::VisitAssignment(Assignment* node) { |
case Token::ASSIGN: |
// No type can be infered from the general assignment. |
- if (node->value()->AsFunctionLiteral() != NULL || |
- node->value()->AsObjectLiteral() != NULL) { |
- scoped_fni.Enter(); |
- } |
+ scoped_fni.Enter(); |
break; |
case Token::ASSIGN_BIT_OR: |
case Token::ASSIGN_BIT_XOR: |