Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 6f1c4e44e9484c4a80f672c91b7dfc30b47a48a5..765c2ec1424eb0fb79ffb7f3ff0d6aa678848eb1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9816,9 +9816,8 @@ Handle<Map> Map::ReconfigureExistingProperty(Handle<Map> map, int descriptor, |
return new_map; |
} |
- |
Handle<Map> Map::TransitionToAccessorProperty(Handle<Map> map, |
- Handle<Name> name, |
+ Handle<Name> name, int descriptor, |
AccessorComponent component, |
Handle<Object> accessor, |
PropertyAttributes attributes) { |
@@ -9861,7 +9860,6 @@ Handle<Map> Map::TransitionToAccessorProperty(Handle<Map> map, |
Handle<AccessorPair> pair; |
DescriptorArray* old_descriptors = map->instance_descriptors(); |
- int descriptor = old_descriptors->SearchWithCache(isolate, *name, *map); |
if (descriptor != DescriptorArray::kNotFound) { |
if (descriptor != map->LastAdded()) { |
return Map::Normalize(map, mode, "AccessorsOverwritingNonLast"); |