From 5eae41e5183ac7e6068b2b2af06743cc153af824 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Wed, 16 Oct 2013 11:16:49 +0000 Subject: [PATCH] Return descriptor ownership after TrimDescriptorArray to allow resharing of descriptor arrays BUG=None R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/27197002 Patch from Ross McIlroy . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17237 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/objects.cc b/src/objects.cc index d71c508f8b..4aef808886 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -9381,6 +9381,7 @@ void Map::ClearNonLiveTransitions(Heap* heap) { if (number_of_own_descriptors > 0) { TrimDescriptorArray(heap, this, descriptors, number_of_own_descriptors); ASSERT(descriptors->number_of_descriptors() == number_of_own_descriptors); + set_owns_descriptors(true); } else { ASSERT(descriptors == GetHeap()->empty_descriptor_array()); }