Chromium Code Reviews| Index: src/ic/ic.cc |
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
| index 3c7c6d36da9475dfacebbf952377bb524c1bd31d..80651b1588e0a14e1575e6cd2d6a252fc2cbbcfd 100644 |
| --- a/src/ic/ic.cc |
| +++ b/src/ic/ic.cc |
| @@ -1489,6 +1489,8 @@ bool StoreIC::LookupForWrite(LookupIterator* it, Handle<Object> value, |
| PrototypeIterator::GetCurrent(iter)); |
| } |
| + if (it->HolderIsReceiverOrHiddenPrototype()) return false; |
| + |
| it->PrepareTransitionToDataProperty(value, NONE, store_mode); |
| return it->IsCacheableTransition(); |
| } |