Bug 586358: make imacpc flagged. (r=lw)
This commit is contained in:
@@ -1126,7 +1126,6 @@ js_NewGenerator(JSContext *cx)
|
||||
gen->liveFrame = newfp;
|
||||
|
||||
/* Copy generator's stack frame copy in from |cx->fp|. */
|
||||
newfp->imacpc = NULL;
|
||||
newfp->setCallObj(fp->maybeCallObj());
|
||||
if (fp->hasCallObj()) { /* Steal call object. */
|
||||
fp->getCallObj()->setPrivate(newfp);
|
||||
@@ -1148,6 +1147,7 @@ js_NewGenerator(JSContext *cx)
|
||||
JS_ASSERT(!fp->hasBlockChain());
|
||||
newfp->setBlockChain(NULL);
|
||||
newfp->flags = fp->flags | JSFRAME_GENERATOR | JSFRAME_FLOATING_GENERATOR;
|
||||
JS_ASSERT(!newfp->hasIMacroPC());
|
||||
|
||||
/* Copy in arguments and slots. */
|
||||
memcpy(vp, fp->argv - 2, vplen * sizeof(Value));
|
||||
|
||||
Reference in New Issue
Block a user