| Index: src/lookup.cc
|
| diff --git a/src/lookup.cc b/src/lookup.cc
|
| index 7bc3aebe84cec4a11bd2bdd69dd1beeb235ad1ae..3acc6e2a00ed76825174a5e4e5f9e3ed46b2274d 100644
|
| --- a/src/lookup.cc
|
| +++ b/src/lookup.cc
|
| @@ -321,13 +321,11 @@ void LookupIterator::TransitionToAccessorPair(Handle<Object> pair,
|
| // TODO(verwaest): Remove this hack once we have a quick way to check the
|
| // prototype chain in element setters.
|
| // TODO(verwaest): Move code into the element accessor.
|
| - bool was_dictionary = receiver->HasDictionaryElements();
|
| Handle<SeededNumberDictionary> dictionary =
|
| JSObject::NormalizeElements(receiver);
|
| - was_dictionary = was_dictionary && dictionary->requires_slow_elements();
|
|
|
| dictionary = SeededNumberDictionary::Set(dictionary, index_, pair, details);
|
| - dictionary->set_requires_slow_elements();
|
| + JSObject::RequireSlowElements(receiver, dictionary);
|
|
|
| if (receiver->HasSlowArgumentsElements()) {
|
| FixedArray* parameter_map = FixedArray::cast(receiver->elements());
|
| @@ -338,7 +336,6 @@ void LookupIterator::TransitionToAccessorPair(Handle<Object> pair,
|
| FixedArray::cast(receiver->elements())->set(1, *dictionary);
|
| } else {
|
| receiver->set_elements(*dictionary);
|
| - if (!was_dictionary) heap()->ClearAllICsByKind(Code::KEYED_STORE_IC);
|
| }
|
| } else {
|
| PropertyNormalizationMode mode = receiver->map()->is_prototype_map()
|
|
|