You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Wasm RyuJit] Update codegenwasm.cpp to address code quality issues #122156
The WebAssembly RyuJIT backend in codegenwasm.cpp and other files needs to be updated as follows:
Move the GT_DIV, GT_MOD, GT_UDIV and GT_UMOD cases from CodeGen::genCodeForBinary to CodeGen::genCodeForDivMod, which does not currently have a definition in codegenwasm.cpp (you will need to add one that matches the existing declaration in codegen.h.) Make sure to include the header and footer from genCodeForBinary in the new genCodeForDivMod so it will work correctly.
Remove the declaration for genCodeForShiftOrRotate in codegen.h along with the #ifdef TARGET_WASM around it. The declaration is redundant.
Rename the CodeGen::genCodeForShiftOrRotate definition in codegenwasm.cpp to genCodeForShift to match the existing declaration in codegen.h.
Update the cases in CodeGen::genCodeForTreeNode so that GT_DIV, GT_MOD, GT_UDIV and GT_UMOD are implemented by calling genCodeForDivMod instead of calling genCodeForBinary.
Activity
dotnet-policy-service commentedon Dec 3, 2025
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Dec 3, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.