Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 3af0073b13c2f2ce736a683d8e3484ff03c3c6cd..e663998ccbca1649988cc0f599e1f86e1b5d637a 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -565,8 +565,9 @@ void TypeFeedbackOracle::GetRelocInfos(Handle<Code> code, |
void TypeFeedbackOracle::CreateDictionary(Handle<Code> code, |
ZoneList<RelocInfo>* infos) { |
DisableAssertNoAllocation allocation_allowed; |
+ int length = infos->length() + code->type_feedback_cells()->CellCount(); |
byte* old_start = code->instruction_start(); |
- dictionary_ = FACTORY->NewUnseededNumberDictionary(infos->length()); |
+ dictionary_ = FACTORY->NewUnseededNumberDictionary(length); |
byte* new_start = code->instruction_start(); |
RelocateRelocInfos(infos, old_start, new_start); |
} |