[jit] Optimize the initialize of MonoError locals. (mono/mono#15869)
authorZoltan Varga <vargaz@gmail.com>
Wed, 31 Jul 2019 12:26:24 +0000 (08:26 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 31 Jul 2019 12:26:24 +0000 (14:26 +0200)
commitec0afc0a0960ac5e9fc17deabb18d09e0c0dbff5
treef80d43e895b31d9d3d4c618d80c2068f0d50beb1
parent99c025b9792642e6fd32655214d43dcd4fe83abe
[jit] Optimize the initialize of MonoError locals. (mono/mono#15869)

Previously, we would emit a call to memset since the struct is large (> 100 bytes). Only the error code field needs to be initialized.

Commit migrated from https://github.com/mono/mono/commit/6223e7468892cd1371fc52a5d1fd0ac1c4e1b273
src/mono/mono/metadata/object-offsets.h
src/mono/mono/mini/decompose.c
src/mono/mono/utils/mono-error-internals.h