Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 9575) |
+++ src/mark-compact.cc (working copy) |
@@ -716,6 +716,7 @@ |
// except the maps for the object and its possible substrings might be |
// marked. |
HeapObject* object = HeapObject::cast(*p); |
+ if (!FLAG_clever_optimizations) return object; |
Map* map = object->map(); |
InstanceType type = map->instance_type(); |
if ((type & kShortcutTypeMask) != kShortcutTypeTag) return object; |