Fix CHECK_RECORDER macro to use XOR to evaluate both terms.

This commit is contained in:
Brendan Eich 2008-08-21 01:38:50 -07:00
parent 5882463a97
commit 3d0d4596e1

View File

@ -2507,8 +2507,8 @@ js_Interpret(JSContext *cx)
# ifdef JS_TRACER
# define CHECK_RECORDER() JS_BEGIN_MACRO \
JS_ASSERT(!JS_TRACE_MONITOR(cx).recorder || \
jumpTable == recordingJumpTable); \
JS_ASSERT(!JS_TRACE_MONITOR(cx).recorder ^ \
(jumpTable == recordingJumpTable)); \
JS_END_MACRO
# else
# define CHECK_RECORDER() ((void)0)
@ -4935,9 +4935,9 @@ js_Interpret(JSContext *cx)
jsdtrace_function_return(cx, fp, fun);
}
#endif
regs.sp = vp + 1;
if (!ok)
goto error;
regs.sp = vp + 1;
goto end_call;
}
}