ICs for scripted new (bug 589398, r=luke,dmandelin).

This commit is contained in:
David Anderson
2010-10-04 14:13:33 -07:00
parent 9d860d618f
commit 95ea7a0f4c
40 changed files with 995 additions and 717 deletions

View File

@@ -1283,7 +1283,7 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, JSObject *obj,
JSObject *enumerators = cx->enumerators;
cx->enumerators = gen->enumerators;
ok = RunScript(cx, stackfp->script(), stackfp->fun(), stackfp->scopeChain());
ok = RunScript(cx, stackfp->script(), stackfp);
gen->enumerators = cx->enumerators;
cx->enumerators = enumerators;