[interp] Optimize static vtype field access (mono/mono#13769)
authorVlad Brezae <brezaevlad@gmail.com>
Thu, 4 Apr 2019 08:06:19 +0000 (11:06 +0300)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 08:06:19 +0000 (11:06 +0300)
commit689bc5de6a550730c72f9938a78115f939416243
tree391d256a2f30e083857d99a397ae21b29beddcbe
parentb2d72f61d16fca310277c21c331f0969aed01747
[interp] Optimize static vtype field access (mono/mono#13769)

We want to avoid calling stackval_to/from methods. Also include the field address in the instruction stream. This makes static vtype field access 10x faster.

Refactor the code a bit.

Commit migrated from https://github.com/mono/mono/commit/e6c43065f757e57819648f9dc9e18bd840d27b0c
src/mono/mono/mini/interp/interp.c
src/mono/mono/mini/interp/mintops.def
src/mono/mono/mini/interp/transform.c