diff --git a/src/type-info.cc b/src/type-info.cc index 3af0073b13..e663998ccb 100644 --- a/src/type-info.cc +++ b/src/type-info.cc @@ -565,8 +565,9 @@ void TypeFeedbackOracle::GetRelocInfos(Handle code, void TypeFeedbackOracle::CreateDictionary(Handle code, ZoneList* 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); }