Revision: 17237
Author:   [email protected]
Date:     Wed Oct 16 11:16:49 2013 UTC
Log: Return descriptor ownership after TrimDescriptorArray to allow resharing of descriptor arrays

BUG=None
[email protected]

Review URL: https://codereview.chromium.org/27197002

Patch from Ross McIlroy <[email protected]>.
http://code.google.com/p/v8/source/detail?r=17237

Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Wed Oct 16 09:13:31 2013 UTC
+++ /branches/bleeding_edge/src/objects.cc      Wed Oct 16 11:16:49 2013 UTC
@@ -9381,6 +9381,7 @@
     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());
     }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to