Commit 18b14d0a authored by verwaest's avatar verwaest Committed by Commit bot

Revert preallocating of descriptors since right now getters and setters cause...

Revert preallocating of descriptors since right now getters and setters cause copying of descriptor arrays

BUG=

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

Cr-Commit-Position: refs/heads/master@{#29579}
parent d90013d1
......@@ -151,15 +151,6 @@ MaybeHandle<JSObject> ConfigureInstance(Isolate* isolate, Handle<JSObject> obj,
PropertyAttributes attributes = details.attributes();
PropertyKind kind = details.kind();
if (obj->map()->owns_descriptors() &&
obj->map()->instance_descriptors()->length() != 0 &&
obj->map()->instance_descriptors()->NumberOfSlackDescriptors() == 0 &&
TransitionArray::SearchTransition(obj->map(), kind, *name,
attributes) == NULL) {
Map::EnsureDescriptorSlack(handle(obj->map()),
data->number_of_properties() - c);
}
if (kind == kData) {
auto prop_data = handle(properties.get(i++), isolate);
......
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