1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef jit_JSONSpewer_h
8 #define jit_JSONSpewer_h
14 # include "js/TypeDecls.h"
15 # include "vm/JSONPrinter.h"
20 class BacktrackingAllocator
;
26 class JSONSpewer
: JSONPrinter
{
28 explicit JSONSpewer(GenericPrinter
& out
) : JSONPrinter(out
) {}
30 void beginFunction(JSScript
* script
);
31 void beginWasmFunction(unsigned funcIndex
);
32 void beginPass(const char* pass
);
33 void spewMDef(MDefinition
* def
);
34 void spewMResumePoint(MResumePoint
* rp
);
35 void spewMIR(MIRGraph
* mir
);
36 void spewLIns(LNode
* ins
);
37 void spewLIR(MIRGraph
* mir
);
38 void spewRanges(BacktrackingAllocator
* regalloc
);
46 #endif /* JS_JITSPEW */
48 #endif /* jit_JSONSpewer_h */