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

Unified Diff: src/ic-inl.h

Issue 348313002: Introduce a PrototypeIterator template and use it all over the place (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 6 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/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic-inl.h
diff --git a/src/ic-inl.h b/src/ic-inl.h
index 25094ae9cf2a4ddf72b729dec7868eeb188000a7..3a96a3323f79e0d6ff742b73dc0a4c60c6906da1 100644
--- a/src/ic-inl.h
+++ b/src/ic-inl.h
@@ -10,6 +10,7 @@
#include "src/compiler.h"
#include "src/debug.h"
#include "src/macro-assembler.h"
+#include "src/prototype-iterator.h"
namespace v8 {
namespace internal {
@@ -133,7 +134,7 @@ HeapObject* IC::GetCodeCacheHolder(Isolate* isolate,
InlineCacheHolderFlag holder) {
if (object->IsSmi()) holder = PROTOTYPE_MAP;
Object* map_owner = holder == OWN_MAP
- ? object : object->GetPrototype(isolate);
+ ? object : SAFE_GET_PROTOTYPE(isolate, object);
return HeapObject::cast(map_owner);
}
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698