Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cc6ae919a8a37927b840575a8ed9235b571bbdfb..f9d4339e76037db099b9096e664a3ce5dccb64ed 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8061,9 +8061,10 @@ Handle<Map> Map::CopyDropDescriptors(Handle<Map> map) { |
Handle<Map> result = RawCopy(map, map->instance_size()); |
// Please note instance_type and instance_size are set when allocated. |
- result->SetInObjectProperties(map->GetInObjectProperties()); |
- result->set_unused_property_fields(map->unused_property_fields()); |
- |
+ if (map->IsJSObjectMap()) { |
Camillo Bruni
2015/11/11 12:38:21
Probably should only allow this during bootstrappi
|
+ result->SetInObjectProperties(map->GetInObjectProperties()); |
+ result->set_unused_property_fields(map->unused_property_fields()); |
+ } |
result->ClearCodeCache(map->GetHeap()); |
map->NotifyLeafMapLayoutChange(); |
return result; |