In JavaScript %GetOptimizationStatus function exists, which returns the current status of a function in a compilation pipeline.
Also, --trace-opt/--trace-deopt/--trace-baseline work fine with JavaScript source code.
WebAssebmly optimization statuses, on the other side seem to be impossible to research with those techniques. How can I see that the WebAssembly function successfully passed Liftoff/Turbofan?
There's %IsLiftoffFunction (which naturally only works for functions visible to JS, i.e. exported functions), and there's --trace-wasm-compilation-times.
Generally, tracing functionality gets built when a developer (1) has a need for it, and (2) assumes that it'll be sufficiently useful in the future to actually land the code, as opposed to just hacking in a few printfs locally and then discarding them when the issue at hand has been solved. The Wasm execution model is so simple (for now) that there hasn't been much need to build tracing for it. (And it used to be even simpler, until we turned on dynamic tiering a few months ago.)
As of today (2022-05-29, this part probably won't age very well), in the default configuration: