[metadata] Handle denormalized value type encoding of builtins.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 2 Feb 2015 16:04:37 +0000 (11:04 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 12 Mar 2015 22:50:22 +0000 (18:50 -0400)
commit777dbc17d5fab2360f5918f4cc76f2bf27df7e2e
tree98019184896e8cbbb25afeeb5be926cfb6db6686
parent3af402a0d048b568216689dc5cac755d275ce5d1
[metadata] Handle denormalized value type encoding of builtins.

All primitive types have a short encoding format that avoid using
a typeref token.

It's possible to encode them in another, longer, form with ELEMENT_TYPE_VALUETYPE + a typeref token.

Up to now, this was never seen in the wild so we never supported it.

This patch allows long form encoding of primitives.
mono/metadata/metadata.c