From 4b5ca4f396cb685904631d5ee28fd246f364a798 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 20 Oct 2014 12:32:23 +0000 Subject: [PATCH] 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 --- src/objects.cc | 11 ----------- src/objects.h | 5 ----- 2 files changed, 16 deletions(-) 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);