Bug 1890513: Directly invoke variadic native functions. r=jandem
[gecko.git] / js / src / jit / JSONSpewer.h
blob6c663c041a1742b20de031c7adf48338ef32b0ac
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
10 #ifdef JS_JITSPEW
12 # include <stdio.h>
14 # include "js/TypeDecls.h"
15 # include "vm/JSONPrinter.h"
17 namespace js {
18 namespace jit {
20 class BacktrackingAllocator;
21 class MDefinition;
22 class MIRGraph;
23 class MResumePoint;
24 class LNode;
26 class JSONSpewer : JSONPrinter {
27 public:
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);
39 void endPass();
40 void endFunction();
43 } // namespace jit
44 } // namespace js
46 #endif /* JS_JITSPEW */
48 #endif /* jit_JSONSpewer_h */