Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 0544a5bf9b734b88ce19c8b906d690f115c71fce..45052d61e3ae4806f2ac9d13c314eb9b822d6b24 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -554,6 +554,23 @@ void CompareIC::Clear(Isolate* isolate, |
} |
+Handle<Code> KeyedLoadIC::megamorphic_stub() { |
+ if (FLAG_compiled_keyed_generic_loads) { |
+ return KeyedLoadGenericElementStub(isolate()).GetCode(); |
+ } else { |
+ return isolate()->builtins()->KeyedLoadIC_Generic(); |
+ } |
+} |
+ |
+Handle<Code> KeyedLoadIC::generic_stub() const { |
+ if (FLAG_compiled_keyed_generic_loads) { |
+ return KeyedLoadGenericElementStub(isolate()).GetCode(); |
+ } else { |
+ return isolate()->builtins()->KeyedLoadIC_Generic(); |
+ } |
+} |
+ |
+ |
static bool MigrateDeprecated(Handle<Object> object) { |
if (!object->IsJSObject()) return false; |
Handle<JSObject> receiver = Handle<JSObject>::cast(object); |