mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Always check operation callback on backwards branches (484035, r=brendan).
This commit is contained in:
parent
a9f4d50083
commit
a97f8a2428
@ -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