Index: src/ic/handler-configuration-inl.h |
diff --git a/src/ic/handler-configuration-inl.h b/src/ic/handler-configuration-inl.h |
index 832a5e4f7abc9e96700e8895ce9fd54007a404e9..c794a3ce6bb22dba2507674414657e8b7ad15496 100644 |
--- a/src/ic/handler-configuration-inl.h |
+++ b/src/ic/handler-configuration-inl.h |
@@ -29,6 +29,17 @@ Handle<Object> LoadHandler::LoadConstant(Isolate* isolate, int descriptor) { |
return handle(Smi::FromInt(config), isolate); |
} |
+Handle<Object> LoadHandler::EnableNegativeLookupOnReceiver( |
+ Isolate* isolate, Handle<Object> smi_handler) { |
+ int config = Smi::cast(*smi_handler)->value(); |
+#ifdef DEBUG |
+ Kind kind = KindBits::decode(config); |
+ DCHECK(kind == kForFields || kind == kForConstants); |
+#endif |
+ config = DoNegativeLookupOnReceiverBits::update(config, true); |
+ return handle(Smi::FromInt(config), isolate); |
+} |
+ |
Handle<Object> LoadHandler::LoadElement(Isolate* isolate, |
ElementsKind elements_kind, |
bool convert_hole_to_undefined, |