Add an optimized C implementation of STFLD_O that uses the correct kind of write...
authorKatelyn Gadd <kg@luminance.org>
Wed, 8 Feb 2023 03:54:38 +0000 (19:54 -0800)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 03:54:38 +0000 (19:54 -0800)
commit8f3a34da468f970e268bd3b17247d77732991b00
tree692a7f089ae5f3f3ce6de448a019ff1ad9ad1b00
parentd913b94d041e192ab2f389ecae6b972da2094560
Add an optimized C implementation of STFLD_O that uses the correct kind of write barrier (#81806)

This PR moves most of the jiterpreter's STFLD_O implementation into a C function that is responsible for also doing the null check. As a bonus that function is able to use the correct kind of write barrier (though it's not clear to me whether the previous one was broken in any way).
src/mono/mono/mini/interp/jiterpreter.c
src/mono/wasm/runtime/jiterpreter-trace-generator.ts
src/mono/wasm/runtime/jiterpreter.ts