From 5164b9a473e3750dd531f4db34867de981362a65 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Tue, 26 Aug 2014 13:01:55 +0000 Subject: [PATCH] Delete unused DescriptorArray::Append with whitenesswitness BUG= R=yangguo@chromium.org Review URL: https://codereview.chromium.org/501363002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23399 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects-inl.h | 21 --------------------- src/objects.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/src/objects-inl.h b/src/objects-inl.h index 9289900675..33000b668e 100644 --- a/src/objects-inl.h +++ b/src/objects-inl.h @@ -3052,27 +3052,6 @@ void DescriptorArray::Set(int descriptor_number, Descriptor* desc) { } -void DescriptorArray::Append(Descriptor* desc, - const WhitenessWitness& witness) { - DisallowHeapAllocation no_gc; - int descriptor_number = number_of_descriptors(); - SetNumberOfDescriptors(descriptor_number + 1); - Set(descriptor_number, desc, witness); - - uint32_t hash = desc->GetKey()->Hash(); - - int insertion; - - for (insertion = descriptor_number; insertion > 0; --insertion) { - Name* key = GetSortedKey(insertion - 1); - if (key->Hash() <= hash) break; - SetSortedKey(insertion, GetSortedKeyIndex(insertion - 1)); - } - - SetSortedKey(insertion, descriptor_number); -} - - void DescriptorArray::Append(Descriptor* desc) { DisallowHeapAllocation no_gc; int descriptor_number = number_of_descriptors(); diff --git a/src/objects.h b/src/objects.h index 4ba4c95f42..9fa6bd7917 100644 --- a/src/objects.h +++ b/src/objects.h @@ -3484,8 +3484,6 @@ class DescriptorArray: public FixedArray { Descriptor* desc, const WhitenessWitness&); - inline void Append(Descriptor* desc, const WhitenessWitness&); - // Swap first and second descriptor. inline void SwapSortedKeys(int first, int second);