From 64920f7e291c0126071c9805c51c67269e601558 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 13 Feb 2013 16:27:13 -0800 Subject: [PATCH] Bug 841146: Remove unused member-variable 'compileContext_' from class ParallelArrayVisitor. r=nmatsakis --- js/src/ion/ParallelArrayAnalysis.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/src/ion/ParallelArrayAnalysis.cpp b/js/src/ion/ParallelArrayAnalysis.cpp index f52c1f88750..c4ac2b8bd45 100644 --- a/js/src/ion/ParallelArrayAnalysis.cpp +++ b/js/src/ion/ParallelArrayAnalysis.cpp @@ -69,7 +69,6 @@ using parallel::SpewCompile; class ParallelArrayVisitor : public MInstructionVisitor { JSContext *cx_; - ParallelCompileContext &compileContext_; MIRGraph &graph_; bool unsafe_; MDefinition *parSlice_; @@ -97,10 +96,9 @@ class ParallelArrayVisitor : public MInstructionVisitor public: AutoObjectVector callTargets; - ParallelArrayVisitor(JSContext *cx, ParallelCompileContext &compileContext, + ParallelArrayVisitor(JSContext *cx, MIRGraph &graph) : cx_(cx), - compileContext_(compileContext), graph_(graph), unsafe_(false), parSlice_(NULL), @@ -331,7 +329,7 @@ ParallelCompileContext::analyzeAndGrowWorklist(MIRGenerator *mir, MIRGraph &grap // We don't need a worklist, though, because the graph is sorted // in RPO. Therefore, we just use the marked flags to tell us // when we visited some predecessor of the current block. - ParallelArrayVisitor visitor(cx_, *this, graph); + ParallelArrayVisitor visitor(cx_, graph); graph.entryBlock()->mark(); // Note: in par. exec., we never enter from OSR. uint32_t marked = 0; for (ReversePostorderIterator block(graph.rpoBegin()); block != graph.rpoEnd(); block++) {