| Index: src/stub-cache.cc
|
| diff --git a/src/stub-cache.cc b/src/stub-cache.cc
|
| index 14bcc07039f607ca5e516abc04ac77b82e944a45..5381ff15326321cdc0cd7aab28221bc0bd405f58 100644
|
| --- a/src/stub-cache.cc
|
| +++ b/src/stub-cache.cc
|
| @@ -969,11 +969,11 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreTransition(
|
| // Find the top object.
|
| Handle<JSObject> last;
|
| PrototypeIterator iter(isolate(), holder());
|
| - do {
|
| + while (!iter.IsAtEnd()) {
|
| last = Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter));
|
| iter.Advance();
|
| - } while (!iter.IsAtEnd());
|
| - set_holder(last);
|
| + }
|
| + if (!last.is_null()) set_holder(last);
|
| }
|
|
|
| Register holder_reg = FrontendHeader(receiver(), name, &miss);
|
|
|