diff --git a/src/objects.cc b/src/objects.cc index b95787fe16..07ad6f1476 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -2161,17 +2161,6 @@ void JSObject::MigrateFastToFast(Handle object, Handle new_map) { } -void JSObject::GeneralizeFieldRepresentation(Handle object, - int modify_index, - Representation new_representation, - Handle new_field_type) { - Handle new_map = Map::GeneralizeRepresentation( - handle(object->map()), modify_index, new_representation, new_field_type, - FORCE_FIELD); - MigrateToMap(object, new_map); -} - - int Map::NumberOfFields() { DescriptorArray* descriptors = instance_descriptors(); int result = 0; diff --git a/src/objects.h b/src/objects.h index 603f7b3e3f..41beca4d8a 100644 --- a/src/objects.h +++ b/src/objects.h @@ -2236,11 +2236,6 @@ class JSObject: public JSReceiver { Handle new_map, int expected_additional_properties); - static void GeneralizeFieldRepresentation(Handle object, - int modify_index, - Representation new_representation, - Handle new_field_type); - static void UpdateAllocationSite(Handle object, ElementsKind to_kind);