There's some information about how to collect (and visualize!) JS compilation artifacts in the IRHydra documentation [1]. It's v8 specific, though.
The other writings on that site are worth studying if you want to learn more about how v8 optimizes code [2].
[1] http://mrale.ph/irhydra/2/
[2] http://mrale.ph