Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 85e03f1bfbd023493c3ffc3a758c3201e7608347..99344142b58b6802494087270acb6c80a844a0d3 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -289,6 +289,10 @@ FeedbackVectorRequirements ClassLiteral::ComputeFeedbackRequirements( |
if (FunctionLiteral::NeedsHomeObject(value)) ic_slots++; |
} |
+ if (scope() != NULL && class_variable_proxy()->var()->IsUnallocated()) { |
+ ic_slots++; |
+ } |
+ |
#ifdef DEBUG |
// FullCodeGenerator::VisitClassLiteral verifies that it consumes slot_count_ |
// slots. |