Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 552d4f5516e3feaeb6f2ff9b6e838e5e8c465c34..f0d939411ce03f8d29b789579492afb97f9ab39e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1776,6 +1776,8 @@ void JSObject::MigrateToMap(Handle<JSObject> object, Handle<Map> new_map, |
if (!new_map->is_dictionary_map()) { |
MigrateFastToFast(object, new_map); |
if (old_map->is_prototype_map()) { |
+ DCHECK(!old_map->is_stable()); |
+ DCHECK(new_map->is_stable()); |
// Clear out the old descriptor array to avoid problems to sharing |
// the descriptor array without using an explicit. |
old_map->InitializeDescriptors( |