Bug 807498 - Do type monitoring on disabled GetElem ICs. r=sstangl

This commit is contained in:
Kannan Vijayan 2013-01-14 11:20:23 -05:00
parent 695e7f0d25
commit eb2bc2130c

View File

@ -1704,10 +1704,11 @@ js::ion::GetElementCache(JSContext *cx, size_t cacheIndex, HandleObject obj, Han
jsbytecode *pc;
cache.getScriptedLocation(&script, &pc);
RootedValue lval(cx, ObjectValue(*obj));
if (cache.isDisabled()) {
if (!GetElementOperation(cx, JSOp(*pc), lval, idval, res))
return false;
types::TypeScript::Monitor(cx, script, pc, res);
return true;
}