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

Unified Diff: src/ic/ic-inl.h

Issue 2412043003: [ic] Support non-code handlers in megamorphic stub cache. (Closed)
Patch Set: Addressing comments 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/ic/ic.cc ('k') | src/ic/stub-cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic-inl.h
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h
index 4fc8ada8df73e7af3fd35060ce9ca0cc8e16f2d8..f3db1cb8b9408d4a6de902c5d1c63b7c1ec40487 100644
--- a/src/ic/ic-inl.h
+++ b/src/ic/ic-inl.h
@@ -92,6 +92,11 @@ Code* IC::target() const {
return GetTargetAtAddress(address(), constant_pool());
}
+bool IC::IsHandler(Object* object) {
+ return (object->IsSmi() && (object != nullptr)) ||
+ (object->IsCode() && Code::cast(object)->is_handler());
+}
+
Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map,
bool receiver_is_holder, Isolate* isolate,
CacheHolderFlag* flag) {
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698