[interp] Optimize stelem (mono/mono#17519)
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 25 Oct 2019 14:25:08 +0000 (17:25 +0300)
committerBernhard Urban-Forster <lewurm@gmail.com>
Fri, 25 Oct 2019 14:25:08 +0000 (16:25 +0200)
commitef67ff2022a84ac79feea4ac8b9be19c8b7986fb
tree59f1f4286a8b6cd4769a3621b860690cda1ce005
parente19f845f89d0c569276dd71901c86634f82f0fd6
[interp] Optimize stelem (mono/mono#17519)

* [interp] Optimize stelem instructions

* [intepr] Optimize stelem_ref and slowpath casts

mono_object_isinst_checked uses coop handles and is very slow. Attempt to use the straightforward mono_class_is_assignable_from_checked.

Makes stelem_ref 5x faster.

Commit migrated from https://github.com/mono/mono/commit/768fefbad1e3835c3be09828c9c43f2964079f65
src/mono/mono/mini/interp/interp.c