Tenure descriptor arrays.
BUG= Review URL: https://codereview.chromium.org/1526663002 Cr-Commit-Position: refs/heads/master@{#32846}
This commit is contained in:
parent
a2f2e913f8
commit
74bc69166d
@ -10507,7 +10507,7 @@ Handle<DescriptorArray> DescriptorArray::Allocate(Isolate* isolate,
|
|||||||
int size = number_of_descriptors + slack;
|
int size = number_of_descriptors + slack;
|
||||||
if (size == 0) return factory->empty_descriptor_array();
|
if (size == 0) return factory->empty_descriptor_array();
|
||||||
// Allocate the array of keys.
|
// Allocate the array of keys.
|
||||||
Handle<FixedArray> result = factory->NewFixedArray(LengthFor(size));
|
Handle<FixedArray> result = factory->NewFixedArray(LengthFor(size), TENURED);
|
||||||
|
|
||||||
result->set(kDescriptorLengthIndex, Smi::FromInt(number_of_descriptors));
|
result->set(kDescriptorLengthIndex, Smi::FromInt(number_of_descriptors));
|
||||||
result->set(kEnumCacheIndex, Smi::FromInt(0));
|
result->set(kEnumCacheIndex, Smi::FromInt(0));
|
||||||
|
Loading…
Reference in New Issue
Block a user