diff --git a/js/src/jit/BaselineIC.cpp b/js/src/jit/BaselineIC.cpp index 41e266ee1d4..daab7f36cac 100644 --- a/js/src/jit/BaselineIC.cpp +++ b/js/src/jit/BaselineIC.cpp @@ -8845,6 +8845,11 @@ DoInstanceOfFallback(JSContext *cx, ICInstanceOf_Fallback *stub, RootedObject obj(cx, &rhs.toObject()); + // For functions, keep track of the |prototype| property in type information, + // for use during Ion compilation. + if (obj->is() && IsIonEnabled(cx)) + types::EnsureTrackPropertyTypes(cx, obj, NameToId(cx->names().prototype)); + bool cond = false; if (!HasInstance(cx, obj, lhs, &cond)) return false;