Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 91da8a0117a9409891c69b01fa1dc79e785c5a77..0e8426702806379fd5290b781b7d7ffe0973c996 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -431,8 +431,8 @@ void MarkCompactCollector::CollectGarbage() { |
heap()->weak_embedded_maps_verification_enabled()) { |
VerifyWeakEmbeddedMapsInOptimizedCode(); |
} |
- if (FLAG_collect_maps && FLAG_omit_prototype_checks_for_leaf_maps) { |
- VerifyOmittedPrototypeChecks(); |
+ if (FLAG_collect_maps && FLAG_omit_map_checks_for_leaf_maps) { |
+ VerifyOmittedMapChecks(); |
} |
#endif |
@@ -503,13 +503,13 @@ void MarkCompactCollector::VerifyWeakEmbeddedMapsInOptimizedCode() { |
} |
-void MarkCompactCollector::VerifyOmittedPrototypeChecks() { |
+void MarkCompactCollector::VerifyOmittedMapChecks() { |
HeapObjectIterator iterator(heap()->map_space()); |
for (HeapObject* obj = iterator.Next(); |
obj != NULL; |
obj = iterator.Next()) { |
Map* map = Map::cast(obj); |
- map->VerifyOmittedPrototypeChecks(); |
+ map->VerifyOmittedMapChecks(); |
} |
} |
#endif // VERIFY_HEAP |