Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 992659edce9bbc46c5de8bfd843607f6f769dcdc..9de1058598a10880d5126b3584125f5f7605f104 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -637,7 +637,7 @@ static void SetAccessors(Handle<Map> map, |
Handle<String> name, |
Handle<JSFunction> func) { |
DescriptorArray* descs = map->instance_descriptors(); |
- int number = descs->Search(*name); |
+ int number = descs->SearchWithCache(*name, *map); |
AccessorPair* accessors = AccessorPair::cast(descs->GetValue(number)); |
accessors->set_getter(*func); |
accessors->set_setter(*func); |
@@ -1774,7 +1774,8 @@ bool Genesis::InstallNatives() { |
Handle<DescriptorArray> array_descriptors( |
array_function->initial_map()->instance_descriptors()); |
String* length = heap()->length_symbol(); |
- int old = array_descriptors->SearchWithCache(length); |
+ int old = array_descriptors->SearchWithCache( |
+ length, array_function->initial_map()); |
ASSERT(old != DescriptorArray::kNotFound); |
CallbacksDescriptor desc(length, |
array_descriptors->GetValue(old), |