[mono] Fix invoking string ctors on wasm in AOT mode. (#52505)
authorZoltan Varga <vargaz@gmail.com>
Sat, 8 May 2021 20:15:20 +0000 (16:15 -0400)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 20:15:20 +0000 (15:15 -0500)
commit607ecff7baaab65d589446ba86a45bc03daa024d
tree5ab73f1a10e877e6cc9c80e8dd2691f9e93d4afa
parent4bc509edfe895580f7f940347accecd227f23023
[mono] Fix invoking string ctors on wasm in AOT mode. (#52505)

* [mono] Avoid passing a dummy string to string ctors from runtime invokes, pass NULL instead.

The call will go to a wrapper method which will ignore the 'this' argument anyway.

* [mono] Fix invoking string ctors on wasm in AOT mode.
src/mono/mono/metadata/marshal-ilgen.c
src/mono/mono/mini/aot-compiler.c
src/mono/mono/mini/mini-runtime.c