Bug 896018 - Remove unused field 'context' from CompartmentChecker. r=bhackett
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 19 Jul 2013 21:20:29 -0400
changeset 139328 96ae22d5e2b356a5254dc2f95116658da58dfffe
parent 139327 804286c561d0053ca87070deba9e122cb6836c5f
child 139329 bfe1b9a064036d83cd9897f253e64573aa0f3e51
push id31337
push userryanvm@gmail.com
push dateSat, 20 Jul 2013 01:21:39 +0000
treeherdermozilla-inbound@bfe1b9a06403 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs896018
milestone25.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 896018 - Remove unused field 'context' from CompartmentChecker. r=bhackett
js/src/jscntxtinlines.h
--- a/js/src/jscntxtinlines.h
+++ b/js/src/jscntxtinlines.h
@@ -26,22 +26,21 @@
 
 #include "vm/ObjectImpl-inl.h"
 
 namespace js {
 
 #ifdef JS_CRASH_DIAGNOSTICS
 class CompartmentChecker
 {
-    ExclusiveContext *context;
     JSCompartment *compartment;
 
   public:
     explicit CompartmentChecker(ExclusiveContext *cx)
-      : context(cx), compartment(cx->compartment_)
+      : compartment(cx->compartment_)
     {}
 
     /*
      * Set a breakpoint here (break js::CompartmentChecker::fail) to debug
      * compartment mismatches.
      */
     static void fail(JSCompartment *c1, JSCompartment *c2) {
         printf("*** Compartment mismatch %p vs. %p\n", (void *) c1, (void *) c2);