diff options
author | Bernhard Urban <bernhard.urban@xamarin.com> | 2017-02-27 19:55:54 +0300 |
---|---|---|
committer | Bernhard Urban <bernhard.urban@xamarin.com> | 2017-03-01 00:59:28 +0300 |
commit | 29455cce9bae1c6b2c788b5d271c4ad333402af7 (patch) | |
tree | 56507bc637efa56de798ec1dc669ed12745a8412 | |
parent | c0eb4ba3744acdc3836870c11622f2687b19b113 (diff) |
[interpreter] implement ref type for ldelem bytecode
-rw-r--r-- | mono/mini/interpreter/transform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mono/mini/interpreter/transform.c b/mono/mini/interpreter/transform.c index 25ef7533730..e868de1ccf8 100644 --- a/mono/mini/interpreter/transform.c +++ b/mono/mini/interpreter/transform.c @@ -2271,6 +2271,12 @@ generate (MonoMethod *method, RuntimeMethod *rtm, unsigned char *is_bb_start, Mo --td.sp; SET_SIMPLE_TYPE(td.sp - 1, STACK_TYPE_I4); break; + case MINT_TYPE_O: + ENSURE_I4 (&td, 1); + SIMPLE_OP (td, MINT_LDELEM_REF); + --td.sp; + SET_SIMPLE_TYPE(td.sp - 1, STACK_TYPE_O); + break; case MINT_TYPE_VT: { int size = mono_class_value_size (klass, NULL); ENSURE_I4 (&td, 1); |