Bug 942346 - Fix AutoDebugModeInvalidation for builds without Ion. (r=bhackett, a=lsblakk)
authorShu-yu Guo <shu@rfrn.org>
Tue, 26 Nov 2013 12:55:11 -0800
changeset 166679 c1443c558344eb96321bc73dea3b579f4b1f049c
parent 166678 0d47cfb2bb101ef85632b36e3a657b12d1b8a2de
child 166680 7245e4b8d5da134486d1620b1ce84287f102ab85
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett, lsblakk
bugs942346
milestone27.0a2
Bug 942346 - Fix AutoDebugModeInvalidation for builds without Ion. (r=bhackett, a=lsblakk)
js/src/jscompartment.h
--- a/js/src/jscompartment.h
+++ b/js/src/jscompartment.h
@@ -453,17 +453,21 @@ class js::AutoDebugModeInvalidation
     explicit AutoDebugModeInvalidation(JSCompartment *comp)
       : comp_(comp), zone_(nullptr), needInvalidation_(NoNeed)
     { }
 
     explicit AutoDebugModeInvalidation(JS::Zone *zone)
       : comp_(nullptr), zone_(zone), needInvalidation_(NoNeed)
     { }
 
+#ifdef JS_ION
     ~AutoDebugModeInvalidation();
+#else
+    ~AutoDebugModeInvalidation() { }
+#endif
 
     bool isFor(JSCompartment *comp) {
         if (comp_)
             return comp == comp_;
         return comp->zone() == zone_;
     }
 
     void scheduleInvalidation(bool debugMode) {