Bug 925863 - Remove unused AccumulateEdges tracer in store buffer; r=sfink
authorTerrence Cole <terrence@mozilla.com>
Fri, 11 Oct 2013 12:55:50 -0700
changeset 164356 864f40ba0ae571b1d2ca13974199216e94823a16
parent 164355 f7def963cdcc6ba8c2466a363d1f57e3b7c26d11
child 164357 a83e068892bbef0dd6df474694fa8af5f917eb76
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)
reviewerssfink
bugs925863
milestone27.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 925863 - Remove unused AccumulateEdges tracer in store buffer; r=sfink
js/src/gc/StoreBuffer.cpp
js/src/gc/StoreBuffer.h
--- a/js/src/gc/StoreBuffer.cpp
+++ b/js/src/gc/StoreBuffer.cpp
@@ -117,35 +117,16 @@ StoreBuffer::MonoTypeBuffer<T>::mark(JST
         T *edge = e.get<T>();
         if (edge->isNullEdge())
             continue;
         edge->mark(trc);
 
     }
 }
 
-namespace js {
-namespace gc {
-class AccumulateEdgesTracer : public JSTracer
-{
-    EdgeSet *edges;
-
-    static void tracer(JSTracer *jstrc, void **thingp, JSGCTraceKind kind) {
-        AccumulateEdgesTracer *trc = static_cast<AccumulateEdgesTracer *>(jstrc);
-        trc->edges->put(thingp);
-    }
-
-  public:
-    AccumulateEdgesTracer(JSRuntime *rt, EdgeSet *edgesArg) : edges(edgesArg) {
-        JS_TracerInit(this, rt, AccumulateEdgesTracer::tracer);
-    }
-};
-} /* namespace gc */
-} /* namespace js */
-
 /*** RelocatableMonoTypeBuffer ***/
 
 template <typename T>
 void
 StoreBuffer::RelocatableMonoTypeBuffer<T>::compactMoved()
 {
     LifoAlloc &storage = this->storage_;
     EdgeSet &invalidated = this->owner->edgeSet;
--- a/js/src/gc/StoreBuffer.h
+++ b/js/src/gc/StoreBuffer.h
@@ -20,18 +20,16 @@
 
 #include "ds/LifoAlloc.h"
 #include "gc/Nursery.h"
 #include "js/Tracer.h"
 
 namespace js {
 namespace gc {
 
-class AccumulateEdgesTracer;
-
 /*
  * BufferableRef represents an abstract reference for use in the generational
  * GC's remembered set. Entries in the store buffer that cannot be represented
  * with the simple pointer-to-a-pointer scheme must derive from this class and
  * use the generic store buffer interface.
  */
 class BufferableRef
 {