Index: src/type-info.cc |
=================================================================== |
--- src/type-info.cc (revision 10013) |
+++ src/type-info.cc (working copy) |
@@ -415,7 +415,8 @@ |
ASSERT(Handle<Code>::cast(object)->ic_state() == MEGAMORPHIC); |
} else if (object->IsMap()) { |
types->Add(Handle<Map>::cast(object)); |
- } else if (Handle<Code>::cast(object)->ic_state() == MEGAMORPHIC) { |
+ } else if (FLAG_collect_megamorphic_maps_from_stub_cache && |
+ Handle<Code>::cast(object)->ic_state() == MEGAMORPHIC) { |
types->Reserve(4); |
ASSERT(object->IsCode()); |
isolate_->stub_cache()->CollectMatchingMaps(types, *name, flags); |