mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Bug 857856 - Make --enable-debug --disable-optimize --disable-ion --disable-methodjit build work again. r=sstangl
This commit is contained in:
parent
aabd1766c9
commit
a177224f56
@ -3271,7 +3271,7 @@ MOZ_ARG_ENABLE_STRING(debug,
|
||||
(using compiler flags DBG)],
|
||||
[ if test "$enableval" != "no"; then
|
||||
MOZ_DEBUG=1
|
||||
if test "$ENABLE_METHODJIT"; then
|
||||
if test "$ENABLE_METHODJIT" -o "$ENABLE_YARR_JIT"; then
|
||||
# needs MethodJIT or YarrJIT
|
||||
ENABLE_METHODJIT_SPEW=1
|
||||
fi
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include "assembler/wtf/Platform.h"
|
||||
#include "prmjtime.h"
|
||||
|
||||
#if defined(JS_METHODJIT) || ENABLE_YARR_JIT
|
||||
|
||||
namespace js {
|
||||
|
||||
#define JSPEW_CHAN_MAP(_) \
|
||||
@ -36,13 +34,26 @@ enum JaegerSpewChannel {
|
||||
JSpew_Terminator
|
||||
};
|
||||
|
||||
#if defined(DEBUG) && !defined(JS_METHODJIT_SPEW)
|
||||
# define JS_METHODJIT_SPEW
|
||||
#endif
|
||||
|
||||
#if defined(JS_METHODJIT_SPEW)
|
||||
#ifdef JS_METHODJIT_SPEW
|
||||
|
||||
void JMCheckLogging();
|
||||
bool IsJaegerSpewChannelActive(JaegerSpewChannel channel);
|
||||
|
||||
#ifdef __GNUC__
|
||||
void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
#else
|
||||
void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
static inline void JMCheckLogging() {}
|
||||
static inline bool IsJaegerSpewChannelActive(JaegerSpewChannel channel) { return false; }
|
||||
static inline void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...) {}
|
||||
|
||||
#endif // JS_METHODJIT_SPEW
|
||||
|
||||
#if defined(JS_METHODJIT_SPEW)
|
||||
|
||||
struct ConditionalLog {
|
||||
uint32_t oldBits;
|
||||
@ -51,13 +62,6 @@ struct ConditionalLog {
|
||||
~ConditionalLog();
|
||||
};
|
||||
|
||||
bool IsJaegerSpewChannelActive(JaegerSpewChannel channel);
|
||||
#ifdef __GNUC__
|
||||
void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
#else
|
||||
void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
struct Profiler {
|
||||
int64_t t_start;
|
||||
int64_t t_stop;
|
||||
@ -83,22 +87,8 @@ struct Profiler {
|
||||
}
|
||||
};
|
||||
|
||||
#else
|
||||
#endif // JS_METHODJIT_SPEW
|
||||
|
||||
static inline bool IsJaegerSpewChannelActive(JaegerSpewChannel channel)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static inline void JaegerSpew(JaegerSpewChannel channel, const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
} // namespace js
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user