Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: src/stub-cache.cc

Issue 431483003: Fix (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698