mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Always check operation callback on backwards branches (484035, r=brendan).
This commit is contained in:
parent
3b47fbb12c
commit
47b45e60e7
@ -2713,12 +2713,14 @@ js_Interpret(JSContext *cx)
|
||||
JS_BEGIN_MACRO \
|
||||
regs.pc += (n); \
|
||||
op = (JSOp) *regs.pc; \
|
||||
if (op == JSOP_NOP) { \
|
||||
op = (JSOp) *++regs.pc; \
|
||||
} else if (op == JSOP_LOOP) { \
|
||||
if ((n) <= 0) { \
|
||||
CHECK_BRANCH(); \
|
||||
MONITOR_BRANCH(); \
|
||||
op = (JSOp) *regs.pc; \
|
||||
if (op == JSOP_NOP) { \
|
||||
op = (JSOp) *++regs.pc; \
|
||||
} else if (op == JSOP_LOOP) { \
|
||||
MONITOR_BRANCH(); \
|
||||
op = (JSOp) *regs.pc; \
|
||||
} \
|
||||
} \
|
||||
DO_OP(); \
|
||||
JS_END_MACRO
|
||||
|
Loading…
Reference in New Issue
Block a user