Bug 1483806 - Guard CACHEIR_SPEW only member variable in NewObjectIRGenerator. r=evilpie
authorMatthew Gaudet <mgaudet@mozilla.com>
Thu, 16 Aug 2018 15:41:32 -0700
changeset 487270 fb7b47d50f5944c47791fe20ae21033393ec6957
parent 487269 1b24505ca96cc89af27486c0431e9f05cc9b979e
child 487271 8ca1ecc2c0b863134e14ac1c444b7128a577d6a0
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersevilpie
bugs1483806
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 1483806 - Guard CACHEIR_SPEW only member variable in NewObjectIRGenerator. r=evilpie
js/src/jit/CacheIR.cpp
js/src/jit/CacheIR.h
--- a/js/src/jit/CacheIR.cpp
+++ b/js/src/jit/CacheIR.cpp
@@ -5665,17 +5665,19 @@ BinaryArithIRGenerator::tryAttachBoolean
     writer.returnFromIC();
     return true;
 }
 
 NewObjectIRGenerator::NewObjectIRGenerator(JSContext* cx, HandleScript script,
                                            jsbytecode* pc, ICState::Mode mode, JSOp op,
                                            HandleObject templateObj)
   : IRGenerator(cx, script, pc, CacheKind::NewObject, mode),
+#ifdef JS_CACHEIR_SPEW
     op_(op),
+#endif
     templateObject_(templateObj)
 {
     MOZ_ASSERT(templateObject_);
 }
 
 void
 NewObjectIRGenerator::trackAttached(const char* name)
 {
--- a/js/src/jit/CacheIR.h
+++ b/js/src/jit/CacheIR.h
@@ -1957,17 +1957,19 @@ class MOZ_RAII BinaryArithIRGenerator : 
                            JSOp op, HandleValue lhs, HandleValue rhs, HandleValue res);
 
     bool tryAttachStub();
 
 };
 
 class MOZ_RAII NewObjectIRGenerator : public IRGenerator
 {
+#ifdef  JS_CACHEIR_SPEW
     JSOp op_;
+ #endif
     HandleObject templateObject_;
 
     void trackAttached(const char* name);
 
   public:
     NewObjectIRGenerator(JSContext* cx, HandleScript, jsbytecode* pc, ICState::Mode,
                          JSOp op, HandleObject templateObj);