mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Merge.
This commit is contained in:
commit
ea5e66bc2c
@ -168,7 +168,6 @@ StackSpace::popInlineFrame(JSContext *cx, JSStackFrame *up, JSStackFrame *down)
|
||||
|
||||
JSFrameRegs *regs = cx->regs;
|
||||
regs->pc = down->savedPC;
|
||||
regs->sp = up->argv - 1;
|
||||
#ifdef DEBUG
|
||||
down->savedPC = JSStackFrame::sInvalidPC;
|
||||
#endif
|
||||
|
@ -2776,11 +2776,13 @@ BEGIN_CASE(JSOP_STOP)
|
||||
}
|
||||
|
||||
JSStackFrame *down = fp->down;
|
||||
Value *newsp = fp->argv - 1;
|
||||
|
||||
/* Pop the frame. */
|
||||
cx->stack().popInlineFrame(cx, fp, down);
|
||||
|
||||
/* Propagate return value before fp is lost. */
|
||||
regs.sp = newsp;
|
||||
regs.sp[-1] = fp->rval;
|
||||
|
||||
/* Sync interpreter registers. */
|
||||
|
@ -322,7 +322,11 @@ InlineReturn(JSContext *cx, JSBool ok)
|
||||
if (fp->flags & JSFRAME_CONSTRUCTING && fp->rval.isPrimitive())
|
||||
fp->rval = fp->thisv;
|
||||
|
||||
Value *newsp = fp->argv - 1;
|
||||
|
||||
cx->stack().popInlineFrame(cx, fp, fp->down);
|
||||
|
||||
cx->regs->sp = newsp;
|
||||
cx->regs->sp[-1] = fp->rval;
|
||||
|
||||
return ok;
|
||||
|
Loading…
Reference in New Issue
Block a user