Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 12318ba3819357601f919f9c7fcef41d220fcaef..efbebcfe935238ccf5d577fbdd5767cb8b39f037 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -6183,6 +6183,8 @@ MaybeObject* Map::CopyReplaceDescriptors(DescriptorArray* descriptors, |
set_transitions(transitions); |
result->SetBackPointer(this); |
+ } else { |
+ descriptors->InitializeRepresentations(Representation::Tagged()); |
} |
return result; |
@@ -6220,6 +6222,8 @@ MaybeObject* Map::CopyInstallDescriptors(int new_descriptor, |
set_transitions(transitions); |
result->SetBackPointer(this); |
+ } else { |
+ descriptors->InitializeRepresentations(Representation::Tagged()); |
} |
return result; |
@@ -6294,8 +6298,6 @@ MaybeObject* Map::CopyWithPreallocatedFieldDescriptors() { |
descriptors->CopyUpTo(number_of_own_descriptors); |
if (!maybe_descriptors->To(&new_descriptors)) return maybe_descriptors; |
- new_descriptors->InitializeRepresentations(Representation::Tagged()); |
- |
return CopyReplaceDescriptors(new_descriptors, NULL, OMIT_TRANSITION, 0); |
} |