[jiterp] Inline some performance-sensitive operations into traces (#82469)
authorKatelyn Gadd <kg@luminance.org>
Wed, 22 Feb 2023 12:48:07 +0000 (04:48 -0800)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 12:48:07 +0000 (04:48 -0800)
commit74cd4416b41630bc9f74bfba99ed8b076189ffe5
treed4d897f2da2ec53c67710f70942414ad40de9fd1
parentcb8d49aaa4aa4f76e4cee0c2228651e1093188e9
[jiterp] Inline some performance-sensitive operations into traces (#82469)

Inline getchr, strlen, and getitem_span into traces
Use offsetof to compute more offsets used by the jiterpreter instead of hand computing them
src/mono/mono/mini/interp/jiterpreter.c
src/mono/wasm/runtime/cwraps.ts
src/mono/wasm/runtime/jiterpreter-interp-entry.ts
src/mono/wasm/runtime/jiterpreter-support.ts
src/mono/wasm/runtime/jiterpreter-trace-generator.ts
src/mono/wasm/runtime/jiterpreter.ts