Fix --disable-tracejit build. (rs=Waldo)
authorChris Leary <cdleary@mozilla.com>
Thu, 03 Feb 2011 16:19:13 -0800
changeset 62074 10df92bfb41443af53586fa5dc0d73fbad4e70d0
parent 62073 13ddee17c69141e356ec0baca64629dfde31d352
child 62075 a1a8cd4accba5128e33440ab7b7a49d09ec37fc8
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersWaldo
milestone2.0b11pre
Fix --disable-tracejit build. (rs=Waldo)
js/src/jscompartment.cpp
--- a/js/src/jscompartment.cpp
+++ b/js/src/jscompartment.cpp
@@ -70,18 +70,20 @@ JSCompartment::JSCompartment(JSRuntime *
     debugMode(rt->debugMode),
 #if ENABLE_YARR_JIT
     regExpAllocator(NULL),
 #endif
     mathCache(NULL)
 {
     JS_INIT_CLIST(&scripts);
 
-    // InitJIT expects this area to be zero'd
+#ifdef JS_TRACER
+    /* InitJIT expects this area to be zero'd. */
     PodZero(&traceMonitor);
+#endif
 
     PodArrayZero(scriptsToGC);
 }
 
 JSCompartment::~JSCompartment()
 {
 #if ENABLE_YARR_JIT
     js_delete(regExpAllocator);