Bug 1605878 - Remove a nested redundant #if. r=iain
authorTobias Fella <fella@posteo.de>
Sat, 28 Dec 2019 14:49:57 +0000
changeset 508467 32ee210f9ce100279d6fc37ec8f93115eb21a8f7
parent 508466 e3b60f1802a7c0af1e2ddadae22804956c309020
child 508468 b4889c3321ae03a60f3027a9063260716ee82ed0
push id104010
push useriireland@mozilla.com
push dateSat, 28 Dec 2019 22:22:34 +0000
treeherderautoland@32ee210f9ce1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersiain
bugs1605878
milestone73.0a1
first release with
nightly linux32
32ee210f9ce1 / 73.0a1 / 20191229093047 / files
nightly linux64
32ee210f9ce1 / 73.0a1 / 20191229093047 / files
nightly mac
32ee210f9ce1 / 73.0a1 / 20191229093047 / files
nightly win32
32ee210f9ce1 / 73.0a1 / 20191229093047 / files
nightly win64
32ee210f9ce1 / 73.0a1 / 20191229093047 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1605878 - Remove a nested redundant #if. r=iain Differential Revision: https://phabricator.services.mozilla.com/D58316
js/src/vm/TypeInference.cpp
--- a/js/src/vm/TypeInference.cpp
+++ b/js/src/vm/TypeInference.cpp
@@ -236,26 +236,24 @@ const char* js::InferSpewColor(TypeSet* 
                                        "\x1b[1;34m", "\x1b[1;35m", "\x1b[1;36m",
                                        "\x1b[1;37m"};
   if (!InferSpewColorable()) {
     return "";
   }
   return colors[DefaultHasher<TypeSet*>::hash(types) % 7];
 }
 
-#  ifdef DEBUG
 void js::InferSpewImpl(const char* fmt, ...) {
   va_list ap;
   va_start(ap, fmt);
   fprintf(stderr, "[infer] ");
   vfprintf(stderr, fmt, ap);
   fprintf(stderr, "\n");
   va_end(ap);
 }
-#  endif
 
 MOZ_NORETURN MOZ_COLD static void MOZ_FORMAT_PRINTF(2, 3)
     TypeFailure(JSContext* cx, const char* fmt, ...) {
   char msgbuf[1024]; /* Larger error messages will be truncated */
   char errbuf[1024];
 
   va_list ap;
   va_start(ap, fmt);