Move cx->fp to cx->regs->fp, bug 588978. r=lw
This commit is contained in:
@@ -1094,7 +1094,7 @@ js_NewGenerator(JSContext *cx)
|
||||
return NULL;
|
||||
|
||||
/* Load and compute stack slot counts. */
|
||||
JSStackFrame *fp = cx->fp;
|
||||
JSStackFrame *fp = cx->fp();
|
||||
uintN argc = fp->numActualArgs();
|
||||
uintN nargs = JS_MAX(argc, fp->numFormalArgs());
|
||||
uintN vplen = 2 + nargs;
|
||||
@@ -1230,7 +1230,7 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, JSObject *obj,
|
||||
* the code before pushExecuteFrame must not reenter the interpreter.
|
||||
*/
|
||||
ExecuteFrameGuard frame;
|
||||
if (!cx->stack().getExecuteFrame(cx, cx->fp, vplen, nfixed, frame)) {
|
||||
if (!cx->stack().getExecuteFrame(cx, cx->maybefp(), vplen, nfixed, frame)) {
|
||||
gen->state = JSGEN_CLOSED;
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user