Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index bee29f0b844c271c143656f83b0c6308d8a03cc4..d75b3e9799abae97e9fad7e6fc99c66bf99b209d 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1518,8 +1518,7 @@ void StoreIC::UpdateCaches(LookupResult* lookup, |
Handle<Map> transition(Map::cast(value)); |
DescriptorArray* target_descriptors = transition->instance_descriptors(); |
- int descriptor = target_descriptors->SearchWithCache(*name); |
- ASSERT(descriptor != DescriptorArray::kNotFound); |
+ int descriptor = target_descriptors->LastAdded(); |
PropertyDetails details = target_descriptors->GetDetails(descriptor); |
if (details.type() != FIELD || details.attributes() != NONE) return; |
@@ -1990,8 +1989,7 @@ void KeyedStoreIC::UpdateCaches(LookupResult* lookup, |
Handle<Map> transition(Map::cast(value)); |
DescriptorArray* target_descriptors = transition->instance_descriptors(); |
- int descriptor = target_descriptors->SearchWithCache(*name); |
- ASSERT(descriptor != DescriptorArray::kNotFound); |
+ int descriptor = target_descriptors->LastAdded(); |
PropertyDetails details = target_descriptors->GetDetails(descriptor); |
if (details.type() == FIELD && details.attributes() == NONE) { |