| Index: src/objects.cc | 
| diff --git a/src/objects.cc b/src/objects.cc | 
| index 8ce2fa32ae28606fb26d6ba907faca93d328821f..f11dfcfab7d17f2183c5fa50d1d348dbc0ccd0bc 100644 | 
| --- a/src/objects.cc | 
| +++ b/src/objects.cc | 
| @@ -1690,7 +1690,7 @@ MaybeObject* JSObject::AddProperty(String* name, | 
| } | 
| if (HasFastProperties()) { | 
| // Ensure the descriptor array does not get too big. | 
| -    if (map_of_this->instance_descriptors()->number_of_descriptors() < | 
| +    if (map_of_this->NumberOfOwnDescriptors() < | 
| DescriptorArray::kMaxNumberOfDescriptors) { | 
| if (value->IsJSFunction()) { | 
| return AddConstantFunctionProperty(name, | 
|  |