[INFER] Type inference fixes for generators, typed arrays, monitoring, ... bug 557407.

This commit is contained in:
Brian Hackett
2010-11-09 14:40:10 -08:00
parent 11e8c1a17b
commit c9539caef9
18 changed files with 304 additions and 113 deletions

View File

@@ -426,6 +426,10 @@ GetCustomIterator(JSContext *cx, JSObject *obj, uintN flags, Value *vp)
js_AtomToPrintableString(cx, atom));
return false;
}
/* Notify type inference of the custom iterator. */
JS_ASSERT(JSOp(*cx->regs->pc) == JSOP_ITER);
cx->fp()->script()->typeMonitorResult(cx, cx->regs->pc, 0,
(jstype) cx->getFixedTypeObject(TYPE_OBJECT_NEW_ITERATOR), true);
return true;
}