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

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

Issue 2471613006: [ic] Data handlers for loads of non-existent properties. (Closed)
Patch Set: Addressing comments Created 4 years, 1 month 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/handler-configuration.h ('k') | src/ic/ic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/handler-configuration-inl.h
diff --git a/src/ic/handler-configuration-inl.h b/src/ic/handler-configuration-inl.h
index c794a3ce6bb22dba2507674414657e8b7ad15496..573922ae3e618ecd3e2f50d1b2b3e785f7e8a829 100644
--- a/src/ic/handler-configuration-inl.h
+++ b/src/ic/handler-configuration-inl.h
@@ -40,6 +40,14 @@ Handle<Object> LoadHandler::EnableNegativeLookupOnReceiver(
return handle(Smi::FromInt(config), isolate);
}
+Handle<Object> LoadHandler::LoadNonExistent(
+ Isolate* isolate, bool do_negative_lookup_on_receiver) {
+ int config =
+ KindBits::encode(kForNonExistent) |
+ DoNegativeLookupOnReceiverBits::encode(do_negative_lookup_on_receiver);
+ return handle(Smi::FromInt(config), isolate);
+}
+
Handle<Object> LoadHandler::LoadElement(Isolate* isolate,
ElementsKind elements_kind,
bool convert_hole_to_undefined,
« no previous file with comments | « src/ic/handler-configuration.h ('k') | src/ic/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698