Commit d0f0767f authored by hpayer's avatar hpayer Committed by Commit bot

Revert of Tenure descriptor arrays. (patchset #1 id:1 of...

Revert of Tenure descriptor arrays. (patchset #1 id:1 of https://codereview.chromium.org/1526663002/ )

Reason for revert:
Regresses memory consumption.

BUG=571180,571657
LOG=n

Original issue's description:
> Tenure descriptor arrays.
>
> BUG=
>
> Committed: https://crrev.com/74bc69166de8cfb967e79b5c8cc31c2a76490dc8
> Cr-Commit-Position: refs/heads/master@{#32846}

TBR=ishell@chromium.org,ulan@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.

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

Cr-Commit-Position: refs/heads/master@{#33394}
parent 837e374e
...@@ -10781,7 +10781,7 @@ Handle<DescriptorArray> DescriptorArray::Allocate(Isolate* isolate, ...@@ -10781,7 +10781,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), TENURED); Handle<FixedArray> result = factory->NewFixedArray(LengthFor(size));
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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment