Bug 1458382 - Repeat GCC bug workaround in another place. r=sstangl
authorPhilip Chimento <philip.chimento@gmail.com>
Fri, 27 Jul 2018 12:31:30 -0400
changeset 487354 019ed2fbfc31ee084b056e4b73a9ac1badec6ef1
parent 487353 a92a4691c0da85f9141144dee9cbad8c3cf815ad
child 487355 990d4d5b66adf7f576c3512bf50346ec5055a046
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssstangl
bugs1458382
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1458382 - Repeat GCC bug workaround in another place. r=sstangl
js/src/jit/RegisterSets.h
--- a/js/src/jit/RegisterSets.h
+++ b/js/src/jit/RegisterSets.h
@@ -911,17 +911,20 @@ class SpecializedRegSet<Accessors, Regis
     void takeUnchecked(AnyRegister reg) {
         if (reg.isFloat())
             takeUnchecked(reg.fpu());
         else
             takeUnchecked(reg.gpr());
     }
 
     void take(Register reg) {
-        MOZ_ASSERT(this->has(reg));
+#ifdef DEBUG
+        bool hasReg = this->has(reg);
+        MOZ_ASSERT(hasReg);
+#endif
         takeUnchecked(reg);
     }
     void take(FloatRegister reg) {
         MOZ_ASSERT(this->has(reg));
         takeUnchecked(reg);
     }
     void take(AnyRegister reg) {
         if (reg.isFloat())