Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 10437) |
+++ src/mark-compact.cc (working copy) |
@@ -1623,9 +1623,7 @@ |
ASSERT(HEAP->Contains(object)); |
if (object->IsMap()) { |
Map* map = Map::cast(object); |
- if (FLAG_cleanup_code_caches_at_gc) { |
- map->ClearCodeCache(heap()); |
- } |
+ ClearCacheOnMap(map); |
// When map collection is enabled we have to mark through map's transitions |
// in a special way to make transition links weak. |