Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 286767e34c38828007a54e9d402df337bb0a3ec8..091ea8b5d85af7ed5c5bffda6035b7f25b4d2519 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2609,6 +2609,13 @@ void MarkCompactCollector::TrimDescriptorArray(Map* map, |
if (descriptors->HasEnumCache()) TrimEnumCache(map, descriptors); |
descriptors->Sort(); |
+ |
+ if (FLAG_unbox_double_fields) { |
+ LayoutDescriptor* layout_descriptor = map->layout_descriptor(); |
+ layout_descriptor = layout_descriptor->Trim(heap_, map, descriptors, |
+ number_of_own_descriptors); |
+ SLOW_DCHECK(layout_descriptor->IsConsistentWithMap(map, true)); |
+ } |
} |