mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 807498 - Do type monitoring on disabled GetElem ICs. r=sstangl
This commit is contained in:
parent
6785b2a86a
commit
d026d29a96
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user