Index: test/cctest/test-field-type-tracking.cc |
diff --git a/test/cctest/test-field-type-tracking.cc b/test/cctest/test-field-type-tracking.cc |
index cee3600314fe5243cb37929011795ff70d2f85e3..3b93b815fb9cd02b8c040a7da97ed97bb60964df 100644 |
--- a/test/cctest/test-field-type-tracking.cc |
+++ b/test/cctest/test-field-type-tracking.cc |
@@ -399,13 +399,17 @@ class Expectations { |
Handle<Object> getter(pair->getter(), isolate); |
Handle<Object> setter(pair->setter(), isolate); |
- map = Map::TransitionToAccessorProperty(map, name, ACCESSOR_GETTER, getter, |
- attributes); |
+ int descriptor = |
+ map->instance_descriptors()->SearchWithCache(isolate, *name, *map); |
+ map = Map::TransitionToAccessorProperty( |
+ map, name, descriptor, ACCESSOR_GETTER, getter, attributes); |
CHECK(!map->is_deprecated()); |
CHECK(!map->is_dictionary_map()); |
- map = Map::TransitionToAccessorProperty(map, name, ACCESSOR_SETTER, setter, |
- attributes); |
+ descriptor = |
+ map->instance_descriptors()->SearchWithCache(isolate, *name, *map); |
+ map = Map::TransitionToAccessorProperty( |
+ map, name, descriptor, ACCESSOR_SETTER, setter, attributes); |
CHECK(!map->is_deprecated()); |
CHECK(!map->is_dictionary_map()); |
return map; |