[wasm] jiterpreter cleanup and performance improvements (#81707)
authorKatelyn Gadd <kg@luminance.org>
Mon, 6 Feb 2023 20:18:35 +0000 (12:18 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 20:18:35 +0000 (12:18 -0800)
commit4345b1b5843be8d307ed96529dd066fd37777c63
tree02cce08f18d09d4eb62cc8330d5fd127155e3526
parentea7e1c77fb1a9648f02ee4ff40f490f61ecef7c0
[wasm] jiterpreter cleanup and performance improvements (#81707)

* Improves the jiterpreter's code gen performance slightly by removing some redundant work from the compilation hot path and moving it to one-time initialization instead.
* Split the jiterpreter trace generation code into its own file
* Stop using opname.startsWith in trace generation
* Minor logging cleanup
* Remove dead code
src/mono/wasm/runtime/jiterpreter-interp-entry.ts
src/mono/wasm/runtime/jiterpreter-jit-call.ts
src/mono/wasm/runtime/jiterpreter-support.ts
src/mono/wasm/runtime/jiterpreter-trace-generator.ts [new file with mode: 0644]
src/mono/wasm/runtime/jiterpreter.ts