mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix build for !JS_TRACER, both threaded and switch interps
This commit is contained in:
parent
9d4a33a8c6
commit
41a6158c57
@ -3202,7 +3202,9 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind)
|
||||
|
||||
/* Clear property and JIT caches (only for cx->thread if JS_THREADSAFE). */
|
||||
js_FlushPropertyCache(cx);
|
||||
#ifdef JS_TRACER
|
||||
js_FlushJITCache(cx);
|
||||
#endif
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
/*
|
||||
|
@ -2660,6 +2660,7 @@ js_Interpret(JSContext *cx)
|
||||
* the compiler can keep it in a register when it is non-null.
|
||||
*/
|
||||
#if JS_THREADED_INTERP
|
||||
#ifdef JS_TRACER
|
||||
# define LOAD_INTERRUPT_HANDLER(cx) \
|
||||
((void) (jumpTable = (cx)->debugHooks->interruptHandler \
|
||||
? interruptJumpTable \
|
||||
@ -2672,7 +2673,15 @@ js_Interpret(JSContext *cx)
|
||||
JS_ASSERT(flag_ == !!JS_TRACE_MONITOR(cx).recorder); \
|
||||
jumpTable = flag_ ? recordingJumpTable : normalJumpTable; \
|
||||
JS_END_MACRO
|
||||
#else
|
||||
#else /* !JS_TRACER */
|
||||
# define LOAD_INTERRUPT_HANDLER(cx) \
|
||||
((void) (jumpTable = (cx)->debugHooks->interruptHandler \
|
||||
? interruptJumpTable \
|
||||
: normalJumpTable))
|
||||
# define ENABLE_TRACER(flag) (void)0
|
||||
#endif /* !JS_TRACER */
|
||||
#else /* !JS_THREADED_INTERP */
|
||||
#ifdef JS_TRACER
|
||||
# define LOAD_INTERRUPT_HANDLER(cx) \
|
||||
((void) (switchMask = ((cx)->debugHooks->interruptHandler || \
|
||||
JS_TRACE_MONITOR(cx).recorder) \
|
||||
@ -2683,7 +2692,13 @@ js_Interpret(JSContext *cx)
|
||||
JS_ASSERT(flag_ == !!JS_TRACE_MONITOR(cx).recorder); \
|
||||
switchMask = flag_ ? 0 : 255; \
|
||||
JS_END_MACRO
|
||||
#endif
|
||||
#else /* !JS_TRACER */
|
||||
# define LOAD_INTERRUPT_HANDLER(cx) \
|
||||
((void) (switchMask = ((cx)->debugHooks->interruptHandler \
|
||||
? 0 : 255)))
|
||||
# define ENABLE_TRACER(flag) (void)0
|
||||
#endif /* !JS_TRACER */
|
||||
#endif /* !JS_THREADED_INTERP */
|
||||
|
||||
LOAD_INTERRUPT_HANDLER(cx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user