Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index cb5f2b79009d756eebdf14afaa17900acd4eb019..329e74733e470e73e079a247024b169df9a9aea8 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -366,9 +366,12 @@ void Map::SharedMapVerify() { |
} |
-void Map::VerifyOmittedPrototypeChecks() { |
- if (!FLAG_omit_prototype_checks_for_leaf_maps) return; |
- if (HasTransitionArray() || is_dictionary_map()) { |
+void Map::VerifyOmittedMapChecks() { |
+ if (!FLAG_omit_map_checks_for_leaf_maps) return; |
+ if (!is_stable() || |
+ is_deprecated() || |
+ HasTransitionArray() || |
+ is_dictionary_map()) { |
CHECK_EQ(0, dependent_code()->number_of_entries( |
DependentCode::kPrototypeCheckGroup)); |
} |