Index: src/heap/object-stats.cc |
diff --git a/src/heap/object-stats.cc b/src/heap/object-stats.cc |
index a9f50cdfbf7d112c08a3c6f1931d5046833f54cd..f3db65c36b6640259996b01b7d3eb459c9786033 100644 |
--- a/src/heap/object-stats.cc |
+++ b/src/heap/object-stats.cc |
@@ -462,8 +462,8 @@ void ObjectStatsCollector::RecordMapDetails(Map* map_obj) { |
} |
} |
- if (map_obj->has_code_cache()) { |
- FixedArray* code_cache = map_obj->code_cache(); |
+ FixedArray* code_cache = map_obj->code_cache(); |
+ if (code_cache->length() > 0) { |
if (code_cache->IsCodeCacheHashTable()) { |
RecordHashTableHelper(map_obj, CodeCacheHashTable::cast(code_cache), |
MAP_CODE_CACHE_SUB_TYPE); |