Bug 929314 - Remove unused HandleScripts from IonSpewer and related classes r=jandem

This commit is contained in:
Jon Coppeard 2014-05-20 10:56:51 +01:00
parent 7a2cb70d73
commit 910d67f048
4 changed files with 2 additions and 6 deletions

View File

@ -31,7 +31,6 @@ C1Spewer::beginFunction(MIRGraph *graph, HandleScript script)
return;
this->graph = graph;
this->script.repoint(script);
fprintf(spewout_, "begin_compilation\n");
if (script) {

View File

@ -26,12 +26,11 @@ class LInstruction;
class C1Spewer
{
MIRGraph *graph;
HandleScript script;
FILE *spewout_;
public:
C1Spewer()
: graph(nullptr), script(NullPtr()), spewout_(nullptr)
: graph(nullptr), spewout_(nullptr)
{ }
bool init(const char *path);

View File

@ -151,7 +151,6 @@ IonSpewer::beginFunction(MIRGraph *graph, HandleScript function)
}
this->graph = graph;
this->function.repoint(function);
c1Spewer.beginFunction(graph, function);
jsonSpewer.beginFunction(function);

View File

@ -97,14 +97,13 @@ class IonSpewer
{
private:
MIRGraph *graph;
JS::HandleScript function;
C1Spewer c1Spewer;
JSONSpewer jsonSpewer;
bool inited_;
public:
IonSpewer()
: graph(nullptr), function(NullPtr()), inited_(false)
: graph(nullptr), inited_(false)
{ }
// File output is terminated safely upon destruction.