Improved JM call path, bug 587707. r=lw,dvander

This commit is contained in:
Brian Hackett
2010-09-29 06:27:34 -07:00
parent 8777e3d343
commit 858855a88f
28 changed files with 561 additions and 424 deletions

View File

@@ -1271,7 +1271,7 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, JSObject *obj,
/* Copy frame onto the stack. */
stackfp->stealFrameAndSlots(stackvp, genfp, genvp, gen->regs.sp);
stackfp->repointGeneratorFrameDown(cx->maybefp());
stackfp->setPrev(cx->regs);
stackfp->unsetFloatingGenerator();
RebaseRegsFromTo(&gen->regs, genfp, stackfp);
MUST_FLOW_THROUGH("restore");