Reviewers: Igor Sheludko,
Message:
ptal
Description:
Revert preallocating of descriptors since right now getters and setters
cause
copying of descriptor arrays
BUG=
Please review this at https://codereview.chromium.org/1225213008/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+0, -9 lines):
M src/api-natives.cc
Index: src/api-natives.cc
diff --git a/src/api-natives.cc b/src/api-natives.cc
index
9e4ff99ef241c450d61043b144ff372e8e2f0120..5993859710a5e1d4063b6900c5af6d1168e82a97
100644
--- a/src/api-natives.cc
+++ b/src/api-natives.cc
@@ -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);
--
--
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/d/optout.