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

Unified Diff: src/ic/ic.h

Issue 2421883002: [ic] Support data handlers that represent loads of constants from prototypes. (Closed)
Patch Set: Created 4 years, 2 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/counters.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.h
diff --git a/src/ic/ic.h b/src/ic/ic.h
index a854ee5bc95fe8ab1a85b7855bd9118bceec58be..4cf16786439529b1649e3ad211f8dea7bd87fb31 100644
--- a/src/ic/ic.h
+++ b/src/ic/ic.h
@@ -310,9 +310,18 @@ class LoadIC : public IC {
private:
Handle<Object> SimpleFieldLoad(FieldIndex index);
- Handle<Object> SimpleFieldLoadFromPrototype(FieldIndex index,
- Handle<Map> receiver_map,
- Handle<JSObject> holder);
+
+ // Returns true if the validity cell check is enough to ensure that the
+ // prototype chain from |receiver_map| till |holder| did not change.
+ bool IsPrototypeValidityCellCheckEnough(Handle<Map> receiver_map,
+ Handle<JSObject> holder);
+
+ // Creates a data handler that represents a prototype chain check followed
+ // by given Smi-handler that encoded a load from the holder.
+ // Can be used only if IsPrototypeValidityCellCheckEnough() predicate is true.
+ Handle<Object> SimpleLoadFromPrototype(Handle<Map> receiver_map,
+ Handle<JSObject> holder,
+ Handle<Object> smi_handler);
friend class IC;
};
« no previous file with comments | « src/counters.h ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698