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 6785b2a86a
commit d026d29a96

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;
}