Bug 841146: Remove unused member-variable 'compileContext_' from class ParallelArrayVisitor. r=nmatsakis

This commit is contained in:
Daniel Holbert 2013-02-13 16:27:13 -08:00
parent 60e0afc687
commit 64920f7e29

View File

@ -69,7 +69,6 @@ using parallel::SpewCompile;
class ParallelArrayVisitor : public MInstructionVisitor class ParallelArrayVisitor : public MInstructionVisitor
{ {
JSContext *cx_; JSContext *cx_;
ParallelCompileContext &compileContext_;
MIRGraph &graph_; MIRGraph &graph_;
bool unsafe_; bool unsafe_;
MDefinition *parSlice_; MDefinition *parSlice_;
@ -97,10 +96,9 @@ class ParallelArrayVisitor : public MInstructionVisitor
public: public:
AutoObjectVector callTargets; AutoObjectVector callTargets;
ParallelArrayVisitor(JSContext *cx, ParallelCompileContext &compileContext, ParallelArrayVisitor(JSContext *cx,
MIRGraph &graph) MIRGraph &graph)
: cx_(cx), : cx_(cx),
compileContext_(compileContext),
graph_(graph), graph_(graph),
unsafe_(false), unsafe_(false),
parSlice_(NULL), parSlice_(NULL),
@ -331,7 +329,7 @@ ParallelCompileContext::analyzeAndGrowWorklist(MIRGenerator *mir, MIRGraph &grap
// We don't need a worklist, though, because the graph is sorted // We don't need a worklist, though, because the graph is sorted
// in RPO. Therefore, we just use the marked flags to tell us // in RPO. Therefore, we just use the marked flags to tell us
// when we visited some predecessor of the current block. // 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. graph.entryBlock()->mark(); // Note: in par. exec., we never enter from OSR.
uint32_t marked = 0; uint32_t marked = 0;
for (ReversePostorderIterator block(graph.rpoBegin()); block != graph.rpoEnd(); block++) { for (ReversePostorderIterator block(graph.rpoBegin()); block != graph.rpoEnd(); block++) {