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

Unified Diff: src/ic.cc

Issue 376233002: Introduce a PrototypeIterator class and use it for prototype access (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates 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/builtins.cc ('k') | src/ic-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index a9c53ba0a15b7f334f52af973bfeb67da01fce81..e2123d0f7cd27fd64be02c4374596cf495db1c76 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -11,6 +11,7 @@
#include "src/conversions.h"
#include "src/execution.h"
#include "src/ic-inl.h"
+#include "src/prototype.h"
#include "src/runtime.h"
#include "src/stub-cache.h"
@@ -248,7 +249,8 @@ bool IC::TryRemoveInvalidPrototypeDependentStub(Handle<Object> receiver,
break;
case PROTOTYPE_MAP:
// IC::GetCodeCacheHolder is not applicable.
- if (receiver->GetPrototype(isolate())->IsNull()) return false;
+ PrototypeIterator iter(isolate(), receiver);
+ if (iter.IsAtEnd()) return false;
break;
}
« no previous file with comments | « src/builtins.cc ('k') | src/ic-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698