Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 52990b8feedeb93109e7465913ec746c64b24c6f..9cdae545da4f9d586e0f43fe556c32354103d4a4 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -476,6 +476,7 @@ void CountOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle, |
void CaseClause::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
TypeInfo info = oracle->SwitchType(this); |
+ if (info.IsUninitialized()) info = TypeInfo::Unknown(); |
if (info.IsSmi()) { |
compare_type_ = SMI_ONLY; |
} else if (info.IsSymbol()) { |
@@ -604,18 +605,6 @@ void CallNew::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
} |
-void CompareOperation::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
- TypeInfo info = oracle->CompareType(this); |
- if (info.IsSmi()) { |
- compare_type_ = SMI_ONLY; |
- } else if (info.IsNonPrimitive()) { |
- compare_type_ = OBJECT_ONLY; |
- } else { |
- ASSERT(compare_type_ == NONE); |
- } |
-} |
- |
- |
void ObjectLiteral::Property::RecordTypeFeedback(TypeFeedbackOracle* oracle) { |
receiver_type_ = oracle->ObjectLiteralStoreIsMonomorphic(this) |
? oracle->GetObjectLiteralStoreMap(this) |