From: verwaest@chromium.org Date: Mon, 20 Oct 2014 12:32:23 +0000 (+0000) Subject: Remove dead GeneralizeFieldRepresentation X-Git-Tag: upstream/4.7.83~6246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b5ca4f396cb685904631d5ee28fd246f364a798;p=platform%2Fupstream%2Fv8.git Remove dead GeneralizeFieldRepresentation BUG= R=ishell@chromium.org Review URL: https://codereview.chromium.org/668663002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24741 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/objects.cc b/src/objects.cc index b95787f..07ad6f1 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 603f7b3..41beca4 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);