[netcore] Implement Array.GetElementSize as intrinsic (mono/mono#17437)
authorFilip Navara <navara@emclient.com>
Sun, 20 Oct 2019 22:39:39 +0000 (00:39 +0200)
committerZoltan Varga <vargaz@gmail.com>
Sun, 20 Oct 2019 22:39:39 +0000 (18:39 -0400)
commit8d38dd17a889f3d8a1e4256b9dae81c22d7ced25
treec4c65dc83c7a5904e73f4cb7782dd2d0c6da9710
parent158a2ad09df4e78bc8c81aa8365c5ca7f3f1816f
[netcore] Implement Array.GetElementSize as intrinsic (mono/mono#17437)

* [netcore] Implement Array.GetElementSize as intrinsic

* Remove unnecessary icall

* alloc_preg -> alloc_ireg

* Implement Array.GetElementSize as intrinsic in interpreter

* Address PR feedback

Commit migrated from https://github.com/mono/mono/commit/32ab6bcf004dee2009ab98f9381842ff3fc6e6f2
src/mono/mono/metadata/icall-def-netcore.h
src/mono/mono/metadata/icall-def.h
src/mono/mono/metadata/marshal.c
src/mono/mono/mini/interp/interp.c
src/mono/mono/mini/interp/mintops.def
src/mono/mono/mini/interp/transform.c
src/mono/mono/mini/intrinsics.c
src/mono/netcore/System.Private.CoreLib/src/System.Runtime.InteropServices/Marshal.cs
src/mono/netcore/System.Private.CoreLib/src/System/Array.cs