Bug 936056 followup. Check for a DOM jitinfo before assuming we have a DOM method in Ion ICs. r=efaust

This commit is contained in:
Boris Zbarsky 2014-01-06 21:53:23 -05:00
Родитель f401c6a7cc
Коммит e59743767c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -619,7 +619,7 @@ IsCacheableGetPropCallNative(JSObject *obj, JSObject *holder, Shape *shape)
return false;
// Check for a DOM method; those are OK with both inner and outer objects.
if (getter.jitInfo())
if (getter.jitInfo() && getter.jitInfo()->isDOMJitInfo())
return true;
// For non-DOM methods, don't cache if obj has an outerObject hook.