Revert preallocating of descriptors since right now getters and setters cause copying...
authorverwaest <verwaest@chromium.org>
Fri, 10 Jul 2015 17:11:35 +0000 (10:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Jul 2015 17:11:50 +0000 (17:11 +0000)
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29579}

src/api-natives.cc

index 9e4ff99ef241c450d61043b144ff372e8e2f0120..5993859710a5e1d4063b6900c5af6d1168e82a97 100644 (file)
@@ -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);