Hi,
Currently, I am pursuing research in JIT compilers, i.e., V8, JSC, and SpiderMonkey.
One task is to identify all the generated IR nodes and extract (print) information about them.
What I currently do is add print statements in the node generator function, e.g., V8 is Node::New
and JSC is multiple Node(...)
functions under dfg/DFGNode.h.
For SpiderMonkey, I kind of have an idea that I need to search the function(s) under MIR.h file, but it’s not crystal clear which function I need to target for adding the print statements. There may be multiple functions.
Can someone who’s knowledgeable with the optimizer internal give me some advice on it, please?
Thank you!