Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)

This commit is contained in:
Luke Wagner
2011-05-13 08:56:26 -07:00
parent 21001797b3
commit 1cd7714645
31 changed files with 1552 additions and 1234 deletions

View File

@@ -1181,7 +1181,7 @@ js_NewGenerator(JSContext *cx)
gen->floating = genfp;
/* Copy from the stack to the generator's floating frame. */
gen->regs.rebaseFromTo(stackRegs, genfp);
gen->regs.rebaseFromTo(stackRegs, *genfp);
genfp->stealFrameAndSlots(genvp, stackfp, stackvp, stackRegs.sp);
genfp->initFloatingGenerator();