mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
rename ENABLE_TRACER to TRACING_ENABLED and explicitly parameterize on cx
This commit is contained in:
parent
0c5757a21f
commit
af19dd5627
@ -2924,7 +2924,7 @@ JS_INTERPRET(JSContext *cx, JSInterpreterState *state)
|
||||
#ifndef jstracer_cpp___
|
||||
# define MONITOR_BRANCH(n) \
|
||||
JS_BEGIN_MACRO \
|
||||
if (ENABLE_TRACER && \
|
||||
if (TRACING_ENABLED(cx) && \
|
||||
(JS_TRACE_MONITOR(cx).freq++ & TRACE_TRIGGER_MASK) == 0) { \
|
||||
regs.pc += n; \
|
||||
goto attempt_recording; \
|
||||
@ -2933,7 +2933,7 @@ JS_INTERPRET(JSContext *cx, JSInterpreterState *state)
|
||||
#else
|
||||
# define MONITOR_BRANCH(n) \
|
||||
JS_BEGIN_MACRO \
|
||||
if (ENABLE_TRACER && \
|
||||
if (TRACING_ENABLED(cx) && \
|
||||
JS_TRACE_MONITOR(cx).recorder != NULL && \
|
||||
JS_TRACE_MONITOR(cx).recorder->entryState.pc == (regs.pc + n)) { \
|
||||
goto end_recording; \
|
||||
|
@ -139,7 +139,7 @@ struct JSTraceMonitor {
|
||||
TraceRecorder* recorder;
|
||||
};
|
||||
|
||||
#define ENABLE_TRACER JS_HAS_OPTION(cx, JSOPTION_JIT)
|
||||
#define TRACING_ENABLED(cx) JS_HAS_OPTION(cx, JSOPTION_JIT)
|
||||
#define TRACE_TRIGGER_MASK 0x3f
|
||||
|
||||
extern bool
|
||||
|
Loading…
Reference in New Issue
Block a user