[wasm] Add a monitoring phase to jiterpreter traces and discard unproductive ones...
authorKatelyn Gadd <kg@luminance.org>
Wed, 15 Mar 2023 05:33:41 +0000 (22:33 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 05:33:41 +0000 (22:33 -0700)
commit1cfda5e9a887d39004644c2f96a87b31fcca0ac7
tree717f99a072f0a42e82a23f9b20e36a6ef25e04e7
parent367a360a9fedc8c3c59ac7f6b4b5d92790ace993
[wasm] Add a monitoring phase to jiterpreter traces and discard unproductive ones (#83432)

* Add a monitoring phase to jiterpreter traces, where we determine the average distance (in bytes) they travel. Then reject traces that have a low average distance after the monitoring period
src/mono/mono/mini/interp/interp.c
src/mono/mono/mini/interp/jiterpreter.c
src/mono/mono/mini/interp/jiterpreter.h
src/mono/mono/mini/interp/mintops.def
src/mono/mono/utils/options-def.h
src/mono/wasm/runtime/cwraps.ts
src/mono/wasm/runtime/jiterpreter.ts