[mono] Clean up StackTrace/StackFrame icalls. (#81303)
authorZoltan Varga <vargaz@gmail.com>
Sat, 28 Jan 2023 09:53:46 +0000 (04:53 -0500)
committerGitHub <noreply@github.com>
Sat, 28 Jan 2023 09:53:46 +0000 (04:53 -0500)
commit3e78ee8defec1dbf8987504f93d9f6e1eb448b85
tree6f9eb18a84e4ea0671d01598039b1cf0a7b636b5
parente07f4527bdedff6278accf9db8a8c7f9f2a48beb
[mono] Clean up StackTrace/StackFrame icalls. (#81303)

* Register them normally in icall-def.h instead of calling
  mono_add_internal_call ().
* Remove unused Mono.Runtime::mono_runtime_install_handlers
  icall registration.
* Use ObjectHandleOnStack to pass/return objects.
* Move some of the logic to icall.c.
src/mono/System.Private.CoreLib/src/System/Diagnostics/StackFrame.Mono.cs
src/mono/System.Private.CoreLib/src/System/Diagnostics/StackTrace.Mono.cs
src/mono/System.Private.CoreLib/src/System/Exception.Mono.cs
src/mono/mono/metadata/icall-decl.h
src/mono/mono/metadata/icall-def.h
src/mono/mono/metadata/icall.c
src/mono/mono/metadata/object-internals.h
src/mono/mono/mini/mini-exceptions.c
src/mono/mono/mini/mini-runtime.c
src/mono/mono/mini/mini.h