зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f401c6a7cc
Коммит
e59743767c
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче